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-31-2012 10:00 PM

User Awaiting Moderation Email Notification
 
1 Attachment(s)
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... :p

lapiervb 04-01-2012 07:11 PM

Not compatable with 4.1.10? Many of us have stopped upgrading at 4.1.10 due to vb not supporting older browsers. 40% of my traffic uses browser that arent supported in 4.1.11

Trevor Hannant 04-02-2012 05:56 AM

You can remove the Product Dependency from the XML if you wish - see note in original post:

Quote:

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.

lapiervb 04-02-2012 09:56 AM

Quote:

Originally Posted by Trevor Hannant (Post 2315929)
You can remove the Product Dependency from the XML if you wish - see note in original post:

Yea Im just a board owner I wouldn't know how to do that. I like the idea of the mod anyhow...

Trevor Hannant 04-02-2012 10:02 AM

Open the XML file in a text editor and remove this line:

Code:

        <dependency dependencytype="vbulletin" minversion="4.1.11" maxversion="" />
Then try the import again.

ptceuro 04-02-2012 11:59 PM

Excellent, I really like it.

Snowhog 05-12-2012 10:41 PM

Do all Administrators receive the email notifications?

ForceHSS 05-13-2012 12:20 AM

any screenshots

Snowhog 05-13-2012 03:33 PM

Quote:

Originally Posted by Snowhog (Post 2328838)
Do all Administrators receive the email notifications?

Well, I guess the answer is 'no', at least, this morning, there were 5 new users in Users Awaiting Moderation, but I didn't get emails for any of them.

So where is the address that controls who gets notified? Can more than one administrators email address be included, or would we need to use a group email address?

Trevor Hannant 05-13-2012 03:45 PM

Quote:

Originally Posted by ForceHSS (Post 2328855)
any screenshots

What would you like a screenshot of? There's a single 'Yes/No' option added to the User Registration Options settings group, that's all.

Quote:

Originally Posted by Snowhog (Post 2329020)
Well, I guess the answer is 'no', at least, this morning, there were 5 new users in Users Awaiting Moderation, but I didn't get emails for any of them.

So where is the address that controls who gets notified? Can more than one administrators email address be included, or would we need to use a group email address?

Have you set both the following settings 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.

You can have the emails sent to more than one address by entering additional email addresses in:

AdminCP > Settings > Options > User Registration Options > Email Address to Notify About New Members

Separate each address in that field with a space.

Snowhog 05-13-2012 05:55 PM

Quote:

Originally Posted by Trevor Hannant (Post 2329029)
Have you set both the following settings to 'Yes':

Yes.
Quote:

You can have the emails sent to more than one address by entering additional email addresses in:

AdminCP > Settings > Options > User Registration Options > Email Address to Notify About New Members

Separate each address in that field with a space.
Excellent! That was where I made my mistake - this had no email address at all. I've just corrected that and now have each of our Administrators email address, separated by a space.

Thank you!!

I marked this MOD as installed and voted it for Best MOD of the Month.

Snowhog 05-13-2012 07:13 PM

Got our first email notification, but the new registrant isn't in the Users Awaiting Moderation usergroup; they are still in the Users Awaiting Email Confirmation usergroup. I thought that the MOD was triggered only after the registration email confirmation email was acknowledged, moving the registrant into the Users Awaiting Moderation usergroup.

Am I missing something that I need to check on?

Snowhog 05-13-2012 07:16 PM

Got our first email notification, but the new registrant isn't in the Users Awaiting Moderation usergroup; they are still in the Users Awaiting Email Confirmation usergroup. I thought that the MOD was triggered only after the registration email confirmation email was acknowledged, moving the registrant into the Users Awaiting Moderation usergroup.

Am I missing something that I need to check on?

Apparently I'm missing nothing. Just got a second email notification (another new registrant), and now going into Moderation > Moderate Users shows both of them. So the MOD is working.

Thank you for a very useful and needed MOD.

Trevor Hannant 05-13-2012 08:20 PM

The plugin uses the 'register_activate_process' hook location which is called within the ['do'] == 'activate' section of register.php, the only place it's called so the mails shouldn't be generating until that part of the registration process is called on.

Snowhog 05-13-2012 08:34 PM

Thank you. As I've realized that 'all is working as it should', the first email that I got, and then going into Admin CP > Moderation > Moderate Users which came back with no users to moderate, must have just been a 'timing' issue. As I added to my last post, the MOD is working as designed, and I'm a happy Administrator.

Snowhog 05-14-2012 02:15 AM

Well, again, hmmm.

Just got the following email notification:
Quote:

There is a new user, sandroid at Kubuntu Forums . Net

To view their profile, go here:
http://www.kubuntuforums.net/member.php?21950-sandroid

Email Address : censored for this post
Birthday :
Referrer: N/A
IP Address: 69.156.60.60
This is a new registrant, but is not in the Users Awaiting Moderation group -- they are in the Users Awaiting Email Confirmation group.

