Hi, how do I add a minimum character when someone posts? Is it possible?
2 posters
minimum character post
Sukii- New Member
- Posts : 16
Reputation : 1
Language : English
Location : Earth
- Post n°1
minimum character post
Sir Chivas™- Helper
- Posts : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
- Post n°2
Re: minimum character post
Hi,
Create a new JavaScript: ACP >> Modules >> JS codes management >> create a new js >> Title: Whatever you want >> Placement : In topics only >> Insert this code:
Save it.
Test it out, create a test thread insert only 3 characters and try posting it.
Create a new JavaScript: ACP >> Modules >> JS codes management >> 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.
Sukii- New Member
- Posts : 16
Reputation : 1
Language : English
Location : Earth
- Post n°3
Re: minimum character post
Thank you very much!
EDIT: Solved
EDIT: Solved
Last edited by ~TheBird on March 9th 2013, 5:02 am; edited 1 time in total
Sir Chivas™- Helper
- Posts : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
- Post n°4
Re: minimum character post
No problem,
Is this solved?
He edited the post above.
He edited the post above.
Topic Solved & Locked |