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
-
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?
-
disable the link in your theme. If the nav bar is not in your theme, copy it from theme.php from the sample theme
-
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&pid=554&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.
-
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;
-
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
-
Has been discussed before, comment out or relocate the anchor
<a name="top_display_media"></a>
-
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
-
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
-
Locking