Username characters limit?

Go down

Username characters limit? Empty Username characters limit?

Post by Nintenex Sun 20 Dec 2015 - 16:06

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

Male Posts : 109
Reputation : 5
Language : English

View user profile http://nintenex.forumotion.com

Back to top Go down

Username characters limit? Empty Re: Username characters limit?

Post by Nintenex Sun 20 Dec 2015 - 18:43

bumpstastical
Nintenex
Nintenex
Forumember

Male Posts : 109
Reputation : 5
Language : English

View user profile http://nintenex.forumotion.com

Back to top Go down

Username characters limit? Empty Re: Username characters limit?

Post by YoshiGM Sun 20 Dec 2015 - 18:59

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 ~
YoshiGM
YoshiGM
Active Poster

Male Posts : 1081
Reputation : 131
Language : Spanish & English
Location : Mexico

View user profile http://asistencia.foroactivo.com/u21373

Back to top Go down

Username characters limit? Empty Re: Username characters limit?

Post by brandon_g Sun 20 Dec 2015 - 19:57

@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
brandon_g
brandon_g
Manager
Manager

Male Posts : 9660
Reputation : 888
Language : English
Location : USA

View user profile https://www.broadcastingduo.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum