Disable slideshow in 1.4.2 Disable slideshow in 1.4.2
 

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

Disable slideshow in 1.4.2

Started by sharpo, December 05, 2005, 02:30:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sharpo

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

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

sharpo

Quote from: GauGau 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

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

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.

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

sharpo

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

#5
Has been discussed before, comment out or relocate the anchor

<a name="top_display_media"></a>

sharpo

Quote from: Nibbler on December 06, 2005, 04:31:42 PM
Has been discussed before, comment out or relocate the anchor

<a name="top_display_media"></a>

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

Sharpo
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

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

Joachim Müller