Slideshow Help Slideshow Help
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.