Advanced search  

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

Pages: [1]   Go Down

Author Topic: Trouble with navbar customization  (Read 3338 times)

0 Members and 1 Guest are viewing this topic.

ericsoup

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Trouble with navbar customization
« on: May 28, 2008, 10:46:55 pm »

I'm trying to modify the navigation bar over my intermediate image.  None of the changes to the navbar I'm making in my theme.php file are showing up on my site.  Other changes to other sections are showing up fine. 

Here is my code:
Code: [Select]
$template_img_navbar = <<<EOT

        <tr>


<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}">SEND AN ECARD</a>
                </td> -->




<!-- END ecard_button -->

              <!--  <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 -->




        </tr>

EOT;

Logged

FoxRocks

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Trouble with navbar customization
« Reply #1 on: May 30, 2008, 07:47:52 pm »

I'm not really sure what it is you're trying to change that isn't working, can you be more specific?
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Trouble with navbar customization
« Reply #2 on: May 30, 2008, 08:10:39 pm »

It's true that there are some modifications that you can do directly in thumbnails.php or template.hml. But, most of the changes about ‘look and feel’ you could easily do it from the style.css file. If you’re working in the nav bar, just could just change the images or work on style.css like I said. What do you specific want to change?
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

ericsoup

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Trouble with navbar customization
« Reply #3 on: May 31, 2008, 07:17:51 am »

I'd pretty much like to get rid of everything except the button to send the image as an eCard.  And I would like to have the link be text which reads "Send eCard" as opposed to a button.  Although I'd be fine having it as a button which read that as well.

But basically, I can't get any modifications to the navbar to work.  No matter what I seem to do in my theme.php, it's still outputting the default navbar.
Logged

FoxRocks

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Trouble with navbar customization
« Reply #4 on: May 31, 2008, 08:04:34 am »

What theme are you using? From what I understand you can just plain erase anything between the <!-- BEGIN --> and <!--END --> tags as long as you keep those tags there. As for your button/text problem I would be curious to see what the navmenu_pic class says...hence the question on theme. I don't see an image anywhere in the code so I'm thinking maybe it's in the style sheet under that class. I know on the last custom theme I was using I screwed up where I saved the style.css file, I spent days trying to figure out why no changes were being made. Anyways I guess I'm suggesting to double check all your files and their locations.

~FOX~
Logged

ericsoup

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Trouble with navbar customization
« Reply #5 on: June 01, 2008, 11:40:46 pm »

I'm using a custom designed theme.  not a fancy customization, just new css, plus a couple of alterations to my theme.php file.  all of which are taking effect except to the navbar in the intermediate page. 

here is the code which i start with:
Code: [Select]
$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;

now if i change the code to this:
Code: [Select]
$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%">
                   



                </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;

i would think that the "picture position" would be gone from the navbar, yet it still appears.

i've inspected my style sheet and found nothing which might be causing this.  i'm just scratching my head over it at this point. 
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.