Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Add 'next & 'previous' to thumbnail/album pages in theme ChaoticSoul by gizmo?  (Read 4173 times)

0 Members and 1 Guest are viewing this topic.

net

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88

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.

Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos

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:

Code: [Select]
// 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",
);
Logged
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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88

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
Code: [Select]
// 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 22 queries.