vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Is this possible? (https://vborg.vbsupport.ru/showthread.php?t=218766)

GSeybold 07-16-2009 10:49 PM

Is this possible?
 
Is it possible to limit the number of charaters per forum? I want to limit responses to about 2 sentences in one of my forums.


Thanks. :)

Lynne 07-17-2009 01:32 AM

You can probably write a plugin to change the vboption for that setting just for that forum. The setting you would change is the one for max characters per post - there is none for max number of sentences.

1Unreal 07-17-2009 01:54 AM

Quote:

Originally Posted by Lynne (Post 1850265)
You can probably write a plugin to change the vboption for that setting just for that forum. The setting you would change is the one for max characters per post - there is none for max number of sentences.

Is "You can probably write a plugin" permenantly on your clipboard?

Lynne 07-17-2009 01:59 AM

No, but what should I say? She asked if it was possible and any time someone asks that, the real answer is usually "sure, just about anything is possible if you code it." And, I never know how specific to get. I'm here to point people in the right direction to do what they want to do. So, I said she could write a plugin and even helped point her in the direction of the setting she'll want to change with the plugin.

GSeybold 07-17-2009 02:02 AM

Thank you so much Lynn. I have no idea how to do any of that. Is there a "how to write a plugin" tutorial somewhere? I could ask my tech support but would cost even more money. If it's an easy thing then maybe I can do it? I dunno?

Thanks so much.

Gabby

Lynne 07-17-2009 02:11 AM

There are articles in the articles forum on how to write them. Yours would be rather simple, I think. Something like:

hook location: fetch_foruminfo
PHP Code:

if ($forumid == 'xx')
{
    
$vbulletin->options['postmaxchars'] = 'yy';


xx is the forumid, yy is the num of characters. I haven't tested that at all, but I think it would work.

GSeybold 07-17-2009 10:23 AM

wow thank you so much Lynne!


All times are GMT. The time now is 01:02 AM.

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.00985 seconds
  • Memory Usage 1,725KB
  • 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
  • (7)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