1
silentcry
Blocking certain strings in usernames.
  • 2007/5/28 18:12

  • silentcry

  • Just popping in

  • Posts: 7

  • Since: 2007/5/28


Hey,

I'm wondering, is there a way to block certain words from being used in usernames?

I bring this up, since I run a french website and someone used the french equivalent of "Moderator" as his username. I'm wondering if there's a way to block certain words like "admin" and whatnot from being used in a user name.

Thanks,

Phil

2
zyspec
Re: Blocking certain strings in usernames.
  • 2007/5/28 18:19

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Yes, you can.

Go to Admin > Preferences Main > User Info Settings

About 2/3 down the page you'll see "Enter names that should not be selected as username" Enter the string that you don't want to appear in the username.

3
silentcry
Re: Blocking certain strings in usernames.
  • 2007/5/28 18:41

  • silentcry

  • Just popping in

  • Posts: 7

  • Since: 2007/5/28


Hi There,

Thanks for your help, I was able to find it. I'm curious as to the syntax though.

By default webmaster|^xoops|^admin are set.

^admin would mean any instance of admin in the word? or finishing with admin?

Actually, this is probably documented somewhere right?

Phil

4
zyspec
Re: Blocking certain strings in usernames.
  • 2007/5/28 19:48

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


The syntax is regex type syntax so the caret (^) means 'starts with'... You can also use things like $ to indicate 'ends with', etc... You can search the web to find the syntax for regex to find more examples.

5
silentcry
Re: Blocking certain strings in usernames.
  • 2007/5/28 20:01

  • silentcry

  • Just popping in

  • Posts: 7

  • Since: 2007/5/28


Ahh.. Regex, the bane of my existence. alright, I'll see what I can do with it.

Again, thanks for your help.

Login

Who's Online

225 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 225


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits