• Page 1 of 1
  • 1
uCause Community » Trash & Archives » Forum » Limit of characters before you can post.
Limit of characters before you can post.
AnimorphDate: Wednesday, 2011-06-29, 6:12 PM | Message # 1
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(


1. go to CP ---> Design ---> Design management (templates) ---> Forum ----> General appearance of forum pages ---> Add this after $BODY$:

Code
<script type="text/javascript">
      $(document.addform).submit(function(){
      var minlen = 10;//The minimum length of the message.
      if (this.message.value.length < minlen) {
      _uWnd.alert('<br>Your message is too short and probably will not be meaningful.','Message is too short',{h:120, w: 250, tm: 4000});      
      this.sbm.disabled = 0;      
      return false;
      }
      });
   </script>
tags-zB11Limit, of, characters, before, you, can, post.
Attachments: 9070121.png(43.7 Kb)
 
0 Thanked you For This Useful Post:
Maczo12310Date: Wednesday, 2011-06-29, 7:02 PM | Message # 2
Member
Group: Senior Members
Messages: 987
Awards: 12
Reputation: 11
Status: :-(
Well, if anyone wants to know, this code is fully working. Cheked it on my website.

Attachments: 2438795.png(129.4 Kb)



Visit my Graphic forum board on uCause !!!
 
0 Thanked you For This Useful Post:
Silence-PrayerDate: Sunday, 2011-07-03, 10:21 PM | Message # 3
uCause Co-Admin
Group: Senior Members
Messages: 519
Awards: 21
Reputation: 17
Status: :-(
Wow!!

uCause is the Best
 
0 Thanked you For This Useful Post:
HermesDate: Monday, 2011-07-04, 4:26 PM | Message # 4
Member
Group: Senior Members
Messages: 455
Awards: 7
Reputation: 8
Status: :-(
Animorph, Nice Job smile
 
0 Thanked you For This Useful Post:
uCause Community » Trash & Archives » Forum » Limit of characters before you can post.
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers