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: Disable slideshow in 1.4.2  (Read 9269 times)

0 Members and 1 Guest are viewing this topic.

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Disable slideshow in 1.4.2
« on: December 05, 2005, 02:30:48 pm »

Just successfully upgraded from 1.3.5 but cannot seem to disable the slideshow. The instructions for disabling it in 1.3.5 don't seem to apply with the latest version.

Any suggestions please?
« Last Edit: December 08, 2005, 08:48:12 am by GauGau »
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Disable slideshow in 1.4.2
« Reply #1 on: December 06, 2005, 09:51:27 am »

disable the link in your theme. If the nav bar is not in your theme, copy it from theme.php from the sample theme
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Disable slideshow in 1.4.2
« Reply #2 on: December 06, 2005, 01:37:34 pm »

disable the link in your theme. If the nav bar is not in your theme, copy it from theme.php from the sample theme

Thanks for the reply, but I cannot see what the link is in my theme (eyeball). If I look at the source code of the page when viewing my site, I see:-

<td align="center" valign="middle" class="navmenu" width="48">
                        <a href="displayimage.php?album=87&amp;pid=554&amp;slideshow=10000000" class="navmenu_pic" title="Slideshow"><img src="themes/eyeball/images/slideshow.gif" border="0" align="middle" alt="Slideshow" /></a>
                </td>

but I do not know what to disable to prevent it from appearing. The theme.php in 1.4.2 seems very different to how it was in 1.3.5, in which I found it easy to disable the slideshow. In the meantime I have given a very long time delay to put people off trying to use it.

It's all probably easy when you know how.
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Nibbler

  • Guest
Re: Disable slideshow in 1.4.2
« Reply #3 on: December 06, 2005, 02:35:29 pm »

As suggested, copy the navbar template from the sample theme's theme.php and add it to your own theme's theme.php. Then comment out the slideshow button.

Code: [Select]
// HTML template for the image navigation bar
$template_img_navbar = <<<EOT

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

EOT;
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Disable slideshow in 1.4.2
« Reply #4 on: December 06, 2005, 04:15:09 pm »

I'm slowly getting to understand all this code now, but there is still a problem. I pasted in the html template for the image navigation bar and it successfully removed the slideshow button, but the "return to thumbnail" button has now dropped and is no longer in line with other .gif's.

I then experimented by copying and pasting that section of code from my sample.theme without removing the slideshow button and the "return to thumbnail" button is still out of line. To see what I mean, try this:-
http://www.sharpos-world.co.uk/coppermine/displayimage.php?album=87&pos=1
and choose "eyeball" theme.

Hope you don't mind me pasting in the url but it is the best way to explain the problem
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Nibbler

  • Guest
Re: Disable slideshow in 1.4.2
« Reply #5 on: December 06, 2005, 04:31:42 pm »

Has been discussed before, comment out or relocate the anchor

Code: [Select]
<a name="top_display_media"></a>
« Last Edit: December 06, 2005, 04:37:04 pm by Nibbler »
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Disable slideshow in 1.4.2
« Reply #6 on: December 06, 2005, 05:11:38 pm »

Has been discussed before, comment out or relocate the anchor

Code: [Select]
<a name="top_display_media"></a>

Thank you very much Nibbler, I understand how to do that now, & it works!!

Sharpo
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

SlamDigIt201

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Disable slideshow in 1.4.2
« Reply #7 on: September 26, 2009, 07:46:02 pm »

I know this is a really old post but I actually just upgraded myself (4 years later lol) and had the same problem.  Thanks for the suggestion  ;D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Disable slideshow in 1.4.2
« Reply #8 on: September 27, 2009, 11:56:23 am »

Locking
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.