Up coments and down "film strip" (include screen) Up coments and down "film strip" (include screen)
 

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

Up coments and down "film strip" (include screen)

Started by yosssi, May 23, 2006, 06:23:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yosssi

I want up the coments an down the "film strip"

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg373.imageshack.us%2Fimg373%2F410%2Fimage15vc.jpg&hash=76871728fdf83bc27607c78f7e1b3b52343ce0cd)

is possible?

thanks

Gizmo

If I understand you correctly you want to have the comments above the filmstrip. Copy the following code from Sample>theme.php into your theme.php and edit it to suit your needs.

Copy:

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();

    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";

}


Here are the changes that should work:

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 "<div id=\"comments\">\n";
        echo $comments;
        echo "</div>\n";

    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";

}


I think it looks messy this way and if you get a lot of comments, your filmstrip will be way down the table but that's just my thoughts. Maybe take a look at the "Classic filmstrip vert" theme and you'll see a way to put the filmstrip on the left side of the picture with the comments below. This is a much cleaner look.

Billy
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision