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: Which part of code is responsible for showing navigation links on pages?  (Read 3755 times)

0 Members and 1 Guest are viewing this topic.

linuxhata

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

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?
« Last Edit: November 04, 2005, 12:42:51 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Which part of code is responsible for showing navigation links on pages?
« Reply #1 on: November 04, 2005, 12:42:35 pm »

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.
Logged

linuxhata

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Which part of code is responsible for showing navigation links on pages?
« Reply #2 on: November 04, 2005, 05:28:06 pm »

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
Logged

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Which part of code is responsible for showing navigation links on pages?
« Reply #3 on: November 04, 2005, 06:29:44 pm »

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 :

Code: [Select]
$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
Logged
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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Which part of code is responsible for showing navigation links on pages?
« Reply #4 on: November 04, 2005, 07:24:21 pm »

I've checked my theme.php

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

Page created in 0.019 seconds with 19 queries.