Easy way to streamline slideshow Easy way to streamline slideshow
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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