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: How to remove "Slideshow" and "Display/HideS Image Info buttons?  (Read 4229 times)

0 Members and 1 Guest are viewing this topic.

dke

  • Guest

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!
« Last Edit: May 20, 2007, 01:44:18 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to remove "Slideshow" and "Display/HideS Image Info buttons?
« Reply #1 on: May 20, 2007, 01:03:31 pm »

Edit themes/yourtheme/theme.php, find
Code: [Select]
// 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
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;
from themes/sample/theme.php into a new line before
Code: [Select]
?>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 ::)).
Logged

dke

  • Guest
Re: How to remove "Slideshow" and "Display/HideS Image Info buttons?
« Reply #2 on: May 20, 2007, 01:41:22 pm »

Thanks alot GauGau, sorry about not searching enough!
Logged

Naesstrom

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: How to remove "Slideshow" and "Display/HideS Image Info buttons?
« Reply #3 on: May 21, 2007, 08:03:14 pm »

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:

Code: [Select]
$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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to remove "Slideshow" and "Display/HideS Image Info buttons?
« Reply #4 on: May 22, 2007, 08:17:54 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.