Blocking Short Posts For Lava Script

Started on the old forum in January 2009 · view the original in the archive · old links redirect here

6 replies · 609 views · started 17 years ago · 1 min read

3 participants
anderson Developer · 146 posts #1

Hello coder friends, I need a code help. I want to block short forum posts and PM text that is not more than 5 characters. When a user will post or reply PM with only a smiley or 1-5 characters the post/PM should be blocked by the message "Your Message Is Too Short To Send/Post." So I want this code. I think it will be placed in genproc.php. Thanks. Waiting for code help....

Wait...

ionutxp Developer · 137 posts #3

$postinfo = ........ $number = strlen($postinfo); if($number<4) { ///something }else{ the res 😀 }

//////////////////////////// 😀 easy 😀

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

inet Senior · 264 posts #5

QUOTE (ionutxp @ Jan 25 2009, 03:07 AM) <{POST_SNAPBACK}>

$postinfo = ........ $number = strlen($postinfo); if($number<4) { ///something }else{ the res 😀 }

//////////////////////////// 😀 easy :D

you can try this one.. as he sugested

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

ionutxp Developer · 137 posts #6

$postinfo = $reptxt; $number = strlen($postinfo); if($number<4) { echo "Error! You can't post short posts!"; }else{

hre u put the rest of ur script under the $reptxt

}

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

anderson Developer · 146 posts #7

QUOTE (ionutxp @ Jan 25 2009, 03:00 PM) <{POST_SNAPBACK}>

$postinfo = $reptxt; $number = strlen($postinfo); if($number<4) { echo "Error! You can't post short posts!"; }else{

hre u put the rest of ur script under the $reptxt

}

Thanks iontxp.

I thint this is final code.

Wait...

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close