nerbert
08-22-2013, 08:33 PM
On a couple of occasions I've tried to help someone make a bb code that's visible only to designated usergroups. I can't find any reliable way to do it without building a bb code that uses a template, like quote or the three code displaying bb codes, but I don't know how to do it.
Right now I'm stuck on a part in includes/class_bbcode.php. In function fetch_tag_list() there are blocks of code like this
if (($vbulletin->options['allowedbbcodes'] & ALLOW_BBCODE_COLOR) OR $force_all)
{
// [COLOR=XXX]
$tag_list['option']['color'] = array(
'html' => '<font color="%2$s">%1$s</font>',
'option_regex' => '#^\#?\w+$#',
'strip_empty' => true
);
}
Does anyone know where ALLOW_BBCODE_COLOR and other defined variables are set?
Or better yet, does anyone know of a mod that creates a bb code with a template?
Right now I'm stuck on a part in includes/class_bbcode.php. In function fetch_tag_list() there are blocks of code like this
if (($vbulletin->options['allowedbbcodes'] & ALLOW_BBCODE_COLOR) OR $force_all)
{
// [COLOR=XXX]
$tag_list['option']['color'] = array(
'html' => '<font color="%2$s">%1$s</font>',
'option_regex' => '#^\#?\w+$#',
'strip_empty' => true
);
}
Does anyone know where ALLOW_BBCODE_COLOR and other defined variables are set?
Or better yet, does anyone know of a mod that creates a bb code with a template?