Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Awaiting Moderation Email Notification Details »»
User Awaiting Moderation Email Notification
Version: 1.3, by Trevor Hannant (Senior Member) Trevor Hannant is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.2.x Rating:
Released: 03-31-2012 Last Update: 03-28-2015 Installs: 41
Uses Plugins
 
No support by the author.

This modification will enable the sending of an email to the email address specified in 'AdminCP > Settings > Options > User Registration Options > Email Address to Notify About User Awaiting Moderation' when a users clicks on the Activation link in the registration email.


INSTALLATION


Go to:

AdminCP > Plugins & Products > Manage Products > [Add/Import Product]

...and import the 'product-th_moderate_user_email_1-2.xml' file.

Once installed, new options will be available within AdminCP > Settings > Options > User Registration Options allowing you to enable this setting. It will only send the email if the following settings are set to Yes:

- AdminCP > Settings > Options > User Registration Options > Moderate New Members
- AdminCP > Settings > Options > User Registration Options > Verify Email address in Registration


If EITHER of the above settings are set to No, the email will not be sent.

UNINSTALLING

Go to:

AdminCP > Plugins & Products > Manage Products

...and select 'Uninstall' from the dropdown next to the Product.


TRANSLATIONS

The email text uses a new Email Subject Text and Email Body Text Phrase (moderatenewuser). These can be translated within the Phrase Manager into your own language if this is not English.

The AdminCP phrases used are:

- setting_TH_UAME_active_title
- setting_TH_UAME_active_desc
- setting_modnewemail_desc
- setting_modnewemail_title

Note: Although not tested in previous version, given that the code has not changed, it's likely that this will work in previous version including 3.8.x however if there are any issues with previous versions, they will not be supported. If the code changes within the vBulletin core, this product will only be updated for that version onwards.


Versions

1.3 Changed variable names in email body text to account for users ending browser sessions then completing activation.
1.2 Added separate field to allow notifications to be sent to a different address. Removed product dependency.
1.1 Corrected Email Body Text phrase to use AdminCP directory from config.php rather than hard-coded value
1.0 Initial release

Thanks to BirdOfPrey5, Lynne and Paul M for putting me right on some rank stupidity with this...

Download Now

File Type: zip User Awaiting Moderation Email 1.3.zip (2.5 KB, 64 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 06-02-2012, 06:11 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by res6cue View Post
I just tested that exact scenario (2 email addresses in Email Address to Notify About User Awaiting Moderation, no email addresses in Email Address to Notify About New Members), and it worked perfectly.

There doesn't seem to be any issues with this mod, rather something specific to your forum that you need to figure out.
Are you using a space between the two emails?

I re-added the other Administrators email address (with a space between them). Maybe it will work now, given that I got it to work with just one email address.

If it turns out to be some quirk about our forum setup, I have not clue where to look.
Reply With Quote
  #43  
Old 06-02-2012, 06:15 PM
res6cue res6cue is offline
 
Join Date: Nov 2010
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, a single space between emails, same as we've always used in the Email Address to Notify About New Members field.
Reply With Quote
  #44  
Old 06-03-2012, 01:22 PM
Trevor Hannant's Avatar
Trevor Hannant Trevor Hannant is offline
Senior Member
 
Join Date: May 2003
Location: Edinburgh, Scotland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still waiting on the results of you checking your email logs...

I've retested this again with the settings attached (2 email addresses in Email Address to Notify About User Awaiting Moderation separated by a single space, no email addresses in Email Address to Notify About New Members) and the mails delivered to both addresses as seen in the 2nd attachment.

Can you uninstall the modification, download a fresh copy and re-install. Then re-set the settings in AdminCP and do a test registration. Do you:

- get the emails to both addresses and
- are both emails shown in the email log
Attached Images
File Type: jpg mod2.jpg (100.6 KB, 0 views)
File Type: png mod1.png (72.2 KB, 0 views)
Reply With Quote
  #45  
Old 06-03-2012, 01:43 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trevor -

From ACP > Administrator Notes:
Quote:
2012-06-02
Administrator: Snowhog
Created directory /srv/www/kubuntuforums.net/email_logs
Set Settings > Options > Error Handling & Logging > Log Emails to a File to email_logs
Added the other Admin email address to Email Address to Notify About User Awaiting Moderation, as I got the emails to work when I had just one email address in the field (mine), so maybe now it will work. If no emails are received, hopefully /srv/www/kubuntuforums.net/email_logs will contain some useful information.
No one was receiving emails with 'multiple email addresses' in the field, yet we were getting Users Awaiting Moderation. The email_logs directory contained nothing.

So, again, last night, I removed all the email addresses but mine. This morning there are two Users Awaiting Moderation, and I got an email about both of them.

Added:
Okay, uninstalled the MOD (version 1.2) then downloaded the MOD again (first deleting it from my PC), extracted the product-th_moderate_user_email_1-2.xml file and imported it as suggested. Added our Admin email addresses and ensured the appropriate questions were marked Yes.

Now I wait to see if anything changes.

In case it is important, the two emails I got this morning (in the attached image) were for 'Unregistered' users?
Quote:
The following user is awaiting moderation:

Unregistered

Please visit this link to moderate this user:

http://www.kubuntuforums.net/adminco...hp?do=moderate

Thank you
Quote:
The following user is awaiting moderation:

Unregistered

Please visit this link to moderate this user:

http://www.kubuntuforums.net/adminco...hp?do=moderate

Thank you
I guess that both used 'Unregistered' as the username. Hmm. I'll add nregistered to our list of Illegal User Names.
Attached Images
File Type: png UsersAwaitingModerataionEmailsJune03_2012.png (11.7 KB, 0 views)
Reply With Quote
  #46  
Old 06-03-2012, 04:24 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A new entry in in Users Awaiting Moderation usergroup since uninstalling/reinstalling the MOD this morning. No email has been received about it. The email_logs directory remains empty.

If this MOD is working 'as intended' for everyone else, why isn't it working for us? It only works for us if I use a single email address in the field.

We have a standard vBulletin installation. We are running version 4.2.0. There has to be a clue in the "one email address works" but "multiple email addresses don't" that can be used to point to a controlling .php file. I just need expert help in tracking this bugger down.
Reply With Quote
  #47  
Old 06-23-2012, 02:54 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trevor -

I found my mistake regarding the email logging. I had the directory in the wrong location. I've put it in the 'correct' location and have put two email addresses into the field. I'm expecting that neither of us will receive any of the user awaiting moderation emails, but hopefully the log file will now be generated. If it is, I'll provide the content here for your review.
Reply With Quote
  #48  
Old 06-23-2012, 07:56 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A new user has replied to the new user registration email confirmation. I received no email notice, and the email_logs directory contains no .log file. So using more than one email address for this MOD does not work for our forum. I don't have to create a blank .log file in the directory to be used, do I? I wouldn't think so, but...

How in the heck do I trouble shoot this?
Reply With Quote
  #49  
Old 07-28-2012, 09:53 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #50  
Old 08-28-2012, 11:06 PM
Rock$tar Rock$tar is offline
 
Join Date: Aug 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked for me. Thanks!
Reply With Quote
  #51  
Old 03-29-2015, 12:41 PM
Flibnipktz Flibnipktz is offline
 
Join Date: Jul 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05660 seconds
  • Memory Usage 2,349KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete