Skip to Content Skip to Menu

keep members from using symbol in username?

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
12 years 3 weeks ago #211267 by ThePiston
what can I put into "Authorized Input" so that members do not use a symbol in their username? it throws off the URL to their profile page.

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 3 weeks ago #211271 by nant

ThePiston wrote: what can I put into "Authorized Input" so that members do not use a symbol in their username? it throws off the URL to their profile page.


regex expression to only accept chars and numbers?

Sorry i am not really a regex person, but i assume any of the google searched websites has such default expressions you can borrow.

Please Log in or Create an account to join the conversation.

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
12 years 3 weeks ago - 12 years 3 weeks ago #211275 by ThePiston
Replied by ThePiston on topic Re: keep members from using symbol in username?
maybe just add these into the forbidden field (?)

http:,https:,mailto:,//.,<a,</a>,&#,@,-

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X
Last edit: 12 years 3 weeks ago by ThePiston.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 3 weeks ago #211279 by nant

Please Log in or Create an account to join the conversation.

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
12 years 3 weeks ago #211282 by ThePiston
Replied by ThePiston on topic Re: keep members from using symbol in username?
didn't work but I did see this as one of the optioins which does work. You may want to use this as default since when people user their email as their username, admins cannot click on their URL since it has an "@" in the name. same for when people use a dash.


CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum