vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Moderators Functions - Moderate New User Registrations (ModCP Option) (https://vborg.vbsupport.ru/showthread.php?t=200955)

Mosh 01-06-2009 10:00 PM

Moderate New User Registrations (ModCP Option)
 
1 Attachment(s)
Please click Mark as Installed if you are using this hack.

IMPORTANT NOTICE: This hack can only be used by Super Administrators, Administrators and Super Moderators.


What Does This Hack Do?[hr]hr[/hr]
This is an update to my 3.7.x version of this hack, with the addition of being able to ban members too (this new feature has NOT been included by Jelsoft in the standard vBulletin AdminCP moderate user functionality).

This hack was created because I liked the idea of the request in this thread, and seems to have been requested quite a few times over the years.

Do you have a spam problem and have resorted to manual user registration? If so, have you noticed that it is so tedious and wish you could spread the love by getting other people to do this for you, but not give them AdminCP access? If the answer is yes to both questions, then this hack is for you.

This is a hack gives your Super Moderators (and Administrators) the option in the ModCP to now manually approve new user registrations, that before now only Administrators could do from the AdminCP.

This means you can now spread the load of manually approving users with your Super Moderators, leaving you the administrator more time to do other things.

A notification in your welcome block in the navbar is displayed (if the notification option is enabled in the AdminCP) when there are new user registrations to be moderated. This is displayed to both Administrators and Super Moderators. The notification will only generate 1 extra query per page load (only if the notification is enabled, and then the extra query is only for Administrators and Super Moderators, so if you want to save a query then disable the option).

As this has been asked for a few times over the last couple of versions of this hack, all users being moderated by Super Moderators are now set to Ignore by default, so undesirable users are not accepted by accident.

Also included in this hack, if enabled and a ban usergroup is selected in the AdminCP Options, is the ability to ban users and emailing them to let them know, instead of just deleting them (this new feature has NOT been included by Jelsoft in the standard vBulletin AdminCP moderate user functionality), as it has also been requested before. So, if the ban feature is enabled, then Administrators clicking the notification link to moderate new registrations will be taken to the ModCP version (this hack) instead.

There is also an AdminCP Option to enable logging of user moderation to the Moderator's log.

What Do You Get?

With all features enabled in this hack, when there is a notification on the navbar that there are new user(s) to moderate, Super Moderators and Administrators can do the following for each individual moderated user:
  • Accept User (they are now a member)
  • Delete User (delete them from database)
  • Ban User (user is banned, username can not be reused)
  • Ignore User (leave them as a user yet to be moderated)
Or for all new moderated users, they can do the following:
  • Accept All
  • Delete All
  • Ban All
  • Ignore All

vBulletin Version Compatibility[hr]hr[/hr]
This hack can be used with vBulletin versions 3.7.0 - 3.8.8.

This hack is not compatible with v3.6.x (due to fact that notifications in the welcome block were not introduced until v3.7.0), but fear not, you can use the unsupported v3.6.x version of this hack instead.

For the v4.0.x version of this hack - check here.



Hack Support/Feature Requests[hr]hr[/hr]
IMPORTANT: This hack is no longer supported.


Branding[hr]hr[/hr]
There is a small unobtrusive block of copyright branding text at the bottom of each page generated by this hack, which is there to promote my work and allow you to use this hack for free.

You are NOT allowed to remove my copyright branding from this hack.


Install/Uninstall Instructions[hr]hr[/hr]
There are no file or template changes at all and is fully phrased. You just need to upload 1 file, import 1 product and alter the correct vBulletin Options in the AdminCP, and then it will work from then on.

The InstallInstructions.txt instructions file is included in attached .zip file.


Screenshots[hr]hr[/hr]
Shown in this order:
  • Notification in navbar
  • ModCP sidebar (with Moderate Registrations showing)
  • Moderate New User Registrations (with ban feature enabled)
  • Moderate New User Registrations (with ban feature disabled)
  • Showing what the banned user would look like in my Banned Members Log hack
  • AdminCP Options
  • Moderator Log

Version History[hr]hr[/hr]
v3.8.005 - Wednesday 5th August 2009
-- Updated: Screenshots
-- Changed: user_moderation.php
-- Added: AdminCP Option to enable logging of action applied to each user in the Moderator log
-- Added: 3 new phrases

v3.8.004 - Tuesday 30th June 2009
-- Updated: Screenshots
-- Changed: user_moderation.php
-- Added: Option to send email to users that have been banned
-- Added: 3 new phrases

v3.8.003 - Tuesday 7th April 2009
-- Updated: Screenshots
-- Changed: If both ban user and notification features are enabled, administrators are also taken to the ModCP version of this hack. The AdminCP version does not have the ban user feature.
-- Changed: Redirect in ModCP forces a full page refresh, so that whole ModCP is viewable after moderating new users.
-- Changed: Install/uninstall instructions file
-- Changed: VersionHistory.txt
-- Added: Ban user feature. If enabled extra and a ban usergoup is selected buttons appear when moderating new users.
-- Added: AdminCP Options to turn ban feature on, select ban group selected moderated users are to moved to and ban message.

v3.8.002 - Thursday 19th February 2009
-- Fixed: Form header incorrect, caused problems
-- Updated: Screenshots
-- Changed: File - user_moderation.php
-- Added: Install/uninstall instructions file
-- Added: VersionHistory.txt

v3.8.001 - Wednesday 7th January 2009
-- Initial vBulletin v3.8.x Release
-- Changed: Code re-write
-- Changed: All users being moderated are now set to "Ignore" by default


Thanks[hr]hr[/hr]
Thanks go out to Paul M who gave me permission to use some of his install code.

NOTE: Portions of the code are (c) Jelsoft Enterprises Ltd.


Show Your Appreciation [hr]hr[/hr]
Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Adem GEN? 01-07-2009 11:01 AM

Thanks
Installed

Suggestion
For Notifications Moderation album picture

Barteh 01-08-2009 09:27 PM

Looks like it's still working for 3.8.0 :)

WreckRman2 01-09-2009 03:09 AM

I like it... is there anyway you could include an option to ban the user instead of deleting it? Reason being is if there is a potential that this user is a spammer by banning the username it prevents the username from being used again as well as using the email address again. If we delete it they can simply re-register.

Mosh 01-09-2009 03:13 AM

Quote:

Originally Posted by IndyWebDesign (Post 1705879)
I like it... is there anyway you could include an option to ban the user instead of deleting it? Reason being is if there is a potential that this user is a spammer by banning the username it prevents the username from being used again as well as using the email address again. If we delete it they can simply re-register.

Not without extra coding. This is not something I am interested in adding to this hack at the moment, but I may look at it again at a later date.

Barteh 01-09-2009 08:30 AM

Quote:

Originally Posted by IndyWebDesign (Post 1705879)
I like it... is there anyway you could include an option to ban the user instead of deleting it? Reason being is if there is a potential that this user is a spammer by banning the username it prevents the username from being used again as well as using the email address again. If we delete it they can simply re-register.

I'd install vBstopforumspam for that. I've enabled new user moderation (and installed this mod) just as a final manual check in case reCAPTCHA, vBSFS and a few other measures don't stop the spammer, and as of august last year none have come past those so far :)

*EDIT*

...and d'oh! Had so many windows open while checking mod functionality last night, didn't notice this one was a 3.8.0 specific update already.

Mosh 01-10-2009 06:59 PM

Quote:

Originally Posted by Tapchou (Post 1707425)
Hey! This is nice, I have downloaded it and am about to install it right now. I just wondered if this will also allow Super Moderators to change a users permission on the forums?

No, it does not. It is just for registration approval.

Skywatcher 01-25-2009 01:52 PM

Hi, I'm having a problem in version 3.8
My super moderators get the notification, they can access the moderation screen, but when they click on continue in order to approve the new member, they only get a blank screen with the footer (with the mod info/Copyright) and the member doesn't get approved.

Any idea of what might be the problem?

EcoCav 01-26-2009 08:35 PM

I am having the same problem as Skywatcher... any fix for this?

ex-vecs 01-27-2009 08:06 PM

Same here?

EcoCav 01-27-2009 10:10 PM

Has anyone made this work on 3.8? I see it was installed 29 times, are those installs working?

Skywatcher 01-29-2009 08:28 PM

Oh, just noticed Mosh's signature now.
Talk about lowsy timing :-/

Barteh 02-05-2009 11:37 PM

Quote:

Originally Posted by EcoCav (Post 1726572)
Has anyone made this work on 3.8? I see it was installed 29 times, are those installs working?

Yep, seems to work.

Santehnik 02-06-2009 09:22 PM

If you have blank screen than edit user_moderation.php:
Find
PHP Code:

print_form_header('user''domoderate'); 

and change to
PHP Code:

print_form_header('user_moderation''domoderate'); 

This work's for me :)

redhawk89 02-07-2009 12:17 AM

installed -- great!

EcoCav 02-08-2009 05:10 PM

Quote:

Originally Posted by Santehnik (Post 1736496)
If you have blank screen than edit user_moderation.php:
Find
PHP Code:

print_form_header('user''domoderate'); 

and change to
PHP Code:

print_form_header('user_moderation''domoderate'); 

This work's for me :)

Thanks man! That was the problem, now its working perfect!

Mosh 02-18-2009 08:13 PM

Quote:

Originally Posted by Skywatcher (Post 1724255)
Hi, I'm having a problem in version 3.8
My super moderators get the notification, they can access the moderation screen, but when they click on continue in order to approve the new member, they only get a blank screen with the footer (with the mod info/Copyright) and the member doesn't get approved.

Any idea of what might be the problem?

Quote:

Originally Posted by EcoCav (Post 1725588)
I am having the same problem as Skywatcher... any fix for this?

Quote:

Originally Posted by ex-vecs (Post 1726464)
Same here?

Quote:

Originally Posted by Santehnik (Post 1736496)
If you have blank screen than edit user_moderation.php:
Find
PHP Code:

print_form_header('user''domoderate'); 

and change to
PHP Code:

print_form_header('user_moderation''domoderate'); 

This work's for me :)

Oh crap, can not believe I missed that :o Sorry about that folks. I will update it in the next version :)