Admin CP > Options > User Registration Options > Email Address to Notify About New Members says:
Quote:

This email address will receive an email message when a new user signs up.
Signs up? Not 'when registration is confirmed'?

I don't want to receive emails for new registrants; I want email notifications when they have confirmed the registration email and are now in the Users Awaiting Moderation usergroup.

Added:

Dang it! Right after I posted this, I checked Moderate Users and there this one is! So we receive the email 'before' the user is moved into the usergroup. Why is this?

Snowhog 05-15-2012 02:45 AM

Dag nabit! :)

Okay, I still think something is a miss here. I just got another email notification:

Subject: New User at Kubuntu Forums . Net

There is a new user, ZackaryxHoffman at Kubuntu Forums . Net

To view their profile, go here:
http://www.kubuntuforums.net/member.php?omitted for privacy here

Email Address : omitted for privacy here
Birthday :
Referrer: N/A
IP Address: 24.11.226.135

This member is NOT in the Users Awaiting Moderation usergroup. So the email notification is going out upon registration, whether or not they confirm the registration email. That's what appears to be happening. :confused:

I again point out that Email Address to Notify About New Members says:

Quote:

This email address will receive an email message when a new user signs up.
Your description of the MOD says:
Quote:

Once installed, a new option will be available within AdminCP 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.
Both of those settings are set to Yes.

Trevor Hannant 05-15-2012 05:00 AM

Email Address to Notify About New Members is a default vBulletin field, it's not added by this Mod - it just utilises it for the purposes of notifications.

The emails you've quoted in your posts are the default 'new registrant' emails that go out when someone registers and the admin has set an email address in that field. I'll take a look at adding a new field specifically for the purpose of receiving the 'awaiting moderation' email.

Snowhog 05-15-2012 05:11 AM

I do appreciate the quick replies to my 'concerns'. Okay, so your MOD uses this field, as well as vBulletin itself. That explains why I'm getting what I'm getting.

It doesn't really make sense to have vBulletin send Administrators emails about "Users Awaiting Email Confirmation", unless perhaps, it's so we could opt to activate the user directly -- if we were to choose to do so. But that isn't optimal, IMO.

If your MOD were to add it's own email field, and use it exclusively when the registration email was acknowledged, then as Administrators, we would have a choice of receiving one or the other, both, or neither, which I would find most desirable.

Again, thank you for your good work, and for entertaining my observations and at times, confusion. ;)

Trevor Hannant 05-15-2012 05:24 AM

Some Admins, me included, choose to get notifications of all registrations so they can act on them if needed. Receiving notifications when a user registers and goes into the 'Users Awaiting Email Confirmation' is default vBulletin behaviour - if you don't think Admins should get that email if user's are required to verify their email address then you need to request a change to the core code via an Improvement Request here:

https://tracker.vbulletin.com

I'll look at updating the email field to it's own but it won't likely be this week unfortunately...

Snowhog 05-15-2012 05:39 AM

If you can work it in, I think it would be a useful addition to you MOD.

I don't have a problem per se, with vBulletin sending emails to Administrators on new registrations (Users Awaiting Email Confirmation). As we were not getting them prior to adding your MOD, and then finding that our Administrator email address needed to be added to the default field, I 'thought' that we would only receive email notifications when the registration confirmation email was responded to, moving the new member into the Users Awaiting Moderation usergroup.

I don't see any need to have the core code modified. But if your MOD were to include its own email field in which Administrator emails were added and used it instead, then we get the best of both worlds.

I'm a picky guy, and I like 'perfection'. Your MOD is a very useful addition to our forum, and if you incorporate my suggestion, then IMO, your MOD would be dang near perfect!

Bluemax712 05-21-2012 01:40 PM

I've been using Fractilizer's - Show Items Awaiting Moderation on vB 4.1.12
which shows items in the notification area - but doesn't email the moderators
https://vborg.vbsupport.ru/showthread.php?t=241301

Do you see any problem/conflicts running Fractilizer's and this mod together?

Thanks

Update:
whoops - I was hoping this would send email to mods anytime there is something awaiting moderation
but after rereading looks like it is only for new user notification.

Any way you can adopt this to work with Fractilizer's to send email
whenever there is something in the moderation queue?

Trevor Hannant 05-21-2012 01:52 PM

Haven't tried that one but can't think of there being any issue

Bluemax712 05-21-2012 02:07 PM

I wish all contributors were as quick to respond as you are :)

You responded before I had a chance to get my update in - is it possible to have it email whenever there is anything in the moderation queue?

Thnks again

Trevor Hannant 05-21-2012 02:19 PM

It's only designed to work with the Registration process. To have a generic moderation email notification would require a different plugin

Bluemax712 05-21-2012 02:27 PM

dang - just what I didn't want to hear :-(
Appreciate your time though

Snowhog 05-23-2012 02:30 AM

Tevor Hannant@

