• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

BB Code Quick Reply Issue

EasyEazy

Member
For the life of me cant find it. I have various BB Code to insert things like You Tube vids and Vines into a post. They work when I create a post but dont show in the quick reply box.

Any ideas?
 
Well then what you can do is this. Create a plugin.

Product: vBulletin
Hook Location: editor_construct
Title: BBCode In Quick Reply
Execution Order: 5
Plugin PHP Code:

Code:
if ($this->editor_type == 'qr') 
{
    $this->config['toolbar'][] = array('[COLOR=#ff0000]XXX[/COLOR]);
}

Change XXX to the title of the bbcode

Now to do this for more than one bbcode use this method in the Plugin PHP Code:

Code:
if ($this->editor_type == 'qr') 
{
    $this->config['toolbar'][] = array('[COLOR=#ff0000]XXX[/COLOR]', '[COLOR=#ff0000]XXX[/COLOR]');
}

Or if you want all the custom bbcodes to show, use this method in the Plugin PHP Code:

Code:
if ($this->editor_type == 'qr') 
{
    $this->addCustomToolbarButtons();
}
 
Well then what you can do is this. Create a plugin.

Product: vBulletin
Hook Location: editor_construct
Title: BBCode In Quick Reply
Execution Order: 5
Plugin PHP Code:

Code:
if ($this->editor_type == 'qr') 
{
    $this->config['toolbar'][] = array('[COLOR=#ff0000]XXX[/COLOR]);
}

Change XXX to the title of the bbcode

Now to do this for more than one bbcode use this method in the Plugin PHP Code:

Code:
if ($this->editor_type == 'qr') 
{
    $this->config['toolbar'][] = array('[COLOR=#ff0000]XXX[/COLOR]', '[COLOR=#ff0000]XXX[/COLOR]');
}

Or if you want all the custom bbcodes to show, use this method in the Plugin PHP Code:

Code:
if ($this->editor_type == 'qr') 
{
    $this->addCustomToolbarButtons();
}

Bloody genius. Once again thank you Ozzy
 
Back
Top