test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • pba2006 Friend
    #179479

    Hello,

    On the website http://www.akankshajunction.com, when a new user registers (clicks Become an Akankshaite on the home page), the registration form that appears, allows the user to enter special characters in the Name field. Also the username field accepts spaces.

    How do I

    1) Disallow special characters in the Name field
    2) Disallow space in the username field?

    Any help would be appreciated.

    Thank you
    Best regards

    Praveen

    Sherlock Friend
    #462568

    Hi pba2006,

    what’s the special characters you mentioned ? To achieve this would need to modify into core of the Jomsocial component so if possible i think you can post a question to the jomcial forum to see if there are anyone who has faced this problem before can give you a hand 🙂

    pba2006 Friend
    #462598

    Thanks, Sherlock.

    By special characters, I mean characters like !@#$%^&. The Name field accepts such characters. If you or anyone could tell me which source PHP file to edit, I could take it forward from there myself.

    Thank you

    Praveen

    Sherlock Friend
    #462638

    Hi pba2006,

    You could open the file of componentscom_communitycontrollersregister.php there you look for this function
    [PHP] private function _validateRegister($post = array())
    {

    [/PHP]

    You would be required php skills to modify there, Let me know if any doubts still there 🙂

    pba2006 Friend
    #463525

    Thanks, Sherlock. I’ll take it forward from here.

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  pba2006 12 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum