View Full Version : Is this possible?
GSeybold
07-16-2009, 10:49 PM
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
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
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!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.