The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Username characters limit?

View previous topic View next topic Go down

Username characters limit?

Post by Nintenex on Sun Dec 20, 2015 3: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
Forumember

Male Posts : 107
Reputation : 3
Language : English

http://nintenex.forumotion.com

Back to top Go down

Re: Username characters limit?

Post by Nintenex on Sun Dec 20, 2015 5:43 pm

bumpstastical

Nintenex
Forumember

Male Posts : 107
Reputation : 3
Language : English

http://nintenex.forumotion.com

Back to top Go down

Re: Username characters limit?

Post by YoshiGM on Sun Dec 20, 2015 5: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
Forumember

Male Posts : 512
Reputation : 76
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Re: Username characters limit?

Post by brandon_g on Sun Dec 20, 2015 6: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


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5144
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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