Which part of code is responsible for showing navigation links on pages? Which part of code is responsible for showing navigation links on pages?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Which part of code is responsible for showing navigation links on pages?

Started by linuxhata, November 04, 2005, 11:09:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

linuxhata

I've installed an GD watermark hack, and after that, on any page, instead of getting 1,2,3,4,5,6 links to pages, I've got only two links, 1st - to 1st page, and 2nd - to the last page. How should I fix that? and can I convert them to "Prev" "Next" buttons?

Joachim Müller

we don't know what you did, so how are we suppossed to know? If you need help on a particular mod, post a reply to the thread where the mod is being discussed. A link to your site is nearly always mandatory to post if you have issues on your site that others don't have.

linuxhata

I did a lot of things, so it's not a good idea to ask in hacks part. I'm asking for simple thing, which file generates pages and puts next page link to them? and where in code is this?

here's link to my gallery

http://www.damireke.com

I can give you admin pass, if it will help

xplicit

Official in functions.inc.php the part :

function create_tabs($items, $curr_page, $total_pages, $template)

But your problem has probably got to do with an adjusted theme.php file

look for things like :


$template_tab_display = array('left_text' => '<td width="100%%" align="left" valign="middle" class="tableh1_compact" style="white-space: nowrap"><b>{LEFT_TEXT}</b></td>' . "\n",
'tab_header' => '',
'tab_trailer' => '',


You can make a next and previous tab if you want but first of all get the normal function back working again before using the modification at:
http://forum.coppermine-gallery.net/index.php?topic=8166.msg36113#msg36113
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

linuxhata

I've checked my theme.php

// Template used for tabbed display
$template_tab_display = array('left_text' => '<td width="100%%" align="left" valign="middle" class="tableh1_compact" style="white-space: nowrap"><b>{LEFT_TEXT}</b></td>' . "\n",
    'tab_header' => '',
    'tab_trailer' => '',
    'active_tab' => '<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>' . "\n" . '<td align="center" valign="middle" class="tableb_compact"><b>%d</b></td>',
    'inactive_tab' => '<td><img src="images/spacer.gif" width="1" height="1"></td>' . "\n" . '<td align="center" valign="middle" class="navmenu"><a href="{LINK}"><b>%d</b></a></td>' . "\n"
    );


and this parts seems to be fine