forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Lombi on September 30, 2005, 05:29:41 am
-
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.
-
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:
global $HTTP_COOKIE_VARS, $CONFIG;
starttable();
echo $nav_menu;
endtable();
starttable();
echo $picture;
endtable();
if ($CONFIG['display_film_strip'] == 1) {
echo $film_strip;
}
to
global $HTTP_COOKIE_VARS, $CONFIG;
starttable();
echo $picture;
endtable();
starttable();
echo $nav_menu;
endtable();
if ($CONFIG['display_film_strip'] == 1) {
echo $film_strip;
}
Dennis
-
Wow, great. Thanks very much.