News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Maximum Character In Username!

Started by kanza, October 22, 2008, 10:43:21 AM

Previous topic - Next topic

kanza

Hi,

I'm using SMF 1.1.6, may I know any method to restrict or reduce my member's ID from maximum 25 characters?


Thanks =)

Oldiesmann

Themes/default/Register.template.php

Find
<input type="text" name="user" size="20" tabindex="', $context['tabindex']++, '" maxlength="25" />

Change 25 to whatever you want.

ChainLightning

I didn't even think of that. This is something I've wanted to do for a while, now. Great tip!

Thanks Oldiesmann :)

kanza

Quote from: Oldiesmann on October 22, 2008, 11:54:20 AM
Themes/default/Register.template.php

Find
<input type="text" name="user" size="20" tabindex="', $context['tabindex']++, '" maxlength="25" />

Change 25 to whatever you want.



thanks a lot =)

but am I allowed to disable spacing in username?

kanza

and other special character such as, :) !@#$%&

can i limit them to only "_"?

Advertisement: