coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: net on August 27, 2008, 09:24:16 AM

Title: Add 'next & 'previous' to thumbnail/album pages in theme ChaoticSoul by gizmo?
Post by: net on August 27, 2008, 09:24:16 AM
Hello there!

I love this theme, but i've always been a fan of adding the next & previous tab on thumbnail/album pages. I used this (http://forum.coppermine-gallery.net/index.php/topic,8166.0.html (http://forum.coppermine-gallery.net/index.php/topic,8166.0.html)) hack for macosx theme and it worked fine however i can't manage to apply this hack to the ChaoticSoul theme.

If there is any issue with my site setup that's causing the hack not to work you can see my site here (http://83.226.208.220/gallery/thumbnails.php?album=100 (http://83.226.208.220/gallery/thumbnails.php?album=100)) (also in this page is where i would want the hack + albums page)

Thanks for your time.

Title: Re: Add 'next & 'previous' to thumbnail/album pages in theme ChaoticSoul by gizmo?
Post by: Gizmo on August 28, 2008, 03:46:05 AM
In the future please don't double post (http://forum.coppermine-gallery.net/index.php/topic,8166.msg266536.html#msg266536).

Follow the directions here (http://forum.coppermine-gallery.net/index.php/topic,8166.msg257403.html#msg257403) to update include/functions.inc.php.

Then replace the below code for $template_tab_display with what's in the theme.php:


// Template used for tabbed display
$template_tab_display = array('left_text' => '<td class="graybox" width="100%%" align="left" valign="middle" style="white-space: nowrap;">{LEFT_TEXT}</td>' . "\n",
    'tab_header' => '',
    'tab_trailer' => '',
    'active_tab' => '<td class="graybox2" align="left" valign="middle" style="white-space: nowrap;"><img src="images/spacer.gif" width="1" height="1" alt="" />' . "\n" . '<b>%d</b></td>',
    'inactive_tab' => '<td class="graybox2" align="left" valign="middle" style="white-space: nowrap;"><img src="images/spacer.gif" width="1" height="1" alt="" />' . "\n" . '<a href="{LINK}"><b>%d</b></a></td>' . "\n",
    'inactive_prev_tab' => '<td class="graybox2" align="left" valign="middle" style="white-space: nowrap;"><img src="images/spacer.gif" width="1" height="1" alt="" />' . "\n" . '<a href="{LINK}"><b>PREV</b></a></td>' . "\n",
    'inactive_next_tab' => '<td class="graybox2" align="left" valign="middle" style="white-space: nowrap;"><img src="images/spacer.gif" width="1" height="1" alt="" />' . "\n" . '<a href="{LINK}"><b>NEXT</b></a></td>' . "\n",
);
Title: Re: Add 'next & 'previous' to thumbnail/album pages in theme ChaoticSoul by gizmo?
Post by: net on August 28, 2008, 09:39:22 AM
Thank you, sorry for the double post.

I noticed why i didn't fully manage to do this on my own, apparently there are 2 entries with // Template used for tabbed display and i didn't know that so i probably edited the wrong one, now it works like a charm though, thank you gizmo!