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

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 13th, 2007, 06:21 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
Wrong username in Subscripton email

In subscription emails for a category, the username in the email is not the username of the user whom uploaded the ad.

$Globals['pp_lang']['subnotify'] = "{$tusername} has uploaded one or more ads to a category you subscribe to.

In my case the $tusername returns the username of another user who subscribes to the same category.
zews is offline   Reply With Quote
Old August 13th, 2007, 09:23 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Already a reported bug and fixed in the current downloaded code in the file image-inc.php should read like 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 13th, 2007 at 10:17 AM.
Chuck S is offline   Reply With Quote
Old August 13th, 2007, 10:10 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
I have the 8/2/07 build, and that is the code above.

So I have the problem with this code.

the emails.php code is
Quote:
$Globals['pp_lang']['subnotify'] = "{$tusername} has uploaded one or more ads to a category you subscribe to.
Does $tusername refer to the poster of the ad?
zews is offline   Reply With Quote
Old August 13th, 2007, 10:17 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
duh use $User['userid'] like above
__________________
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 August 13th, 2007, 10:20 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
Its changed back to how it was?
zews is offline   Reply With Quote
Old August 13th, 2007, 03:13 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
wait my code before was right $nuserid is right
__________________
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 August 14th, 2007, 09:37 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
After I changed to $User['userid'] I didn't get any subscription emails, when I changed back to $nuserid I get emails, but the username in the email is wrong.

In the email the name is the name of another subscriber, not the name of the one who has posted the new ad.
zews is offline   Reply With Quote
Old August 14th, 2007, 10:26 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Code:
Content visible to verified customers only.
The code in image-inc.php as I stated above should be this. Look at the email the user's username uploading the ad is indeed $User['userid'] to grab his username.

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 August 14th, 2007, 11:48 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
This is not working,

what happens now is that if I upload an ad, I get 3 emails about it.

If another user that is not subscribing to the category uploads an ad, I am not getting any email about it, but that user is getting 3 notify emails.

Something must be wrong somewhere. Do you have a site running this software with the newest build where I can try this out and se that it works like its supposed to?
zews is offline   Reply With Quote
Old August 14th, 2007, 11:54 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
I also get reports about people getting another email about winning auctions every day, and after upgrading all the old auctions where reactivated.

Maybe there is something wrong in by database or something? I have read something about a timestamp-error - could it be something like that causing my problems? What can I do to investigate that?
zews is offline   Reply With Quote
Old August 14th, 2007, 02:34 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
I did a new download and a new install as a test. The email looked like this when an other user posted to a category i subsribed to:
Quote:
has uploaded one or more ads to a category you subscribe to.

Image name:
Title: Weeee
Description: ffghfgf
The username was missing.

When I uploaded to the category myself, the email was correct, containing my username.
zews is offline   Reply With Quote
Old August 14th, 2007, 04:41 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
HMM mine is working I tested it and posted here let me test again
__________________
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 August 14th, 2007, 04:51 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
HMM mine is working I tested it and posted here let me test again

This cheat line should work also

$tusername = $User['username'];
__________________
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 August 15th, 2007, 09:36 AM   #14 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
Where did you test it? Can I test also?

Where should I place that cheat line?
zews is offline   Reply With Quote
Old August 15th, 2007, 10:15 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
technically you could do a hard coded test by getting rid of that list line and placing the line above thee
__________________
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 August 15th, 2007, 10:32 AM   #16 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
Like this?
Quote:
if ( $nuserid > 0 )
{
$tusername = $User['username'];
// list( $tuserid, $tusername, $tmail ) = get_userinfo( "", $nuserid );
zews is offline   Reply With Quote
Old August 15th, 2007, 10:33 AM   #17 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
Where can I test this script on another server than mine? Do you have a public installation of the latest build where I can test?
zews is offline   Reply With Quote
Old August 15th, 2007, 10:41 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
no not public I have a test server I use for doing trouble shooting try that on yours. I mean its pretty simple the name on that email from be the person who is uploading so that variable should work. I do not understand why yours is not pulling that name with the list statement
__________________
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 August 15th, 2007, 11:20 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
Yes, I have installed another copy to test.

I will try to understand the logic now.

Where can i find the get_userinfo() function in the code? Which file?
zews is offline   Reply With Quote
Old August 15th, 2007, 01:44 PM   #20 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 141
To send email to all the users that subscribe, we need the $tmail for each $nuserid. So this must be right in image-inc.php:

list( $tuserid, $tusername, $tmail ) = get_userinfo( "", $nuserid );

The problem must be in emails.php where

$Globals['pp_lang']['subnotify'] = "{$tusername} has uploaded one or more ads to a category you subscribe to.

need to be changed to:

$Globals['pp_lang']['subnotify'] = "{$User['username']} has uploaded one or more ads to a category you subscribe to.

The same place this line also need to be removed:

Image name: {$realname}

Can you please confirm that this is correct?
zews 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
Username Changes aacircle Photopost Pro How Do I...? 3 August 12th, 2007 09:41 PM
Bulk move assigned wrong photo to wrong person Part II Fortissimo Photopost Pro Bug Reports 1 January 6th, 2007 10:47 PM
Bulk move assigned wrong photo to wrong person Fortissimo Photopost Pro Bug Reports 21 December 5th, 2006 10:28 PM


All times are GMT -5. The time now is 02:23 AM.

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