Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Comments at top of picture  (Read 2744 times)

0 Members and 1 Guest are viewing this topic.

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
Comments at top of picture
« 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.
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: Comments at top of picture
« Reply #1 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;
Logged
(http://www.skybax.com/hotImage/post_footer.gif)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
Re: Comments at top of picture
« Reply #2 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.
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: Comments at top of picture
« Reply #3 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.
Logged
(http://www.skybax.com/hotImage/post_footer.gif)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.