single picture navbar location single picture navbar location
 

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

single picture navbar location

Started by Davis, December 05, 2007, 03:53:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Davis

I am trying to move the navbar that appears above a single picture (the one with the icons) to the bottom of it just above the filmstrip.  Any help is appreciated.

Thanks,

Davis


Nibbler

Add the following code to your custom theme's theme.php, just before the closing ?>


function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

    starttable();
    echo $picture;
    endtable();

    starttable();
    echo $nav_menu;
    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";
}


Re-arranging the blocks here has been described before; remember to search before posting.

Davis

Many thanks my good man!!!  It was driving me crazy trying to figure it out!!!

Davis