Add 'next & 'previous' to thumbnail/album pages in theme ChaoticSoul by gizmo? Add 'next & 'previous' to thumbnail/album pages in theme ChaoticSoul by gizmo?
 

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

Add 'next & 'previous' to thumbnail/album pages in theme ChaoticSoul by gizmo?

Started by net, August 27, 2008, 09:24:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

net

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) 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) (also in this page is where i would want the hack + albums page)

Thanks for your time.


Gizmo

In the future please don't double post.

Follow the directions here 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",
);
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

net

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!