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 Help  (Read 2615 times)

0 Members and 1 Guest are viewing this topic.

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Slideshow Help
« on: August 28, 2006, 06:10:21 am »

Say I wanted to add some HTML code to the slide show page, and I wanted to put it right under the picture in the slideshow ( the black area).  Where and how would I put this in? 
« Last Edit: August 29, 2006, 07:48:09 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Slideshow Help
« Reply #1 on: August 28, 2006, 08:59:41 am »

Edit themes/yourtheme/theme.php
Find
Code: [Select]
function theme_slideshow()If this line doesn't exist, paste
Code: [Select]
function theme_slideshow()
{
    global $CONFIG, $lang_display_image_php, $template_display_media;

    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_media, 'img_desc', $start_slideshow);

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

    starttable();
    echo template_eval($template_display_media, $params);
    endtable();
    starttable();
    echo <<<EOT
        <tr>
                <td align="center" class="navmenu" style="white-space: nowrap;">
                        <a href="javascript:endSlideShow()" class="navmenu">{$lang_display_image_php['stop_slideshow']}</a>
                </td>
        </tr>

EOT;
    endtable();
    pagefooter();
}
into a new line before
Code: [Select]
?>
To add some HTML directly underneath your slideshow section, replace
Code: [Select]
    endtable();
    starttable();
with
Code: [Select]
    endtable();
    echo <<<EOT
    Your custom HTML goes here.
EOT;
    starttable();
and edit accordingly.
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Slideshow Help
« Reply #2 on: August 29, 2006, 05:58:40 am »

Thanks.  It worked fine.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 16 queries.