How to remove "Slideshow" and "Display/HideS Image Info buttons? How to remove "Slideshow" and "Display/HideS Image Info buttons?
 

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]

Main Menu

How to remove "Slideshow" and "Display/HideS Image Info buttons?

Started by dke, May 20, 2007, 12:55:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dke

Hello,

I would like some help on how to remove these buttons (see image)

[edit GauGau] replaced hotlinked image with attachment [/edit]

Im using "macosx" skin that comes with coppermine.

Anyone able to help me?

Thanks in advance!

Joachim Müller

Edit themes/yourtheme/theme.php, find// HTML template for the image navigation bar
$template_img_navbar = <<<EOT
and edit the stuff underneath it as you see fit. If the code doesn't exist in your custom theme, copy// 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;
from themes/sample/theme.php into a new line before?>of themes/yourtheme/theme.php, then edit as suggested above. Has been asked often - in the future, please search before posting (afaik you have been told so before ::)).

dke


Naesstrom

ok, I tried to search for this but I guessing I'm searching for the wrong thing...

I want to do something almost like that... I want to remove all the links at the top left part, and just have centered something like this:
<< 1/22 >>

Since I'm using the FiPlain template from this site and it didn'thave those parts in the theme.php file I copied them according to your instructions from the sample file to mine so it now looks looks like:


$template_img_navbar = <<<EOT

        <tr>

                <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="100%">
                        {PIC_POS}
                </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>
<!-- BEGIN report_file_button -->
?>


but it still looks the same... note that I also want the "file" text to be gone thats in front of the pic number!

Flame me all you want but wouldn't it be more efficient with your time to just help me...  ;D

Joachim Müller

You probably edited the wrong file. Post details (a link to your gallery). Zipping your theme and attaching it to your posting might be a good idea as well. Do so in a thread of your own, as your issue differs, and we have a strict "one issue per thread" policy. Locking.