Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 max size of posting
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

gaurav
Starting Member

1 Posts

Posted - 20 July 2001 :  04:36:51  Show Profile
How can one limit the size (Kb or Characters) of a posting and replies. For eg. if I copy the contents of a large doc in the posting, it takes extremely long to even open the forum.

Thanks

Spoon
Average Member

Ireland
507 Posts

Posted - 20 July 2001 :  06:44:41  Show Profile  Visit Spoon's Homepage  Send Spoon an ICQ Message
quote:

How can one limit the size (Kb or Characters) of a posting and replies. For eg. if I copy the contents of a large doc in the posting, it takes extremely long to even open the forum.

Thanks





Its easy in theory, but i dont know the code of the forums too well.

Maybe you could do it with this bit of help.

Find the Page with the MEssagebox, Find out where the form is submitted to.
Then find where the Messagebox is requested. After its requested, stick this in, or something along these lines.

If Len(MESSAGE) > 500 Then
REsponse.Write "<center><font face=verdana size=2 color=red>"
Response.Write "Sorry, Your post is too large"
Response.Write "<a href='Javscript: Onclik= history.back()'><font size=1 color=black><<< Go Back</font></a>"
Response.Write "</font></center>"
Response.End

Change 500 to the number of characters you want as a max
Change Your post is too large to whatever error message you want to show.

I hope this helps, maybe someone else could point him in the right direction where to stick the code??



Regards,

Spoon, (ya all love me right?)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07