forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: bulldozer on September 05, 2004, 04:43:01 am

Title: Comments at top of picture
Post by: bulldozer on September 05, 2004, 04:43:01 am
I would like to see something where when admin adds comments to pictures, it shows at top of picture instead of below. I have to scroll down in order to see some of my comments right now.
Title: Re: Comments at top of picture
Post by: skybax on September 05, 2004, 06:09:15 am
You mean you have comments turned off? If so I think what you are looking for is in theme.php:

Code: [Select]
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $HTTP_COOKIE_VARS, $CONFIG;
    starttable();
    echo $nav_menu;
    endtable();
    starttable();
    echo $picture;
    endtable();
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }
    starttable();
    echo $votes;
    endtable();
    $picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";
    starttable();
    echo $comments;
    endtable();
}

rearrange the echo $comments; above echo $picture;
Title: Re: Comments at top of picture
Post by: bulldozer on September 05, 2004, 06:16:34 am
Skybax,

No, I don't want comments turned off. I just think it would look nice to see comments above picture instead of below.
Title: Re: Comments at top of picture
Post by: skybax on September 05, 2004, 08:01:49 am
sorry i meant you turned off the ability for visitors to post comments - cause it can get out of hand if you have a lot of comments before the picture.