Username characters limit? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    Username characters limit?

    Nintenex
    Nintenex
    Forumember


    Other / Decline to state Posts : 109
    Reputation : 5
    Language : English

    Username characters limit? Empty Username characters limit?

    Post by Nintenex December 20th 2015, 4:06 pm

    Hi Forumotion staff and members i have a question about below v


    Is there a way i can limit how many characters a user can use for their username when registering? Very Happy

    and also i have a section on my forum called "Nintendo News" i wanted to restrict creating topics for members but allow them to comment on the messages. how do i do this without blocking access for them?
    Nintenex
    Nintenex
    Forumember


    Other / Decline to state Posts : 109
    Reputation : 5
    Language : English

    Username characters limit? Empty Re: Username characters limit?

    Post by Nintenex December 20th 2015, 6:43 pm

    bumpstastical
    YoshiGM
    YoshiGM
    Active Poster


    Male Posts : 1562
    Reputation : 146
    Language : Spanish & English
    Location : Mexico

    Username characters limit? Empty Re: Username characters limit?

    Post by YoshiGM December 20th 2015, 6:59 pm

    Hello, try adding this on your Javascripts (In all pages):

    Code:
     $(document).ready(function () {
                if ($(location).attr('pathname') + $(location).attr('search') == "/register?agreed=true&step=2") {
                    var max = 10; /*Change this value for the max character limit*/
                    $("#username_reg").attr('maxlength', max);
                    $("#username_reg").after("*The username must be less to " + max + " characters");
                }
            });

    You can edit the text, in :

    Code:
     $("#username_reg").after("*The username must be less to " + max + " characters");

    Do not forget the variable " + max + " to show the max number.

    Cheers,
    YoshiGM ~
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Username characters limit? Empty Re: Username characters limit?

    Post by brandon_g December 20th 2015, 7:57 pm

    Nintenex wrote:Hi Forumotion staff and members i have a question about below v


    Is there a way i can limit how many characters a user can use for their username when registering? Very Happy

    and also i have a section on my forum called "Nintendo News" i wanted to restrict creating topics for members but allow them to comment on the messages. how do i do this without blocking access for them?

    Nintenex wrote:bumpstastical


    Hello,

    Please do not double post. Your posts must be seperated by 24 hours, unless you are adding something to your problem. Please use the edit button instead ~ brandon_g



    Username characters limit? Brando10
    Remember to mark your topic Username characters limit? Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Username characters limit? Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points