News:

Wondering if this will always be free?  See why free is better.

Main Menu

Name check

Started by {Makenzi}, February 22, 2019, 05:51:08 PM

Previous topic - Next topic

{Makenzi}

Hello World!
I need help about registration...
I need check is user's name in valid format (regex - [A-Z][a-z]+_[A-Z][a-z]+)
I do not know where and how to use regex in php (smf 2.0.15 is in footer but default theme says its .14 i'm not forum owner so i really do not know) cuz I'm C#,C++,C developer and i just started learning PHP :)
Please help me, thank You!

Arantor

Are you trying to change how what usernames SMF allows? (It allows many more things than that)

{Makenzi}

#2
Quote from: Arantor on February 22, 2019, 05:53:17 PM
Are you trying to change how what usernames SMF allows? (It allows many more things than that)
Its for my RolePlay game's server, so yes, i need name in this format: Name_Surname ( [A-Z][a-z]+_[A-Z][a-z]+ )
EDIT: I do not want to change it for existing users, only check it while user is registering...
EDIT 2 : I fixed it myself it just took time to me to notice Register.php in sources folder :D

Advertisement: