Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah Discussion    E-Blah Features  ›  Minimum amout of characters before a post
Users Browsing Forum
No Members and 1 Guests

Minimum amout of characters before a post  This thread currently has 889 views. Print
1 Pages 1 Recommend Thread
stonedtseller
September 22, 2005, 3:16pm Report to Moderator Report to Moderator
Guest User
Is there any way to allow restricting to a minimum amount of characters that has to be in a post before it can be posted? I hate it when a lot of people just post stuff like 'COOL' or 'YEAH'. Is there a way that I can require something like a 10 character minimum before a post can be made? I know vB already has this feature so I know this as to at least had been thought off for eBlah before in the past.
Logged
E-mail E-mail
Justin
September 22, 2005, 6:30pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Yeah, I believe there's a post somewhere about it ... finding it would be heck though.  lol

Post.pl; search for:
Code
     if(length($message) > $maxmesslth && $maxmesslth) { $error = $gtxt{'long'}; }


Add after:
Code
     if(length($message) < 100) { $error = $gtxt{'long'}; }


Change the 100 to however many characters you desire.  


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 1 - 4
stonedtseller
September 26, 2005, 3:41pm Report to Moderator Report to Moderator
Guest User
ok when i add that and i test it to see if it works i get this message:

"Your message is too long. Please go back and shorten it."

how can i change that to say something like

"Your message is too short. Please go back and try again"
Logged
E-mail E-mail Reply: 2 - 4
Justin
September 26, 2005, 6:29pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Change: $error = $gtxt{'long'}; to $error = "Your message is too short. Please go back and try again";


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 3 - 4
stonedtseller
September 26, 2005, 10:46pm Report to Moderator Report to Moderator
Guest User
perfect! thanks man!
Logged
E-mail E-mail Reply: 4 - 4
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah Discussion    E-Blah Features  ›  Minimum amout of characters before a post