Mosh 02-19-2009 02:18 AM

Update: v3.8.002 - Thursday 19th February 2009
-- Fixed: Form header incorrect, caused problems
-- Updated: Screenshots
-- Changed: File - user_moderation.php
-- Added: Install/uninstall instructions file
-- Added: VersionHistory.txt

TheMusicMan 02-28-2009 09:31 AM

Nice mod Mosh... thanks for coding it. I clicked 'installed'

GotWalked 03-09-2009 11:40 PM

Mosh-or anyone else for that matter. I'd like the ability to give regular moderators this ability. How hard is that to do?

GotWalked 03-10-2009 02:48 AM

I looked through the php of the modcp.php file that was in the upload folder, and i saw "permissions" but what can I add to that to allow a certain usergroup to be able to use this feature?

Mosh 03-10-2009 05:56 AM

Quote:

Originally Posted by GotWalked (Post 1764456)
Mosh-or anyone else for that matter. I'd like the ability to give regular moderators this ability. How hard is that to do?

Quote:

Originally Posted by GotWalked (Post 1764553)
I looked through the php of the modcp.php file that was in the upload folder, and i saw "permissions" but what can I add to that to allow a certain usergroup to be able to use this feature?

It can be done, as the hack (and optional navbar notification) use those specific permissions to check, and they check if a user is in an administrator usergroup or a super moderator group, they can not be used to check if the user is in a moderator group. I would have to rewrite all the permissions, but I am not interested in updating the hack to do it, it works exactly the way I want it to, and apart from the bug I introduced into the last version of this hack (v3.8.001 fixed in v3.8.002), this hack has been working bug free since about December 2006 (I released it here at the end of August 2007).

