![]() |
Username Registration (A-Z, 0-9 Characters Only)
In Reply to this thread: https://vborg.vbsupport.ru/showthread.php?t=92308
Only accept usernames with no special characters or spaces. Database query: Open up PhpMyAdmin, goto to your vbulletin database, run following query: Code:
INSERT INTO setting ( varname , grouptitle , value , defaultvalue , optioncode , displayorder , advanced , volatile ) Code:
Phrase Type: Front-End Error Messages File Modifications: Open: [forumroot]/register.php Find: PHP Code:
PHP Code:
register.php Now users can not use special chars or spaces in their username when signing up. To disable the function goto, Admin CP > vBulletin Options > User Registration Options. Find the yes/no option under ?Disallow Special Characters ? That's all, Gr3?Tz Untold.... |
I did something like this that is less intensive...
I wont put the link to highjack your thread but maybe we can do something that is better for both hacks... a new cleaner version? Up to you. |
thx,
that way my users can have a subdomain. |
This should really be standard with vB. :)
|
I would love to see this hack ported to vB3.5
Thanks. |
Quote:
|
I have a question.....
What are the symbols that YOU SHOULD RESTRICT, if you use mod re-write to make profiles be www.site.com/username Because i know that there are some characters that either might effect the LINK itself, can be used to ppossible "hack" the site, etc. |
Maybe this is what your looking for? http://forum.modrewrite.com/viewtopic.php?t=571
Update: http://forum.modrewrite.com/viewtopic.php?t=127 |
I think those are for subdomains...... mines isnt username.site.com it's site.com/username Perhaps all i should exclude is /?
|
I loved this in vb3.0... Does anybody plan to port it? I am going to try, but I haven't used the hook system yet. I think this could be made as a product or plugin, but I'm not really sure.
|
How can I use this to allow a-z A-z 0-9 and spaces?? In other words what would I need to do to get this existing hack to work but still allow spaces in usernames??
|
Quote:
PHP Code:
|
Thanks will try this tommorow :D
|
Added this today and it works a treat!! Thanks untold4you.
|
Nice hack bro, but could you please make a vBulletin option that would allow board administrator to specify a custom allowed letter range (so that besides English, another language or languages would be allowed)? Thanks :)
|
Quote:
Gr3?Tz... |
Quote:
|
Quote:
|
Yes, and all you have to do is replace
Code:
if (!eregi("^[A-Za-z0-9]+$", $_POST['username'])) Code:
if (!eregi("^[A-Za-z" . $vboptions['mycustomoption'] . "0-9]+$", $_POST['username'])) Also, a shorter form of "A-Za-z" in a regex would be a simple "A-z" :) |
Quote:
|
Quote:
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=96922" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=96922</a> here it is. However i've not yet tested this on the latest verion. Gr²³tz and hope i was of any help to you...
|
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|