Moving page tabs on thumbnail.php Moving page tabs on thumbnail.php
 

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

Moving page tabs on thumbnail.php

Started by BrianD, February 27, 2006, 08:14:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BrianD

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
function theme_display_thumbnails(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $page, $total_pages, $sort_options, $display_tabs, $mode = 'thumb')

then after
    if ($mode == 'thumb') {
        starttable('100%', $title, $thumbcols);
    } else {
        starttable('100%');
    }


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


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


that follows
    for (;($i % $thumbcols); $i++) {
        echo $empty_cell;
    }
    echo $footer;