vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I increase number of characters allowed (https://vborg.vbsupport.ru/showthread.php?t=192403)

mark350 10-01-2008 03:02 PM

How do I increase number of characters allowed
 
Is there a way to increase the number of characters allowed in a forum post - specially, I want to increase it for a specific user group (but not necessarily everyone)?

Lynne 10-01-2008 03:35 PM

vboptions > message posting and editing options > maximum characters per post.

The variable is $vbulletin->options['postmaxchars'] . I'm sure you can write a plugin at global_start (or actually, I'd pick one specific to the showthread/postings pages) to increate that variable just for a certain usergroup.

thecore762 10-01-2008 05:04 PM

Thanks, that helps me too.

mark350 10-01-2008 05:31 PM

Thanks for the information... I foudn the field to change max number of characters, but I don't understand how to set it for a specific user group... not sure what you meant "The variable is $vbulletin->options['postmaxchars']"

Lynne 10-01-2008 07:27 PM

Quote:

Originally Posted by mark350 (Post 1634853)
Thanks for the information... I foudn the field to change max number of characters, but I don't understand how to set it for a specific user group... not sure what you meant "The variable is $vbulletin->options['postmaxchars']"

If you hover over the title in vboptions, you get told what the variable name is and $vbulletin->options['postmaxchars'] is the name of the variable that is used when they set the maximum number of characters per post.

When you write your plugin, you would use a conditional for the usergroup (something like this, it depends what hook you use):
PHP Code:

if (in_array($post['usergroupid'], array(x,y))) { 
// set postmaxchars differently for those in usergroupid x or y
$vbulletin->options['postmaxchars']='40000';


This is NOT TESTED AT ALL!!!! I can't play around on my test site at the moment, so I can't figure this out through trial and error myself, you will have to play with it.


All times are GMT. The time now is 03:52 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.01042 seconds
  • Memory Usage 1,720KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (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