forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Visuals => Topic started by: TerryG on April 04, 2005, 02:02:12 am

Title: Easy way to streamline slideshow
Post by: TerryG on April 04, 2005, 02:02:12 am
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']);

Code: [Select]
   
echo <<<EOTH

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

EOTH;

Title: Re: Easy way to streamline slideshow
Post by: Viking on July 25, 2005, 04:24:50 am
Thanks, I've been trying to figure that one out.  ;D
Title: Re: Easy way to streamline slideshow
Post by: jackbremer on August 12, 2006, 12:39:43 pm
I can't find that bit of text in my displayimage.php file (v1.48) - guess this is out of date?
Title: Re: Easy way to streamline slideshow
Post by: vLabz on April 19, 2007, 10:45:05 am
I did this to hide most of the stuff with 1.4.10
in include/slideshow.inc.php

just before the first :

Code: [Select]
<script language="JavaScript" type="text/JavaScript">

insert :

Code: [Select]
<style type="text/css">
<!--
.footer, .top_panel, .comments, #MENUS, .admin_menu {
visibility: hidden;
height: 0px;
display: none;
}
-->
</style>
Title: Re: Easy way to streamline slideshow
Post by: kryspin on November 12, 2007, 09:38:50 pm
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...