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
-
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:
<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:
<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
-
It is in your theme.php, and should be this;
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"
);
-
solved.
thank you!
-
I've spent hours searching for that little arrow thing. Thank you very much! :)
-
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
-
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.