If I ever need to add permissions for additional usergroups/users for any of my sites, then I will update this hack at that time, but until then I will not be added anything additional on the permissions end of things.

But if you wanted to do it yourself, you would have to alter the permission in user_moderation.php file, and also all 3 plugins associated with this hack.

GotWalked 03-10-2009 06:28 PM

Well as I tried and don't know how to code as well as you, I cannot do it by myself and i'm sure since you built it, changing a line or two of coding in 4 files wouldn't be terribly time consuming or difficult. Oh well, uninstalled and marked 1 star.

Mosh 04-07-2009 12:16 AM

Update: v3.8.003 - Tuesday 7th April 2009
-- Updated: Screenshots
-- Changed: If both ban user and notification features are enabled, Administrators are also taken to the ModCP version of this hack. The AdminCP version does not have the ban user feature.
-- Changed: Redirect in ModCP forces a full page refresh, so that whole ModCP is viewable after moderating new users.
-- Changed: Install/uninstall instructions file
-- Changed: VersionHistory.txt
-- Added: Ban user feature. If enabled extra and a ban usergoup is selected buttons appear when moderating new users.
-- Added: AdminCP Options to turn ban feature on, select ban group selected moderated users are to moved to and ban message.

Mosh 04-07-2009 12:18 AM

Quote:

Originally Posted by IndyWebDesign (Post 1705879)
I like it... is there anyway you could include an option to ban the user instead of deleting it? Reason being is if there is a potential that this user is a spammer by banning the username it prevents the username from being used again as well as using the email address again. If we delete it they can simply re-register.

Quote:

Originally Posted by Mosh (Post 1705880)
Not without extra coding. This is not something I am interested in adding to this hack at the moment, but I may look at it again at a later date.

This feature request has now been added in v3.8.003 :)

TCB 04-09-2009 07:04 PM

Thanks for this addon (Y)

quarum 04-10-2009 10:03 AM

Would it be possible for this mod to allow the Super Moderator to change the Primary or Additional Usergroups of a User?

I would find that to be a very nice addition.

Thanks

Mosh 04-10-2009 11:42 AM

Quote:

