Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: Navigation Bar  (Read 3799 times)

0 Members and 1 Guest are viewing this topic.

nova-bossa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
[Solved]: Navigation Bar
« on: May 05, 2004, 03:26:17 pm »

hello!

i have a problem:
the navigation bar to navigate in an album through the thumbnail pages shows only the number of the present page. the links to the other pages work but you can't see the page numbers. i found the error on the source code:

it is:
Quote
<td align="center" valign="middle" class="tableb_compact">1</td><td><img src="images/spacer.gif" width="1" height="1"></td>
<td align="center" valign="middle" class="navmenu"><a href="thumbnails.php?album=6&page=2"2</a></td>

but it should be:
Quote
<td align="center" valign="middle" class="tableb_compact">1</td><td><img src="images/spacer.gif" width="1" height="1"></td>
<td align="center" valign="middle" class="navmenu"><a href="thumbnails.php?album=6&page=2">2</a></td>

but i don't know where to change this!

here my album:
http://nova-bossa.anyxhost.com/H-photos/digital/thumbnails.php?album=6&page=1
« Last Edit: May 06, 2004, 07:54:07 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Navigation Bar
« Reply #1 on: May 05, 2004, 03:57:13 pm »

It is in your theme.php, and should be this;

Code: [Select]
EOT;
// 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"></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"
    );
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

nova-bossa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Navigation Bar
« Reply #2 on: May 05, 2004, 08:51:48 pm »

solved.
thank you!
Logged

njdirt

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: [Solved]: Navigation Bar
« Reply #3 on: May 30, 2004, 03:09:12 am »

I've spent hours searching for that little arrow thing.  Thank you very much! :)
Logged

frankyknife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: [Solved]: Navigation Bar
« Reply #4 on: July 26, 2004, 03:36:34 am »

Hi!
i just wondered why there is the width specified with a double %% ???

see the first line:
$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",

can someone explain this to me? cause if i put in a normal 100% it wont work!


...and if i want to specify the height there it wont be recognized. the table is still the same height!? STRANGE...!
i hope you get it, thx!

franky
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: [Solved]: Navigation Bar
« Reply #5 on: July 26, 2004, 05:56:10 am »

You can't specify the height of a table.  Height isn't a table attribute.  As for the double %: the percent sign is an operator, so in order to print it, you double it up.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 18 queries.