coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: kirky on August 01, 2006, 12:09:23 PM

Title: place filmstrip under file information
Post by: kirky on August 01, 2006, 12:09:23 PM
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
Title: Re: place filmstrip under file information
Post by: Joachim Müller on August 01, 2006, 01:00:44 PM
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.
Title: Re: place filmstrip under file information
Post by: kirky on August 02, 2006, 02:05:13 AM
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.
Title: Re: place filmstrip under file information
Post by: Joachim Müller on August 02, 2006, 07:12:56 AM
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";

}
Title: Re: place filmstrip under file information
Post by: kirky on August 03, 2006, 03:06:46 AM
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