vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Post minimum lengh 4 words (https://vborg.vbsupport.ru/showthread.php?t=212672)

Skierpetros 05-02-2009 11:54 AM

Post minimum lengh 4 words
 
Hello i want to make my board reject post that has less than 4 words or smilies

how can i do that?

Cryo 05-02-2009 03:44 PM

Admin CP -> vB Options -> Message Posting and Editing Options -> Minimum Characters Per Post

Also, make sure ignore quoted words is set to yes. As far as smilies, I don't think you can set it to do that, however a smiley does count as two characters, so they would have to enter two smilies.

Lynne 05-02-2009 03:58 PM

The only option in vb is to count the number of characters per post (as brought up in post 2). If you want it to count words, you are going to have to modify the code a bit.

Skierpetros 05-02-2009 04:33 PM

xmm how can i do that?(modify the code)

Lynne 05-02-2009 04:53 PM

You'd have to go look into dealing with strings in php and then maybe you can find a hook to use to perform the action on the message string and count the words. I'm really not sure exactly how to do it, but that should get you started. http://us.php.net/manual/en/ref.strings.php


All times are GMT. The time now is 02:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00981 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete