 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
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.
|
| |
August 13th, 2007, 09:23 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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.
Last edited by Chuck S; August 13th, 2007 at 10:17 AM.
|
| |
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?
|
| |
August 13th, 2007, 10:17 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
duh use $User['userid'] like above
|
| |
August 13th, 2007, 10:20 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Sep 2005
Posts: 141
|
Its changed back to how it was?
|
| |
August 13th, 2007, 03:13 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
wait my code before was right $nuserid is right
|
| |
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.
|
| |
August 14th, 2007, 10:26 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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?
|
| |
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?
|
| |
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.
|
| |
August 14th, 2007, 04:41 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
HMM mine is working I tested it and posted here let me test again
|
| |
August 14th, 2007, 04:51 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
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'];
|
| |
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?
|
| |
August 15th, 2007, 10:15 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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 ); | |
| |
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?
|
| |
August 15th, 2007, 10:41 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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?
|
| |
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?
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:23 AM. | |