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: Up coments and down "film strip" (include screen)  (Read 2609 times)

0 Members and 1 Guest are viewing this topic.

yosssi

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Up coments and down "film strip" (include screen)
« on: May 23, 2006, 06:23:50 pm »

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

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

is possible?

thanks
« Last Edit: May 25, 2006, 01:17:20 am by Stramm »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Up coments and down "film strip" (include screen)
« Reply #1 on: May 24, 2006, 04:34:02 am »

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:

Code: [Select]
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:

Code: [Select]
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
Logged
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

yosssi

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Up coments and down "film strip" (include screen)
« Reply #2 on: May 25, 2006, 01:06:06 am »

Thanks :)
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.