Page 1 of 1

character limit?

Posted: Mon Nov 08, 2004 11:44 pm
by Nstereo
I want to restrict the number of characters used when registering to avoid people using long screen names.. any help?

Posted: Tue Nov 09, 2004 12:06 am
by sopas
Yeah! I wanted to do this too on my board.

Posted: Tue Nov 09, 2004 12:13 am
by Johnpg82
heres a quick fix...

in add_body.tpl

find

<input type="hidden" name="username" value="{USERNAME}" />

replace with

<input type="hidden" name="username" maxlength="10" value="{USERNAME}" />

10= the max characters you want.

this should work but im not positive.

Posted: Tue Nov 09, 2004 2:15 am
by sopas
Thanks I will try that. In my forum the character limit for the username is currently configured at 25 characters. I think that is the default number since I never modified that.

What is the character limit by default of the "Message body"?

Posted: Thu Nov 11, 2004 4:58 am
by Johnpg82
sopas wrote: Thanks I will try that. In my forum the character limit for the username is currently configured at 25 characters. I think that is the default number since I never modified that.

What is the character limit by default of the "Message body"?


there is none.

Posted: Mon Nov 15, 2004 3:01 am
by sopas
NONE!

Then a user could do a "copy & paste" of 1 million characters into the message body of one forum and fill up all the server space!! I think this is dangerous. Is there any way to limit the characters of the message body??

Posted: Mon Nov 15, 2004 7:00 am
by Johnpg82
i dont want to look up the code this time but look for the posting body tpl i'm not sure the exact filename then find the line for the body and insert the maxcharacter limit.

Posted: Mon Nov 15, 2004 11:01 am
by Homeskillet
sopas wrote: NONE!

Then a user could do a "copy & paste" of 1 million characters into the message body of one forum and fill up all the server space!! I think this is dangerous. Is there any way to limit the characters of the message body??


No...

I don't know what the limit actually is...but I know I tried making a post once that was extremely long (It was a collection of poetry that my members had written and I was doing it all in one post)....anyway, it cut it off about halfway in.

So, I don't know what the actual limit is because I did not count the characters, but I do know it limits.

Posted: Mon Nov 15, 2004 12:32 pm
by sopas
Oh, thanks a lot. It is good to know.

Posted: Mon Nov 15, 2004 3:06 pm
by JoshuaB
Johnpg82 wrote: heres a quick fix...

in add_body.tpl

find

<input type="hidden" name="username" value="{USERNAME}" />

replace with

<input type="hidden" name="username" maxlength="10" value="{USERNAME}" />

10= the max characters you want.

this should work but im not positive.


It did not work for me.