Spoon
Average Member
  
Ireland
507 Posts |
Posted - 20 July 2001 : 06:44:41
|
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?) |
 |
|