форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.5.x > Hacks, mods and scripts [3.5.x]
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default Illegal Username Character Preg_match
0

This hack may win me more popularity contests among the older board operators out there....

What pi$$e$ me off more than anything, is when users register usernames with weird characters that take you several minutes to figure out what the hell their username really is! To achieve what this hack does in the adminCP, you would have to enter literally hundreds of single characters!

For 3.5.3, simply install the product, and then edit the only plugin... the variable $char_conditions to your tastes...

Please refer to http://www.php.net/preg_match for help on how to set the conditions to your tastes. The default allows for letters, numbers, and underscores only. If you're a preg_match guru, you can also set it up to require the first character to be a letter, and so on...

Alas, friends and neighbors, the days of [==d00D==], |< () R |\| and |3 () () |3 $ are GONE FOREVER!!!!!!!!
Attached Files
File Type: xml product-int_username_restrict.xml (1.1 KB, 29 views)
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default Restrict usernames to alphanumeric and underscore
1

What is this Plugin about?

Are you tired of seeing in your forums usernames like these?:
1.- The Super Boy (spaces)
2.- my_new_name (underscore abuse)
3.- imçañóndábèar (international characters)

Well, with this simple addon you can prevent that from happening from now on (it can't correct already spoiled usernames). When a user tries to register using one of those chars, a nice error message makes sure the user picks another "normal" name.

Installation instructions
1.- Download the attached .xml
2.- Go to Admin Control Panel => Plugin System => Manage Products => Add/Import Product => and browse for the the location where you downloaded the .xml
3.- Hit Import
4.- To configure it (not really needed, but it is there), go to Vbulletin Forum Options => Restrict Usernames on registration

By default this addon prevents spaces and any char other than numbers and (english) letters while allowing underscore.
Attached Files
File Type: xml product-restrictusername20060201.xml (3.0 KB, 21 views)
 
 
Onkor
Продвинутый
 
Onkor's Avatar
Default
0

По руссски можно объяснит что это такое??
 
 
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default
0

Лень.
 
 
fill747
Продвинутый
 
fill747's Avatar
Default
0

Onkor
первый запрещает создавать подобные ники: [==d00D==], |< () R |\|, |3 () () |3 $

второй запрещает создавать ники с пробелами, знаками подчеркивания и всякими "национальными" символами (imçañóndábèar).
 
 
Onkor
Продвинутый
 
Onkor's Avatar
Default
0

fill747, так в админке есть графа целая для запрета использования всяких символов.
 
 
fill747
Продвинутый
 
fill747's Avatar
Default
0

Quote:
Originally Posted by Onkor
в админке есть графа целая
э-э-э-э-э... что-то я это пропустил... где?
 
 
Onkor
Продвинутый
 
Onkor's Avatar
Default
0

fill747, админка\основные настройки, раздел "Регистрация пользователей" (Недопустимые имена пользователей)
 
 
Amorpho[US]
Продвинутый
Default
0

Это не то совсем.
 


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




All times are GMT +4. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...