Slideshow Help Slideshow Help
 

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 Help

Started by scifirocket21, August 28, 2006, 06:10:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scifirocket21

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? 

Joachim Müller

Edit themes/yourtheme/theme.php
Find function theme_slideshow()If this line doesn't exist, pastefunction 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?>

To add some HTML directly underneath your slideshow section, replace    endtable();
    starttable();
with    endtable();
    echo <<<EOT
    Your custom HTML goes here.
EOT;
    starttable();
and edit accordingly.

scifirocket21

Thanks.  It worked fine.