PDA

View Full Version : Edit Toolbar Custom Images


DRJ
08-21-2013, 03:00 PM
For vBulletin 4.2 how can I add custom images to the quick and advanced edit toolbar? The images seems to be in a sprite file and I am just trying to add a custom image to run a new tag I have added.

Thanks

nerbert
08-21-2013, 05:08 PM
In the Custom BB Codes feature there's an input for the path to a custom image for your tag. That puts them in the advanced editor. To get them into the Quick Editor you will have to edit the file vb/ckeditor.php. Starting around line 250 find protected junction setToolBar(), there you see how the various editors have their buttons selected. You want to add the line

$this->addCustomToolbarButtons();

to whichever is the quick editor, "qe" I assume

Simon Lloyd
12-18-2013, 11:30 PM
Use custom bbcode just as you did with earlier versions of vbulletin add the path to the image like ./myimage.jpg and you should be good to go. If you want to replace images that already exist they'll take a bit more digging in the ckeditor templates to see what their name is and where they are called from.