vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Restrict usernames to alphanumeric and underscore (https://vborg.vbsupport.ru/showthread.php?t=106877)

Reynaldovb 01-31-2006 10:00 PM

Restrict usernames to alphanumeric and underscore
 
This is a vB 3.5.x port of the same mini mod.
( https://vborg.vbsupport.ru/showthread.php?t=73559 )

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.

**
Fixed to work with 3.6.8 and 3.7

Reynaldovb 02-01-2006 07:09 AM

--- This space left intentionally blank ---

redspider 02-01-2006 07:12 AM

I got some new members that been using emails as user name would this block the @ symbol?
thank you

Reynaldovb 02-01-2006 07:24 AM

Quote:

Originally Posted by redspider
I got some new members that been using emails as user name would this block the @ symbol?
thank you

Yes, by default it would block anything but letters a-z, numbers, and the underscore. Anything else and the user gets an error message asking him to modify his username.

In short: yes, it would block the @ symbol as well the dot used in .com|.net

redspider 02-01-2006 07:28 AM

thank you.

hiiped 02-01-2006 08:57 AM

good job

thanks

xswrex 02-01-2006 09:38 AM

thank you, simple yet effective.

installed !!!

Snake 02-01-2006 10:22 AM

I've it installed on my forums. Thanks!

duplu 02-01-2006 10:27 AM

Thanks, just what I needed. I have another piece of software which feeds usernames off of the vbulletin user file and it doesn't like non-alphanumeric characters in the username - so this will be ideal.

Reynaldovb 02-01-2006 03:42 PM

I remember when I moved from Xoops to vBulletin I wanted to start clean and "correct" those names with non alphanumeric chars, so I made an small tool that checked every name and if it didnt comply, changed it to normal standards.

It was a brute and ugly tool, but it did the job. After that I emailed all the users in the forum letting them know that some of them had their name changed, and included their current name in the email (vBulletin mailing system).

If you would want me to release that tool, I would be glad to help you get your forums "clean". LOL


All times are GMT. The time now is 07:22 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.01202 seconds
  • Memory Usage 1,730KB
  • 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_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
  • (10)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