Trevor Hannant |
03-29-2015 01:07 PM |
Quote:
Originally Posted by Snowhog
(Post 2352212)
I want to modify the email notification message to reflect the following:
The following user is awaiting moderation:
$bbuserinfo[username]
Please visit this link to moderate this user:
$vboptions[bburl]/$admincpdir/user.php?do=moderate
View member profile: $memberlink
Check IP location in Melissa: http://www.melissadata.com/lookups/iplocation.asp?ipaddress=$ipaddress
Check for Spam (email): http://www.stopforumspam.com/search?q=$email
Check for Spam (name): http://www.stopforumspam.com/search?q=$username
Check for Spam (IP): http://www.stopforumspam.com/search?q=$ipaddress
Thank you
This 'works', except that the contents of the variables $email, $username, and $ipaddress don't appear in the email that I get. Why?
|
I know this is an old post - apologies that I've not seen it until now... :(
Those variables, as far as I remember, will only be populated when a user is logged in. When they register, they are effectively logged in (without a remember me option/function). If they leave that browser instance open, then when they click on the link to verify their email address, they will still be "logged in" and the variables populated and passed to the email text.
If they close their browser and then click the link in the email, they won't be logged in although the link will correctly set them from "Awaiting email verification" to "Awaiting Moderation". As such, the variables are empty and cannot be passed into the email text (hence why $bbuserinfo[username] will show as 'Unregistered' or something along that line".
If I can find some time, I'll look to see if there's another way to process these so that the details are picked up and passed to the email although I can't promise that or when...
|