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.

Username characters limit?

3 posters

Go down

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

https://resurgelife.forumotion.com/

Back to top Go down

Username characters limit? Empty Re: Username characters limit?

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

bumpstastical
Nintenex
Nintenex
Forumember

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

https://resurgelife.forumotion.com/

Back to top Go down

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

Male Posts : 1499
Reputation : 144
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

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

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

https://www.broadcastingduo.com

Back to top Go down

Back to top

- Similar topics

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