The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

minimum character post

View previous topic View next topic Go down

Solved minimum character post

Post by Sukii on March 9th 2013, 4:35 am

Hi, how do I add a minimum character when someone posts? Is it possible?


Sukii
New Member

Posts : 16
Reputation : 1
Language : English
Location : Earth

Back to top Go down

Solved Re: minimum character post

Post by Sir Chivas™ on March 9th 2013, 4:52 am

Hi,

Create a new JavaScript: ACP >> Modules >> JS codes management >> Add create a new js >> Title: Whatever you want >> Placement : In topics only >> Insert this code:

Code:
$(function() {
var x=document.forms['post'];
$(x.post).click(function(e) {
 if (x.message.value.length < 10) {
  e.preventDefault();
  alert('Your post must contain at least 10 character');
 }
});
});

Save it.

Test it out, create a test thread insert only 3 characters and try posting it. Wink



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: minimum character post

Post by Sukii on March 9th 2013, 5:01 am

Thank you very much!



EDIT: Solved


Last edited by ~TheBird on March 9th 2013, 5:02 am; edited 1 time in total

Sukii
New Member

Posts : 16
Reputation : 1
Language : English
Location : Earth

Back to top Go down

Solved Re: minimum character post

Post by Sir Chivas™ on March 9th 2013, 5:01 am

No problem, Wink
Is this solved?
He edited the post above.

Topic Solved & Locked



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum