PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 1st, 2006, 09:16 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2004
Posts: 6
Update Welcome Message and New User Notify (Not Index Announcement)

I have usergroups setup as Unregistered, Registered, and Approved. Unregistered users have no rights. Registered users can view photos, but not upload or comment. Approved users can view, upload, and comment. There is no forum integration, this is a pure photo gallery. Gallery is at http://www.netpatrick.com/photopost/index.php

I'm trying to do two things:

1) Put a very visible message on the index page for unregistered users that tells them they have to register to view photos and need to request ability to upload photos. I've updated the Welcome text via the Admin screen, but it's still not very visible. I tried the Announcement box, but that shows up on ALL index screens and I want to post a message only for the unregisered user. Ideas?

2) I can't find an option to notify the admin of newly registered users. Currently my plan is to have the users send an email to the webmaster, but would prefer an auto-notification upon user registration. I have the valid email requirement turned on, and that obviously send an email to the new user ... can I mod that file to also send an notification email to the admin? Ideas?

Ive searched through this forum and seen this question asked a bunch of different ways ... but the solutions come back to, "use the announcement box" and "no new user notification to admin, but good idea". Any new ideas???

Thanks!

Last edited by patrija; August 2nd, 2006 at 07:19 AM.
patrija is offline   Reply With Quote
Old August 2nd, 2006, 09:26 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
1. The announcement box has a 200 character limit so you can use that if you wish otherwise try editing your indexhead template and place a new html table with the code and wording you want.

2. You can ask code modifications to the code in the mod corner for things that fall outside product support. The people are right there is no email sent to admin when a user registers.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 2nd, 2006, 10:28 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2004
Posts: 6
Thanks

1) The 200 char limit on the Announcement Box isn't my issue - it's that I have text that I only want to display to unregistered users. I'll try the mod to the index head template.

2) Can you point me to the file that sends the registration email confirmation? I might be able to mod that myself.
patrija is offline   Reply With Quote
Old August 2nd, 2006, 10:33 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Yes you can use html

The register.php is the one you want to mod
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 2nd, 2006, 11:40 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2004
Posts: 6
Thanks.

Will try to update the template.

Updated register.php with following starting at line 325 and seems to be working fine. Simply sends the admin an email with a title that alerts for a user to be approved and one line with the new user name. Someone else could probably make it fancier.

if ($Globals['emailverify'] == "yes")
{
$resulta = ppmysql_query("SELECT userid FROM {$Globals['pp_db_prefix']}users WHERE username='$pick_username' AND joindate='$joindate' LIMIT 1", $link);
list( $theuid ) = mysql_fetch_row($resulta);

include "{$Globals['PP_PATH']}/languages/{$Globals['pplang']}.php";
$email_approve = $Globals['adminemail'];
$subject_approve = "NetPatrick: New Photo Gallery User";
$newuser_approve = $pick_username;
$email_from = "From: {$Globals['adminemail']}";
$letter = $Globals['pp_lang']['emailreg'];
$letter = stripslashes($letter);
$subject = $Globals['pp_lang']['emailrsub'];

mail( $email_approve, $subject_approve, $newuser_approve, $email_from );

mail( $email, $subject, $letter, $email_from );

diewell( "{$Globals['pp_lang']['thanksreg']}<p><a href=\"{$Globals['maindir']}/index.php\"><span class=\"{$Style['medium']}\">
{$Globals['pp_lang']['retfront']} {$Globals['galleryname']}</span></a>" );

}
patrija is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update the database after a user has changed user name? marit Photopost Pro How Do I...? 8 June 16th, 2006 02:08 PM
picture too big. Need message telling the user ehm Photopost Pro Installation & Upgrades 2 January 27th, 2005 03:31 PM
error message: cannot connect to the user database asherariel Photopost Pro Installation & Upgrades 1 July 24th, 2004 11:13 AM


All times are GMT -5. The time now is 08:54 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0