Easy way to streamline slideshow Easy way to streamline slideshow
 

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

Easy way to streamline slideshow

Started by TerryG, April 04, 2005, 02:02:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TerryG

I wanted the slideshow pages to look very simple and clean, but the way displayimage.php works right now,  it would have been a little difficult (or at least complicated) to change what gets put on the page during a slideshow.

Instead I figured out a slick & easy way to hide a lot of the page elements.  I attached css classes to them and then in the slideshow() function css gets added into the page to hide them.  In-line css overrides all other css, so the elements are there but hidden.

I put the code just after the line
    pageheader($lang_display_image_php['slideshow']);


   
echo <<<EOTH

<style type="text/css">
<!--
.topmenu, .sitenavbar, .footer, .sitelogo, .swooshy {
visibility: hidden;
height: 0px;
display: none;
}
-->
</style>

EOTH;


Viking

Thanks, I've been trying to figure that one out.  ;D

jackbremer

I can't find that bit of text in my displayimage.php file (v1.48) - guess this is out of date?

vLabz

I did this to hide most of the stuff with 1.4.10
in include/slideshow.inc.php

just before the first :

<script language="JavaScript" type="text/JavaScript">


insert :

<style type="text/css">
<!--
.footer, .top_panel, .comments, #MENUS, .admin_menu {
visibility: hidden;
height: 0px;
display: none;
}
-->
</style>


kryspin

Unfortunatelly none of the solutions worked for me  :( Only the admin menu was hidden, nothing else, even when I was playing around with differnet css classes. I was trying to hide the system menu, the logo field and the navigation bar, but without success...