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: Moving page tabs on thumbnail.php  (Read 3819 times)

0 Members and 1 Guest are viewing this topic.

BrianD

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Moving page tabs on thumbnail.php
« on: February 27, 2006, 08:14:40 pm »

Using an unmodified "Water Drop" theme on v 1.3.5 how do I move the page tab buttons from below the thumbnails to above the thumbnails?

Thank you,
Brian D

UPDATE - SOLVED
in theme.php find
Code: [Select]
function theme_display_thumbnails(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $page, $total_pages, $sort_options, $display_tabs, $mode = 'thumb')
then after
Code: [Select]
    if ($mode == 'thumb') {
        starttable('100%', $title, $thumbcols);
    } else {
        starttable('100%');
    }

add
Code: [Select]
    if ($display_tabs) {
        $params = array('{THUMB_COLS}' => $thumbcols,
            '{TABS}' => $tabs_html
            );
        echo template_eval($tabs, $params);
    }

then remove (in the same function)
Code: [Select]
    if ($display_tabs) {
        $params = array('{THUMB_COLS}' => $thumbcols,
            '{TABS}' => $tabs_html
            );
        echo template_eval($tabs, $params);
    }

that follows
Code: [Select]
    for (;($i % $thumbcols); $i++) {
        echo $empty_cell;
    }
    echo $footer;
« Last Edit: March 01, 2006, 08:45:44 am by GauGau »
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.