View Full Version : via usergroup - a way to prevent BBC code - IN POSTS
caliman
03-27-2008, 09:31 PM
I am shocked to find out that my new usergroup with no BBC code setting ONLY works for sigs.
This is so lame. I have a bunch of wacko users that go crazy with BBC formatting - large fonts, etc..
Is there a way to get this ability to work in posts too?
How would you do it?
Thanks in advance..
GameWizard
03-28-2008, 04:51 AM
The only thing aside from finding a hack, would be to modify the Global BB Code settings located in:
Vbulletin Options > Message Posting and Editing Options > Enabled Built-in BB Codes
caliman
03-28-2008, 05:38 AM
Actually that is in vboptions > bb code settings
Enabled Built-in BB Codes
This setting allows you to enable and disable various built-in bbcodes in vBulletin.
Disabling a bbcode will prevent it from working anywhere on the forum, including signatures, private messages, user notes etc.
This will affect everybody.
Earlier I was looking at the functions_bbcode file...
Perhaps I could put something like:
if ($bbuserinfo['userid'] != 9582) do bbcode?
I couldn't figure out where though.
Have you or anybody else played around in there?
GameWizard
03-28-2008, 08:05 AM
Your best bet is to find an existing hack that allows this, I did a quick search and found this:
https://vborg.vbsupport.ru/showthread.php?t=103747&highlight=bbcode+usergroup
Not sure if it'll work since it's outdated. Look more carefully, maybe I missed something.
Opserty
03-28-2008, 09:46 AM
This is the modification posted above which is for vBulletin 3.6.8 https://vborg.vbsupport.ru/showthread.php?t=122942
caliman
03-28-2008, 02:46 PM
I saw that but if you read the thread there have been numerous bugs reports.
I'd like to keep to a simple conditional based on user if possible.
I appreciate your help with this however. I am just trying to get away from more mods.
I am still having issues with usergroups since I had installed 'who viewed my profile'
MoT3rror
03-29-2008, 03:21 AM
The function construct_postbit in the file class_postbit.php runs the post through the bbcode system with the line.
$this->parse_bbcode();
I hope that helps you. You will just have to find the way to get the userid you want in there.
Also this is in 3.7 R1 but it probably close to the same on 3.6.8
Opserty
03-29-2008, 08:34 AM
There is also a strip_bbcode() (http://members.vbulletin.com/api/vBulletin/_includes_functions_php.html#functionstrip_bbcode) function in functions.php, which you could probably utilise.
$this->registry->userinfo['userid'] should hold a value, though I don't have the file handy so I'm no 100% sure.
caliman
08-27-2008, 10:34 PM
Thanks for the tips! More are welcome...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.