single picture navbar location single picture navbar location
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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