forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: nova-bossa on May 05, 2004, 03:26:17 pm

Title: [Solved]: Navigation Bar
Post by: nova-bossa 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
Title: Re: Navigation Bar
Post by: Casper 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"
    );
Title: Re: Navigation Bar
Post by: nova-bossa on May 05, 2004, 08:51:48 pm
solved.
thank you!
Title: Re: [Solved]: Navigation Bar
Post by: njdirt on May 30, 2004, 03:09:12 am
I've spent hours searching for that little arrow thing.  Thank you very much! :)
Title: Re: [Solved]: Navigation Bar
Post by: frankyknife 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
Title: Re: [Solved]: Navigation Bar
Post by: kegobeer 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.