Advanced search  


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

Pages: [1]   Go Down

Author Topic: Slideshow border  (Read 2748 times)

0 Members and 1 Guest are viewing this topic.


  • 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 - 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]


  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Slideshow border
« Reply #1 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.
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


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



Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
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 Several hacks have been posted in the mods board that you might want to look into.

Pages: [1]   Go Up

Page created in 0.018 seconds with 19 queries.