View Full Version : $pagenav template???
bira
Sun 14th May '00, 12:46am
Hi,
I seem to be having a small problem and cannot find anywhere on the templates to fix it:
I changed the showthread design but now, in threads where there are several pages, the links to the 2nd or 3rd etc. pages cannot be seen. Why? because their font class is defined as table-header-text (which in my case is white, and the background for where they are placed is white).
There is no template for $pagenav. There is a template for $multipagenav which includes everything but the actual pages' numbers and links. So I cannot remove the font class and that means that no matter what I do, they remain white.
Can someone please help me with that?
Thank you,
Bira
bigsoccer tech
Sun 14th May '00, 12:49am
if i recall...and i will check this for you later today....i had to change xome html code in the php file, unfort.
j
bira
Sun 14th May '00, 3:06am
I'd appreciate it if you let me know where, then.
Thanks.
bira
Sun 14th May '00, 4:08am
ok, found it (in showthread.php) and fixed it. Thanks :)
John
Sun 14th May '00, 5:31am
It seems that it got missed out of the templates :( . I will fix that up for the next version.
John
akiy
Fri 2nd Jun '00, 10:46am
I just noticed that $pagenav wasn't template-ized... Anyone have a workaround? I need the page numbers to be something other than white...
bira
Fri 2nd Jun '00, 12:42pm
akiy,
Open showthread.php and fine the following at about line 146:
eval("\$pagenav = \"".gettemplate("showthread_numpages")."\";");
$curpage=0;
while ($curpage++<$totalpages) {
if (($curpage<$pagenumber-$pagenavpages or $curpage>$pagenumber+$pagenavpages) and $pagenavpages!=0) {
if ($curpage==1) {
$pagenav.=" <a href=\"showthread.php?threadid=$threadid&pagenumber=$curpage".iif($perpage==$maxposts,"","&perpage=$perpage")."\"><font color=\"#FFFFFF\" class=thtcolor><< First Page</font></a>** ...**";
}
if ($curpage==$totalpages) {
$pagenav.=" ...** <a href=\"showthread.php?threadid=$threadid&pagenumber=$curpage".iif($perpage==$maxposts,"","&perpage=$perpage")."\"><font color=\"#FFFFFF\" class=thtcolor>Last Page >></font></a>**";
}
} else {
if ($curpage==$pagenumber) {
$pagenav.=" <font color=\"#FFFFFF\" class=thtcolor>$curpage</font>**";
} else {
$pagenav.=" <a href=\"showthread.php?threadid=$threadid&pagenumber=$curpage".iif($perpage==$maxposts,"","&perpage=$perpage")."\"><font color=\"#FFFFFF\" class=thtcolor>$curpage</font></a>**";
replace all the instances of <font color=\"#FFFFFF\" class=thtcolor> with your choice of html font.
Cheers,
Bira
evoir
Fri 23rd Mar '01, 11:10pm
I would like to tweek the way pagenav is displayed. Especially on forumdisplay, I don't like the language...the ( instead of [
Did this ever get into a template? If so, which one? If not, Where is the etxt to hack?
Powered by vBulletin™ Version 4.0.0 Beta 2 Copyright © 2009 vBulletin Solutions, Inc. All rights