Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Easy way to streamline slideshow  (Read 12969 times)

0 Members and 1 Guest are viewing this topic.

TerryG

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 45
Easy way to streamline slideshow
« 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;

« Last Edit: April 04, 2005, 07:37:32 am by GauGau »
Logged

Viking

  • Coppermine newbie
  • Offline Offline
  • Posts: 0
Re: Easy way to streamline slideshow
« Reply #1 on: July 25, 2005, 04:24:50 am »

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

jackbremer

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Easy way to streamline slideshow
« Reply #2 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?
Logged

vLabz

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Easy way to streamline slideshow
« Reply #3 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>
Logged

kryspin

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Easy way to streamline slideshow
« Reply #4 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...
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.