coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: claude258 on April 23, 2006, 04:05:11 PM

Title: Pic infos displayed under comments
Post by: claude258 on April 23, 2006, 04:05:11 PM
I am using eyeball theme and I would like to display the pic infos under the comments. Can you help me?

Thanks
Title: Re: Pic infos displayed under comments
Post by: Gizmo on April 23, 2006, 06:15:18 PM
Paste this code that was copied from theme.php in the sample theme directory into your themes\eyeball\theme.php and edit accordingly. Basically you want to move the picinfo section up above the votes.

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

}


Billy