Slideshow border Slideshow border
 

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

Slideshow border

Started by rvblog, January 25, 2005, 11:57:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rvblog

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]

Casper

Displayimage.php.

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

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


Joachim Müller

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