vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Change editor button images (https://vborg.vbsupport.ru/showthread.php?t=316962)

tommythejoat 01-27-2015 05:41 PM

Change editor button images
 
We want to change the image for our image upload button in the editor from the "tree" to a camera. I thought I could do this most simply by just changing the contents of the file named insertimage.png in the images/editor folder.

However, doing that does nothing on my system. I have not yet tried disabling all the add ons, etc. but have been flushing all the cache elements I can find. Can anyone point me to where these images are protected? Are they automatically stored in a sprite cache?

I thought I could just let it age and it would eventually come in, but it has been about a week now and still no change.

Dave 01-27-2015 06:24 PM

It's possible you modified the wrong image.
In Chrome, press F12 to open the developer tools, click on the network tab and then filter on images. Now go to your page which contains the image you want to modify and press CTRL + F5 to reload the page, you should see a bunch of requests in your developer tool, find the image you want to edit and look at the location.

nerbert 01-27-2015 06:54 PM

All those button images are in images/editor/sprite.png. I verified the tree image is in there. It's odd that that one image you replaced is there by itself all lonely.

tommythejoat 01-27-2015 07:25 PM

I am sure I can (and should) find this out for myself, but how does one replace a sprite image?

nerbert 01-27-2015 08:33 PM

If you look at the sprite image you'll see there are three versions of each image. The most faded corresponds to the disabled state for the button; I'm not sure about the intermediate one. So first you would have to use photoshop or equivalent to make faded versions of your image and then carefully copy (or "clone") in your own images over the top of the existing images. If you get it correctly positioned, down to the pixel, it will work. The only alternative I know is to generate a whole new sprite image but to do that you would need every one of the other images, and then you would have to replace the css somewhere to match up with the new image.

What I suggested here is doable if you have a good photo/image app and are willing to do some trial and error with positioning.


All times are GMT. The time now is 06:47 AM.

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.00994 seconds
  • Memory Usage 1,713KB
  • 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
  • (5)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