News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

repeating nav menu below images

Started by firswood, October 25, 2006, 08:55:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

firswood

Hello,

How do I repeat the Navigation menu that appears above an image in a gallery - the one that has the return to thumbnail/display hide/slideshow/file #/ecard /previous /next  - to appear below the image as well.

http://www.theartgallery.co.uk/cpg149/displayimage.php?album=5&pos=1

I want to repeat the nav menu so it appears below the image in the example in the link.. to repeat myself.

Many Thanks

Pete

Nibbler

Add this code into your theme's theme.php


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();
   
    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";
}

firswood

thanks nibbler - sorted and solved..

however i have another query. just to be annoying..

Joachim Müller

Ask it on a new thread then - we have a "one question per thread" policy that you agreed to respect when signing up.