Thank you! Just uninstalled ver 1.1 and installed v1.2. Put our Admin emails into the 'new' field and removed them from the original. Now we will just get email notifications when a new member actually requires moderation.

Most appreciated.

Trevor Hannant 05-23-2012 05:35 AM

No problem :)

Snowhog 05-24-2012 12:42 AM

Well, there seems to be a problem.

I had removed the email addresses of our Administrators from the 'original' field and put them in the 'new' field, and ensured that Moderate New Members' AND 'Verify Email address in Registration' settings MUST be set to Yes the other day.

There were seven new members in the Users Awaiting Moderation usergroup this evening, but I had no email notifications for them.

Is there something I've missed, or is there a problem with the MOD?

Trevor Hannant 05-24-2012 05:20 AM

Can you give me a screenshot of your User Registration Options - I can't recreate it based on what I think you've got there...

Snowhog 05-25-2012 01:08 AM

As requested. I had 17 new members awaiting moderation this evening, and not a single email telling me about them.

[S]http://www.kubuntuforums.net/attachment.php?attachmentid=3313&d=1337911682[/S]

Trevor Hannant 05-25-2012 08:34 AM

Attachment isn't working for me - can you attach it to here rather than your own site please?

Snowhog 05-26-2012 12:37 AM

1 Attachment(s)
Okay. I believe I've attached it now.

Trevor Hannant 05-30-2012 03:25 PM

I've just setup the same settings as your attachment on 2 different sites and all still email me when a user activates their account. Have you enabled email logging on your install:

AdminCP > Settings > Options > Error Handling and Logging

If not, try that and see if the emails are written to the logs Ok.

res6cue 05-30-2012 06:39 PM

Working perfectly on 4.2.0! Thanks for writing this mod, it's exactly what I needed.

Snowhog 05-31-2012 02:18 AM

Quote:

Originally Posted by Trevor Hannant (Post 2334725)
I've just setup the same settings as your attachment on 2 different sites and all still email me when a user activates their account. Have you enabled email logging on your install:

AdminCP > Settings > Options > Error Handling and Logging

If not, try that and see if the emails are written to the logs Ok.

I created a directory (Logs) and made it writable by the server (chmod 777) and put Logs in AdminCP > Settings > Options > Error Handling and Logging > Log Emails to a File. I'll check the created .log file tomorrow and report back.

I really want to figure this one out.

I'm still wondering if it has to do with the fact that I removed the email address from:

Quote:

Email Address to Notify About New Members
This email address will receive an email message when a new user signs up. Leave the option blank to disable this function.

res6cue 05-31-2012 04:37 AM

Quote:

Originally Posted by Snowhog (Post 2334912)
I created a directory (Logs) and made it writable by the server (chmod 777) and put Logs in AdminCP > Settings > Options > Error Handling and Logging > Log Emails to a File. I'll check the created .log file tomorrow and report back.

I really want to figure this one out.

I'm still wondering if it has to do with the fact that I removed the email address from:

I just tested the mod by removing the email addresses I had under Email Address to Notify About New Members and leaving only the email addresses under Email Address to Notify About User Awaiting Moderation, and everything worked fine. I did not get a New User notification email (expected behavior), but I did get the "A New User is Awaiting Moderation" email as expected after clicking the verification link.

It appears that this mod does not look at or care about the Email Address to Notify About New Members field. I've tested a few different options and have gotten the expected results every time. Good luck figuring out why it's not working on your forum. :up:

Snowhog 06-01-2012 01:11 AM

I wish it did here. It still isn't working. I had eleven new registrants in Users Awaiting Moderation, and I received no emails on any of them. I really hope that Trevor Hannant chimes in soon.

Snowhog 06-02-2012 05:50 AM

The only way that I can get emails on new members awaiting moderation is to limit to only one email address in Email Address to Notify About User Awaiting Moderation.

Before the MOD, we could put multiple email addresses in Email Address to Notify About New Members, and that worked. We should be able to blank this field and put multiple email addresses in Email Address to Notify About User Awaiting Moderation and get the emails, but apparently, this isn't the case.

Trevor Hannant - Can you look into this. Multiple email address, separate by a space, in Email Address to Notify About User Awaiting Moderation should work just as it did when putting multiple email addresses in Email Address to Notify About New Members.

res6cue 06-02-2012 05:51 PM

Quote:

Originally Posted by Snowhog (Post 2335699)
The only way that I can get emails on new members awaiting moderation is to limit to only one email address in Email Address to Notify About User Awaiting Moderation.

Before the MOD, we could put multiple email addresses in Email Address to Notify About New Members, and that worked. We should be able to blank this field and put multiple email addresses in Email Address to Notify About User Awaiting Moderation and get the emails, but apparently, this isn't the case.

Trevor Hannant - Can you look into this. Multiple email address, separate by a space, in Email Address to Notify About User Awaiting Moderation should work just as it did when putting multiple email addresses in Email Address to Notify About New Members.

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.


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

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.01584 seconds
  • Memory Usage 1,853KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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