![]() |
|
Thread Tools |
#1
|
|||
|
|||
How to reserve usernames?
I would like to reserve more than 100 usernames before I start a forum. I know I can blacklist them but it will disallow any other combination with these names however I don't want to do this. Can I use quotes or something to reserve only the required names? Mod anyone?
No members have liked this post.
|
#2
|
|||
|
|||
my suggestion would be to create these users now, and give the password to the persons you want these usernames to be given... this is the simpliest way of doing it.
No members have liked this post.
|
#3
|
|||
|
|||
The problem is everyone can see these user names by checking the profiles of the first registered users. Also it is not really easy and convenient to create all these users that might be even more, not to mention the incorrect number of users that will be displayed on the home page. The idea is if I can use the blacklist option that should be modified to check for exact matches.
No members have liked this post.
|
#4
|
||||||||||||
|
||||||||||||
The best way I can think of is editing your ./includes/class_dm_user.php file and adding something along the lines of
At the end of the verify_username function, just above where it says
Or the simple way (covers less angles but doesn't require file edits), add a plugin using the register_addmember_process hook, with:
If someone wanted they could take it a step further and use an option instead of hardcoding the names.
__________________
Sr Software Developer / Tech Lead No members have liked this post.
Last edited by Adrian Schneider; 30 Sep 2007 at 07:55. |
#5
|
|||
|
|||
Thank you. I tried the plugin although I don't know what you mean by "cover less angles".
But it seems it doesn't convert to lower case. No members have liked this post.
Last edited by 001; 01 Oct 2007 at 22:31. |
#6
|
||||
|
||||
Adding new users by other means than registration.
Whether it's your own registration form, adding via AdminCP, etc. It goes through the datamanager than just the registration form.
__________________
Sr Software Developer / Tech Lead No members have liked this post.
|
#7
|
|||
|
|||
I see. And any solutions about the lowercase conversion? Otherwise the registration can still be made even if the name is reserved.
No members have liked this post.
|
#8
|
||||
|
||||
change it to..
You'll have to read between the lines a bit to do it. The array of names would also need to be in lowercase.
__________________
Sr Software Developer / Tech Lead No members have liked this post.
|
#9
|
|||
|
|||
Thanks a lot. It seems it only works with English characters though. However the the usual registration recognizes properly if the user name is really taken with non-English letters. It there a way to make this work too?
No members have liked this post.
|
#10
|
||||
|
||||
I think vb has its own strtolower function that better handles non-English chars. I'll check later tonight.
__________________
Sr Software Developer / Tech Lead No members have liked this post.
|
#11
|
|||
|
|||
I supposed so too. It would be nice if we can use that function in the plugin.
No members have liked this post.
|
#12
|
|||
|
|||
vbstrtolower() in includes/functions.php.
__________________
Marco van Herwaarden Ex vBulletin.org Coordinator No members have liked this post.
|
#13
|
|||
|
|||
Thanks, it works now.
No members have liked this post.
|
#14
|
|||
|
|||
Is there anything like that for the newest versions?
No members have liked this post.
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reserve usernames for guests only | Paul | vBulletin 2.x Full Releases | 8 | 14 Aug 2002 10:23 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 07:33.