MyBB Central

Full Version: Restrict User Names and Titles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
License is GNU/GPL attached inside the folder.

Plugin Name: Restrict NT (names and titles)
Plugin Author: Jesse Labrocca
Plugin Website: http://www.MybbCentral.com
Plugin Version: 1.1
Plugin Mybb Compatibility: 1.2x
Plugin File Edits: None
Plugin File Uploads: 1
Plugin Description: With this plugin you can restrict certain custom usertitles and signup usernames.

Installation:

1. Upload 1 file from the zip

root/inc/plugins/restrictnt.php

2. Login to your admincp and ACTIVATE the plugin (Restrict Names and titles) in the plugin manager.

3. (optional) You may edit or add the restricted names in the array itself. Be careful to keep syntax or you may break your signup and usercp. You can edit the file to add names without deactivating the plugin or you can edit/add names before you activate it.

Any suggestions on how to improve this plugin are welcome.
I need this plugin.
Who doesnt!
Nice plugin, thanks!
This is a must for my forums thanks!
OK. This is nice plugin but I have some questions:

1. Syntax it's case sensitive: 'username' = 'UserName' ?
2. Can I use 2 different words for restricted user names (like 'User Name') ?
3. You give us liberty to translate this error message in my forum language ?
error("Sorry, you cannot use that usertitle.")
4. If I want to use it just for prevents restrict User Names (not for Titles) what I must to delete from code (and of course, just if you let me to do this) ?

This:
Code:
    if(in_array($mybb->input['usertitle'], $restricted, true))
        {
            error("Sorry, you cannot use that usertitle.");
        }
and this ?
Code:
$plugins->add_hook("usercp_start", "restrict_nametitle");

I use "Auto Assign Groups" plugin (by Goughy000) and I don't want to affect (restrict) title for my user because they don't can use custom title, anyway.


Thank's !
Wink
thanks for this i will try it tomorror
jea thank you!
really nice & usefull mod .. thanks
this is a very usefull plugin.
thanks a lot.
Reference URL's