Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Can't change navmenu icons  (Read 2962 times)

0 Members and 1 Guest are viewing this topic.

FaTFoX

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Can't change navmenu icons
« on: September 07, 2009, 06:55:59 pm »

Hi!
First I apologise my english.
I am making custom theme but I can't change default navmenu_pic. I understood that I only need upload new images to themes/mytheme/images folder and use same name as default.
On themes.inc.php icons are defined like this: <img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" />
and gallery URL is right on setup page: http://tommikappi.com/coppermine/
Now it only uses default images from /images/ folder.
Any suggestions?
Logged

Gene-2008

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 188
Re: Can't change navmenu icons
« Reply #1 on: September 07, 2009, 08:33:07 pm »

As you look at the generated source (I.e. the actual html that is sent to your client) you will see it is defining those images as coming from the images directory....not your theme.

<img src="images/info.gif" border="0" align="middle" alt="Display/hide file information" />


Read the documents..... http://coppermine-gallery.net/demo/cpg14x/docs/theme/edit_theme.html

Quote
define('THEME_HAS_NAVBAR_GRAPHICS', 1);

The location for the navbar graphics will be directed to the themes images folder.

    * Back to thumbnails : images/thumbnails.gif
    * Picture Information : images/info.gif
    * Slideshow : images/slideshow.gif
    * Report to admin : images/report.gif *NEW*
    * Ecard : images/ecard.gif
    * Previous : images/prev.gif
    * Next : images/next.gif

If you have some of these graphics it could be that the original author did not keep the same names; you will need to rename the graphics to conform to the define, or you will need to modify the navbar template directly.
if your theme's images folder contain these filenames insert the define

define('THEME_HAS_NAVBAR_GRAPHICS', 1);

In you theme.php add the line above...hope this helps.  If not post back.
Gene
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.