snowbird
06-14-2006, 01:49 AM
Hope this is the right place here..... posting at photopost has not come up with an answer since last week.
I am using photopost classifieds 2.5 integrated with vBulletin 3.5.4. I wanted to modify the contact email sent when someone contacts the seller, so that, among other things, the username of the person contacting the seller gets put into the email.
I modified contact.php with this bit of additional code that someone suggested$subject = trim($subject);
if ( !empty($title) ) $letter = "$bbuserinfo[username] is inquiring about: $title\n\n$letter";
if ( !empty($productid) ) $letter .= "\n\nClick here to view the product.\n{$Globals['maindir']}/showproduct.php?product=$productid";
if ( !empty($productid) ) $letter .= "\n\nIf you have already sold this item, please click here to mark the item as SOLD.\n{$Globals['maindir']}/editproduct.php?sold=$productid";
It works GREAT, except that the username does not get put into the email..... everything else does though. It seems that the variable name, $bbuserinfo[username] must be incorrect. Can anyone suggest what should be used in its place? Thanks for any help!
EDIT FTR, Answer is: use $User[username] instead of $bbuserinfo[username]
I am using photopost classifieds 2.5 integrated with vBulletin 3.5.4. I wanted to modify the contact email sent when someone contacts the seller, so that, among other things, the username of the person contacting the seller gets put into the email.
I modified contact.php with this bit of additional code that someone suggested$subject = trim($subject);
if ( !empty($title) ) $letter = "$bbuserinfo[username] is inquiring about: $title\n\n$letter";
if ( !empty($productid) ) $letter .= "\n\nClick here to view the product.\n{$Globals['maindir']}/showproduct.php?product=$productid";
if ( !empty($productid) ) $letter .= "\n\nIf you have already sold this item, please click here to mark the item as SOLD.\n{$Globals['maindir']}/editproduct.php?sold=$productid";
It works GREAT, except that the username does not get put into the email..... everything else does though. It seems that the variable name, $bbuserinfo[username] must be incorrect. Can anyone suggest what should be used in its place? Thanks for any help!
EDIT FTR, Answer is: use $User[username] instead of $bbuserinfo[username]