REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restrict User Names and Titles
#1
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.


Attached Files
.zip   Less than 1 minute ago">Restrict_NT.zip (Size: 8.37 KB / Downloads: 47)
#2
I need this plugin.
#3
Who doesnt!
#4
Nice plugin, thanks!
#5
This is a must for my forums thanks!
#6
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
#7
thanks for this i will try it tomorror
#8
jea thank you!
#9
really nice & usefull mod .. thanks
#10
this is a very usefull plugin.
thanks a lot.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Additional User Images ohliam 0 1,670 Jul 14, 2008, 07:46 AM
Last Post: ohliam
  Minimum Thread Titles labrocca 2 3,743 May 29, 2008, 07:16 AM
Last Post: king of kills

Forum Jump:


Users browsing this thread: 1 Guest(s)