vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   min length on thread starter only? (https://vborg.vbsupport.ru/showthread.php?t=314325)

khininger 09-15-2014 02:59 PM

min length on thread starter only?
 
hi :)

i'd like to set a minimal length on thread starter only. so that the first post in a thread has to be at least 200 characters, while responses can be just one word.

i see how to set min post length - but that's for all the posts, both starters and responses. i need short responses and long starters. any way to make it happen?

thank you very much!

kh99 09-15-2014 03:55 PM

I haven't tested it, but you could try creating a plugin using hook location newthread_post_start and code like this:
Code:

$vbulletin->options['postminchars'] = 200;
I'm not sure this handles every case, and I know it won't stop someone from editing the post after it's posted and making it less than 200 chars, but naybe it's good enough for your purposes.

ozzy47 09-16-2014 01:03 AM

Give me a day or so, and I can have the mod done that will do this, and it will work on editing of the post. It will include usergroup perms, forums that it will work in.

ozzy47 09-17-2014 10:26 AM

Ok here is the mod, https://vborg.vbsupport.ru/showthread.php?t=314358


All times are GMT. The time now is 02:02 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.01105 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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