forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: sharpo on December 05, 2005, 02:30:48 pm

Title: Disable slideshow in 1.4.2
Post by: sharpo 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?
Title: Re: Disable slideshow in 1.4.2
Post by: Joachim Müller 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
Title: Re: Disable slideshow in 1.4.2
Post by: sharpo 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.
Title: Re: Disable slideshow in 1.4.2
Post by: Nibbler 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;
Title: Re: Disable slideshow in 1.4.2
Post by: sharpo 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
Title: Re: Disable slideshow in 1.4.2
Post by: Nibbler 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>
Title: Re: Disable slideshow in 1.4.2
Post by: sharpo 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
Title: Re: Disable slideshow in 1.4.2
Post by: SlamDigIt201 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
Title: Re: Disable slideshow in 1.4.2
Post by: Joachim Müller on September 27, 2009, 11:56:23 am
Locking