Can't change navmenu icons Can't change navmenu icons
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't change navmenu icons

Started by FaTFoX, September 07, 2009, 06:55:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FaTFoX

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?

Gene-2008

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

Quotedefine('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