I believe this only works in vBulletin 3.7.0, because earlier versions don't have these hooks.
If you see this post, Abe, you're free to integrate it into the product.
To handle custom BB-Code perms, plugin at:
misc_bbcode_bit
Note: You will need to modify the forum ID for your own setup.
PHP Code:
if (empty($full_parse))
{
if (!defined('BBCODE_ENABLED_FORUM'))
{
define('BBCODE_ENABLED_FORUM', 2);
}
$full_parse = array(
$vbulletin->templatecache['help_bbcodes_bbcode'],
$vbulletin->templatecache['help_bbcodes_link']
);
}
$bbcode['output'] = $bbcode_parser->parse($bbcode['bbcodeexample'], BBCODE_ENABLED_FORUM);
if (empty($bbcode_parser->tag_list[($bbcode['twoparams'] ? 'option' : 'no_option')][$bbcode['bbcodetag']]))
{
$vbulletin->templatecache['help_bbcodes_bbcode'] = '';
$vbulletin->templatecache['help_bbcodes_link'] = '';
}
else
{
$vbulletin->templatecache['help_bbcodes_bbcode'] = $full_parse[0];
$vbulletin->templatecache['help_bbcodes_link'] = $full_parse[1];
}
To handle default BB-Code perms, plugin at:
misc_bbcode_complete
PHP Code:
$show['bbcodebasic'] = (!empty($bbcode_parser->tag_list['no_option']['b'])) ? true : false;
$show['bbcodecolor'] = (!empty($bbcode_parser->tag_list['option']['color'])) ? true : false;
$show['bbcodesize'] = (!empty($bbcode_parser->tag_list['option']['size'])) ? true : false;
$show['bbcodefont'] = (!empty($bbcode_parser->tag_list['option']['font'])) ? true : false;
$show['bbcodealign'] = (!empty($bbcode_parser->tag_list['no_option']['left'])) ? true : false;
$show['bbcodelist'] = (!empty($bbcode_parser->tag_list['option']['list'])) ? true : false;
$show['bbcodeurl'] = (!empty($bbcode_parser->tag_list['option']['url'])) ? true : false;
$show['bbcodecode'] = (!empty($bbcode_parser->tag_list['no_option']['code'])) ? true : false;
$show['bbcodephp'] = (!empty($bbcode_parser->tag_list['no_option']['php'])) ? true : false;
$show['bbcodehtml'] = (!empty($bbcode_parser->tag_list['no_option']['html'])) ? true : false;