vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - User Awaiting Moderation Email Notification (https://vborg.vbsupport.ru/showthread.php?t=280979)

Trevor Hannant 03-29-2015 01:02 PM

Quote:

Originally Posted by Flibnipktz (Post 2541827)
Hi, We've opted to use this instead of the welcome email, and it works well. However I'd like to edit some of the text in this email format, where can I do that?

The email body text can be found in the phrase 'moderatenewuser'

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...

Trevor Hannant 03-29-2015 02:39 PM

Snowhog, if you're still using the mod, this should work for you:

Quote:

The following user is awaiting moderation:

$userinfo[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=$userinfo[ipaddress]

Check for Spam (email): http://www.stopforumspam.com/search?q=$userinfo[email]
Check for Spam (name): http://www.stopforumspam.com/search?q=$userinfo[username]
Check for Spam (IP): http://www.stopforumspam.com/search?q=$userinfo[ipaddress]

Thank you

Trevor Hannant 03-29-2015 03:14 PM

Updated to 1.3 to change the username variable to allow for those coming back to activate in a new browser session.

Flibnipktz 03-30-2015 12:51 PM

H'm... thanks for the quick reply. However, after some searching, discovered it under moderation_validated. Not sure if that's a recent change or edit? Anyway, looks like I'm on my way. Thanks-

Trevor Hannant 03-30-2015 08:14 PM

'moderation_validated' isn't part of this mod, it's been a phrase in the default vB language file for a long time

djbaxter 06-20-2015 09:18 PM

Quote:

Originally Posted by Trevor Hannant (Post 2541837)
Snowhog, if you're still using the mod, this should work for you:

The Melissa query no longer passes the IP address - it just opens the Melissa IP Lookup page.

Code:

Check IP location in Melissa:  http://www.melissadata.com/lookups/iplocation.asp?ipaddress=59.89.35.201
Anyone know of another site that would pass the IP string as Melissa used to do?

Trevor Hannant 06-22-2015 06:20 AM

Seems most now require an account for this

djbaxter 06-22-2015 10:57 AM

Actually you can use your choice of:

http://whatismyipaddress.com/ip/$ipaddress
http://www.ip2location.com/free.asp?$ipaddress
http://www.ip-tracker.org/locator/ip-lookup.php?ip=$ipaddress

Trevor Hannant 06-23-2015 01:42 PM

Hmmm, might add those in to it later...


All times are GMT. The time now is 12:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01192 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete