Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: rvblog on January 25, 2005, 11:57:09 pm

Title: Slideshow border
Post by: rvblog 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 - 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]
Title: Re: Slideshow border
Post by: Casper on January 26, 2005, 12:54:06 am

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

    if (function_exists('theme_slideshow')) {


    include "include/";

    $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.
Title: Re: Slideshow border
Post by: rvblog 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.


Title: Re: Slideshow border
Post by: Joachim Müller 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 Several hacks have been posted in the mods board that you might want to look into.