place filmstrip under file information place filmstrip under file information
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

place filmstrip under file information

Started by kirky, August 01, 2006, 12:09:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kirky

How would I move the film strip underneath the file information and comments?

My gallery can be viewed here: http://www.kirkyskreations.com/gallery

Thanks in advance,

Kirsten Smit
Kirsten xx

Joachim Müller

edit themes/yourtheme/theme.php, findfunction theme_display_imageand edit the function accordingly. If it doesn't exist in your custom theme, copyfunction theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

    starttable();
    echo $nav_menu;
    endtable();

    starttable();
    echo $picture;
    endtable();
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }


    echo $votes;



    $picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";

    echo "<div id=\"comments\">\n";
        echo $comments;
        echo "</div>\n";

}
into a new line before?>and edit accordingly by changing the order of elements there.

kirky

ok cant seem to get it to work but that is because i am unsure which parts of the code to edit that you gave me.
Kirsten xx

Joachim Müller

function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

    starttable();
    echo $nav_menu;
    endtable();

    starttable();
    echo $picture;
    endtable();

    echo $votes;



    $picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";

    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }

    echo "<div id=\"comments\">\n";
        echo $comments;
        echo "</div>\n";

}

kirky

Hi thanks  you've been a great help! Works well.  :D

To view example please visit: http://www.kirkyskreations.com/gallery/displayimage.php?pos=-5
Kirsten xx