@Peter Walker: This simply doesn't work. At the time of my last post I had gotten a very simple template bb code to work (it just made the font color red). I thought it would then be a simple matter to place conditionals in the template to change the output html for different user groups but that doesn't work for bb codes, template or not. So my project here has only the modest advantage of creating a bb code that's easy to modify in the style manager but so far has the disadvantage of not having a button in the editor. So I'm afraid you're stuck with the system you have in place now.
One thing you may wish to consider is a new page for your videos instead of posting them in a thread. A good coder (and there are plenty here) could probably put it together with little effort for a modest payment. I would do it but I can no longer use vB3, as I mentioned above. You would have to have an array associating video titles with their urls so you don't have a query string value equal to the url and therefore visible to members. Every time you make a new video available you would have to edit in a title => url pair into the array and then just post a new link in a thread.
--------------- Added [DATE]1377425821[/DATE] at [TIME]1377425821[/TIME] ---------------
For anyone interested here's a bare bones example of a template bb code. You can develop it further by reading through includes/class_bbcode.php and vb/ckeditor.php and experimenting around.
plugin for [
premium] tags
Plugin Code for bbcode_fetch_tags:
Code:
/**
* Hook: bbcode_fetch_tags, includes/class_bbcode.php line 3719
* See function handle_external() line 1751
*/
$tag_list['no_option']['premium'] = array(
'callback' => 'handle_external',
'external_callback' => 'handle_bbcode_premium'
);
function handle_bbcode_premium($registry, $value)
{
$templater = vB_Template::create('bbcode_premium');
$templater->register('value', $value);
return $templater->render();
}
Template bbcode_premium:
HTML Code:
<span style="color:red;">{vb:raw value}</span>