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 Classifieds Support > Classifieds Installation & Upgrades

Classifieds Installation & Upgrades If you're having install or upgrade problems, post here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 8th, 2006, 02:18 PM   #1 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
CL 2.5: Notify by email not working

Hi

CL 2.5: Notify by email not working

When a user is uploading a new ad, he has a drop-down menu to select whether he wants to get e-mail notifications about comments about his ad or not.

("Want to be notified by email when users post replies?" -> No/Yes)

If the user selects "yes", it does not work.

If I go into details of the ad, the text link "Receive Email Updates" is still visible and not the "disable e-mail notifications" as it should be the case.

How can I fix this?

Thanks in advance
snoopy5 is offline   Reply With Quote
Old May 8th, 2006, 02:33 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
Same as the reviewpost one you noted

In uploadproduct.php add in bold

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old May 8th, 2006, 05:28 PM   #3 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by Chuck S
Same as the reviewpost one you noted

In uploadproduct.php add in bold

Code:
Content visible to verified customers only.
ah, o.k., I did not know that the code of both is now so similar. Makes things easier. So I looked in the Reviewpost thread and made the same changes, with one small difference in the prefix .

These are the 2 steps:

1. I added in uploadproduct.php the 'notify' => STRING,

2. In image-inc.php, I searched for this:

----------
if ($notify == "yes") {
$resulta = ppmysql_query("SELECT id FROM {$Globals['pp_db_prefix']}products WHERE userid=$upuserid AND bigimage='$realname'", $link);
list( $productid ) = mysql_fetch_row($resulta);

$resulta = ppmysql_query("INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,product) values(NULL,$upuserid,$productid)", $link);
}
----------

And replace it with this:

----------
if ($notify == "yes") {

$resulta = ppmysql_query("INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,product) values(NULL,'{$User['userid']}',$lastproductid)", $link);
}
----------

The difference to reviewpost is here the

['pp_db_prefix']

In Reviewpost it is ['rp_db_prefix']

Now it works...
snoopy5 is offline   Reply With Quote
Old June 12th, 2006, 01:18 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Posts: 240
Photopost Classified Notification

I tried to apply this to 2.5 Classifieds (only the part recommended by Chuck), and it does not seem to work:
Quote:
'extra6' => STRING, 'notify' => STRING,
Here is my code from uploadproduct.php:
'extra6' => STRING, 'notify' => STRING, 'highlight' => INT, 'bold' => INT, 'italic' => INT, 'keywords' => STRING, 'currency' => STRING, 'buyit' => STRING) );

Is there something else I should do? Is the other piece required as well?
Thank you,
GateKeeper
GateKeeper is offline   Reply With Quote
Old June 12th, 2006, 01:30 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
The notify string yes is correct and the bottom of your image-inc.php file should be this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S 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
change notify by email default to yes? scrapster Photopost Pro How Do I...? 15 July 7th, 2010 09:18 AM
Notify by email not working(NOT A BUG) melgama Photopost Pro Bug Reports 31 September 26th, 2005 08:10 PM
Email address to notify of new uploads/posts JoyB Bugs From 1.0.0 2 July 1st, 2005 12:37 AM
Notify via PM instead of Email trackpads vBGallery Suggestions 0 January 22nd, 2005 08:18 PM
"Use email to notify users?" NSXTC General Discussion 1 July 6th, 2004 09:38 AM


All times are GMT -5. The time now is 04:27 PM.

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