[SOLVED] Moving previous/next to another part of template [SOLVED] Moving previous/next to another part of template
 

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

[SOLVED] Moving previous/next to another part of template

Started by Lombi, September 30, 2005, 05:29:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lombi

hey everyone. I'm having some troubles moving the previous & next buttons to another location in the template but I'm a bit weirded out on the part of actually making the feature work in another part of the template. Here's a little demo of what I have now:

http://www.dfoto.si/pickaboo-a143.html
http://www.lombergar.com/portfolio/still-life-with-crow-duplication-a308.html

In the template.php file I'm currently having the next/fwd links in $template_img_navbar but the image is located in $template_display_picture. I need to move the buttons somehow below the image so the logical thing would be to move the entire piece of code there and copy the piece of code in functions.php from on the other but it doesn't seem to work.

Does anyone know how one would go about this to solve the problem? Thanks.
While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.

artistsinhawaii

Lombi,

In your theme.php file

search for :

function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)

Right below it.. change:

Quote
    global $HTTP_COOKIE_VARS, $CONFIG;

    starttable();
    echo $nav_menu;
    endtable();

    starttable();
    echo $picture;
    endtable();
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }

to

Quote
    global $HTTP_COOKIE_VARS, $CONFIG;

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

    starttable();
    echo $nav_menu;
    endtable();
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }


Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Lombi

While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.