Originally Posted by quarum (Post 1788111)
Would it be possible for this mod to allow the Super Moderator to change the Primary or Additional Usergroups of a User?

I would find that to be a very nice addition.

Thanks

Unfortunately not, as the link for Super Moderators to the users profile uses a link the the ModCP version of user.php which does not allow for the editing of users, only administrators have permission to edit users. Adding your request would actually involve creating a brand new hack to move the edit user admin functions out to the ModCP and sorting out Super Moderator permissions to include the ability to edit a uses profile.

zepter 04-14-2009 09:57 PM

Is there any option to email banned members? same as the mail being sent to those who aproved or deleted?

thanks in advance

Mosh 04-15-2009 12:36 AM

Quote:

Originally Posted by zepter (Post 1791351)
Is there any option to email banned members? same as the mail being sent to those who aproved or deleted?

thanks in advance

Not at the moment, but I could probably add the feature if enough people are interested in having it added.

WouterN 04-16-2009 01:25 PM

Hi Mosh, great add-on. Thanks for that.

I have a question:

- Why is it not possible to use this in the modCP without having new members to verify e-mail address?

Thanks!

Mosh 04-16-2009 09:58 PM

Quote:

Originally Posted by WouterN (Post 1792481)
Hi Mosh, great add-on. Thanks for that.

I have a question:

- Why is it not possible to use this in the modCP without having new members to verify e-mail address?

Thanks!

It is possible with quite a few alterations to this hack, but would alter the way this hack works (and would require a lot of testing to ensure permissions were not broken.

The permissions are the way that they are, because that is the way I chose to do it when I first created the hack for my own forums (vBulletin 3.5.x version, unreleased to public) in 2006 and to me it makes sense if you are passing on manual approval of your potential users to your Super Moderators, for the potential user to have to verify there email address (if the email address exists, then it is one more step to proving they may be legit, i.e. not spammers).

This hack has working exactly the way I like it for over two and a half years, and as I have told others who have requested changing permissions (to allow other usergroups to be selected apart from Super Moderators, or remove the need to confirm emails), is that is not something I wish to do with this hack.

Silver Tiger 05-20-2009 06:44 PM

How can I disable the feature of moderators being able to delete users. In other words, I would use this hack if moderators can accept + ban only.

Thanks :up:

Mosh 05-20-2009 10:16 PM

Quote:

Originally Posted by Silver Tiger (Post 1814247)
How can I disable the feature of moderators being able to delete users. In other words, I would use this hack if moderators can accept + ban only.

Thanks :up:

This is not currently possible. You can only turn the feature On and Off, and affects both Administrators and Super Moderators, if it is On, both Admins and SMods can ban users when registering, if Off, the ban feature is not there for both Admins and SMods.

Please click Mark as Installed if you are using this hack.

maidos 06-09-2009 04:20 PM

how do i disable the notification for new users?
and also mods cannot see where they can approve members once they are in mod cp but onyl work when they click the link on notification

if i disable the notification moderator will not be able to see oending users

Mosh 06-23-2009 12:39 AM

Quote:

Originally Posted by maidos (Post 1826486)
how do i disable the notification for new users?

In the AdminCP Options, see second screenshot

Quote:

Originally Posted by maidos (Post 1826486)
and also mods cannot see where they can approve members once they are in mod cp but onyl work when they click the link on notification

if i disable the notification moderator will not be able to see oending users

See third screenshot (Moderate Registrations at the bottom). Just a note, this hack can only be used by Administrators and Super Moderators only, NOT Moderators.

maidos 06-23-2009 01:34 AM

yes but super moderators still cant access approve users page if i disable the notification.
there will just be empty page, if i renable the notification and moderator refresh the page again they will see users again

Mosh 06-23-2009 01:45 AM

1 Attachment(s)
Quote:

Originally Posted by maidos (Post 1835277)
yes but super moderators still cant access approve users page if i disable the notification.
there will just be empty page, if i renable the notification and moderator refresh the page again they will see users again

I can not replicate this issue at all, I have just tested it out. Even when I turn off notifications there if there are users awaiting moderation, they are still be there for Super Moderators. See the screenshot attached.

Mosh 06-29-2009 11:19 PM

Update: v3.8.004 - Tuesday 30th June 2009
-- Updated: Screenshots
-- Changed: user_moderation.php
-- Added: Option to send email to users that have been banned
-- Added: 3 new phrases

Mosh 06-29-2009 11:20 PM

Quote:

Originally Posted by zepter (Post 1791351)
Is there any option to email banned members? same as the mail being sent to those who aproved or deleted?

thanks in advance

Now added in v3.8.004 :)


All times are GMT. The time now is 05:50 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.01730 seconds
  • Memory Usage 1,870KB
  • 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
  • (6)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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