4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: martrix on May 30, 2005, 10:22:49 AM

Title: Reserved usernames / Filtering characters
Post by: martrix on May 30, 2005, 10:22:49 AM
Hi,

maybe somebody could give me a helping hand with these two tweaks:

1) Reserved usernames
I'd like to have some usernames reserved for further use - so nobody could open an account with these names as long as I "forbid" (or better reserve) it.
(So nobody can register as administrator / root / username / motherf***er / this site sucks etc.)
And if some user tries to register with this name, 4images would say:

"Sorry, this username is reserved. Please try to use another one."

It's clear, that I may create a number of accounts for all these usernames - but I would have a number of "dead" accounts with useless db-entries in that case...

2) Filtering chars
If a visitor tries to register with a username containing high ascii chars (ž ř č š ě etc.) 4 images should
 a) warn him/her, that it could cause problems on systems with different keyboard lay-outs and give the chance to change it
or
 b) give an error like "Please don't use ř ž č š ě in your password or username. Using these characters could prevent you from logging in on other computers."
or
 c) change the characters to its "non high ascii" equivalent (e.g. ř = r, š = s) and tell the user something like "Your username was changed to <username without high ascii>."



Can somebody please help me with these features?

Thanks in advance.
Title: Re: Reserved usernames / Filtering characters
Post by: martrix on August 02, 2005, 03:03:23 PM
Sorry for opening that topic again - but could anybody help me with this?

Visitors are registering on my page with users like:

Username/Password
User/Pass
Test/Test
Uživatelské jméno/Heslo (czech translation of Username/Password)

and they do create backdoors for the gallery with this...

:(