vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Edit Toolbar Custom Images (https://vborg.vbsupport.ru/showthread.php?t=301453)

DRJ 08-21-2013 03:00 PM

Edit Toolbar Custom Images
 
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.


All times are GMT. The time now is 07:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01057 seconds
  • Memory Usage 1,705KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete