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 Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 4th, 2007, 01:21 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Comments notification

People are not notified of a new comment if the comment is made by the owner of the image. I don't think that's intentional. In my opinion, it would make more sense if all "subscribers" are notified - apart from the user submitting the comment.

Line if comments.php is:

if ( $Globals['usenotify'] == "yes" && $theuser != $User['userid'] && $message )


$theuser is the userid of the comments owner.
Astaran is offline   Reply With Quote
Old August 4th, 2007, 06:50 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
It is intentional to not email the person who is making the comment is there a problem with Michael doing that
__________________
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 5th, 2007, 09:49 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
As I tried to explain above, the current code is not doing that. I changed the code like this:

//BUGFIX notify everyone but the user who's submitting the comment
//if ( $Globals['usenotify'] == "yes" && $theuser != $User['userid'] && $message )
if ( $Globals['usenotify'] == "yes" && $message )
{
//BUGFIX - see comment above - added second condition
$resultc = ppmysql_query("SELECT id,userid FROM {$Globals['pp_db_prefix']}notify WHERE photo=$photo AND userid={$User['userid']}", $link);
Astaran is offline   Reply With Quote
Old August 5th, 2007, 11:10 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
$theuser != $User['userid']

So what your trying to say is that notification does not work if you post a coment on a photo you uploaded
__________________
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 5th, 2007, 11:13 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Yes, because the condition you quoted equals to false.
Astaran is offline   Reply With Quote
Old August 5th, 2007, 11:26 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
yeah I think the code is an old condition not to send notifications when someone comments on their own photo
__________________
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 6th, 2007, 03:02 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Had a typo in my code. It should be:
$resultc = ppmysql_query("SELECT id,userid FROM {$Globals['pp_db_prefix']}notify WHERE photo=$photo AND userid!={$User['userid']}", $link);
Astaran is offline   Reply With Quote
Old August 6th, 2007, 10:46 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
THAT WOULD BE INCORRECT IN EVERY WAY!!

Why would you be changing the query as that would introduce a big big bug. Remember the only potential bug and very minor potential if you ask me here is we dont send out an email to subscribers if the user who posted the photo comments on the photo which is merely an old feature. This discussion could go either way here. There is no need to redo any query

Remember you want emails to go out to subscribers why would you INTENTIONALLY code in a bug by limiting the query to just email you and not the subscribers to the photo?

The correct code 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.

Last edited by Chuck S; August 6th, 2007 at 11:10 AM.
Chuck S is online now   Reply With Quote
Old August 6th, 2007, 11:05 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
No reason to shout at me, Chuck.
Would you mind to tell me what the big bug is? You have seen my corrected query, right?

I changed the query, because I don't want to send out a notification mail to the user who is submitting the content. The easiest way for me to do that was to exclude his userid in the sql query.

AFAIK your code will send out an email to every person that has activated the notification for that photo and will not exclude the poster.
Astaran is offline   Reply With Quote
Old August 6th, 2007, 11:08 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
actually I missed the != in your query cause you did not put spacing in there so I thought you where only sending emails to yourself LOL

By the way thats not shouting I dont play those games with emails I am far too old to know what means what in this young world. I know LOL thats about it and I learnt that from my daughter
__________________
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
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No notification on comments ron0946 Photopost Pro Installation & Upgrades 10 November 16th, 2006 09:42 PM
Ad notification Ginslinger Classifieds How do I...? 1 February 18th, 2006 07:57 AM
Message sent notification Notion Classifieds Suggestions 1 January 23rd, 2006 07:52 PM


All times are GMT -5. The time now is 03:09 PM.

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