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: Custom Navigation buttons not showing up  (Read 4830 times)

0 Members and 1 Guest are viewing this topic.

PixelColada

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Custom Navigation buttons not showing up
« on: November 14, 2006, 12:45:37 pm »

Here is my old site with the old buttons from CPG 1.3

I made some custom navbar buttons(png) for 1.3.  I'm trying to use the same buttons with 1.4.  Use FF or Opera to look at this correctly.

Here is the new site. 
But I can't figure out how to modify theme.php to show the buttons.  Every time I cut and paste, I get errors.  I'm not very good with php.

Any help will be appreciated.

Thanks,
Sheff
« Last Edit: November 15, 2006, 12:39:33 am by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Custom Navigation buttons not showing up
« Reply #1 on: November 14, 2006, 01:17:50 pm »

Do you have this line in your theme.php file? If not, add it near the top with the others that might be there.
Code: [Select]
define('THEME_HAS_NAVBAR_GRAPHICS', 1);
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

PixelColada

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Custom Navigation buttons not showing up
« Reply #2 on: November 14, 2006, 06:28:00 pm »

I do have it, but it looks for the files as gif files and what I have created are png files.  I don't know how to state in the theme that the images are a different format rather than simply a different file with same name.
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Custom Navigation buttons not showing up
« Reply #3 on: November 14, 2006, 06:33:28 pm »

It would be easier to convert them to gifs. If you don't have a graphics program handy, you can try this online version - http://www.coolutils.com/Online-Image-Converter.php

Maybe this one is better - http://tools.dynamicdrive.com/imageoptimizer/index.php
« Last Edit: November 14, 2006, 06:39:30 pm by Gizmo »
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Custom Navigation buttons not showing up
« Reply #4 on: November 14, 2006, 06:42:17 pm »

My deepest apologies. I was thinking of something else so here's where you can edit the file name. Copy this code from the sample>theme.php and paste it into your theme.php and edit the file names.
Code: [Select]
// HTML template for the image navigation bar
$template_img_navbar = <<<EOT

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="100%">
                        {PIC_POS}
                </td>
<!-- BEGIN report_file_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
                </td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
<!-- END ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0" align="middle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif"  border="0" align="middle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>

EOT;
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

PixelColada

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Custom Navigation buttons not showing up
« Reply #5 on: November 14, 2006, 07:48:35 pm »

That did the trick.   Really cool that you got back to me so quickly.  Thanks a lot.

Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.