coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: ericsoup on May 28, 2008, 10:46:55 PM

Title: Trouble with navbar customization
Post by: ericsoup 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:
$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;


Title: Re: Trouble with navbar customization
Post by: FoxRocks 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?
Title: Re: Trouble with navbar customization
Post by: Fabricio Ferrero 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?
Title: Re: Trouble with navbar customization
Post by: ericsoup 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.
Title: Re: Trouble with navbar customization
Post by: FoxRocks 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~
Title: Re: Trouble with navbar customization
Post by: ericsoup 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:
$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:
$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.