coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: scifirocket21 on August 28, 2006, 06:10:21 AM

Title: Slideshow Help
Post by: scifirocket21 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? 
Title: Re: Slideshow Help
Post by: Joachim Müller on August 28, 2006, 08:59:41 AM
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.
Title: Re: Slideshow Help
Post by: scifirocket21 on August 29, 2006, 05:58:40 AM
Thanks.  It worked fine.