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: Slideshow border  (Read 2680 times)

0 Members and 1 Guest are viewing this topic.

rvblog

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
Slideshow border
« on: January 25, 2005, 11:57:09 pm »

One more hurdle and I think I'll have it pretty well wrapped up.

I've searched everywhere  - theme.php - slideshow.inc.php etc - and nowhere can I find out what's causing the issue:

When using the slideshow feature, the slideshow screen shows a large border at the top and bottom of the image - the side widths are alright - (see picture file below)

Any ideas how I can reduce the size of the top and bottom borders so that it equals the side widths ??

[attachment deleted by admin]
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Slideshow border
« Reply #1 on: January 26, 2005, 12:54:06 am »

Displayimage.php.

Code: [Select]
function slideshow()
{
    global $CONFIG, $HTTP_GET_VARS, $lang_display_image_php, $template_display_picture;

    if (function_exists('theme_slideshow')) {
        theme_slideshow();
        return;
    }

    pageheader($lang_display_image_php['slideshow']);

    include "include/slideshow.inc.php";

    $start_slideshow = '<script language="JavaScript" type="text/JavaScript">runSlideShow()</script>';
    template_extract_block($template_display_picture, 'img_desc', $start_slideshow);

    $params = array('{CELL_HEIGHT}' => $CONFIG['picture_width'] + 100,
        '{IMAGE}' => '<img src="' . $start_img . '" name="SlideShow" class="image" /><br />',
        '{ADMIN_MENU}' => '',
        );

Amend the '+100' as required.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

rvblog

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
Re: Slideshow border
« Reply #2 on: January 26, 2005, 02:17:10 am »

I reduced the number from 100 to 1

Although it did not reduce it as much as I would have liked (because it looks like it's also dependant on the image width), it did reduce it somewhat, and it looks better than before.

Thanks

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Slideshow border
« Reply #3 on: January 26, 2005, 08:31:42 am »

it needs some extra space at the top and bottom in case the vertical size of your slides differ - some browsers can not dynamically change the space, so the slideshow script pre-defines the space it might need later. This has been built into the slideshow code deliberately to make the slideshow cross-browser compatible - I guess you have to live with it, or use another slideshow script and incorporate it into the code (e.g. one from dynamicdrive.com). Several hacks have been posted in the mods board that you might want to look into.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.