+ Reply to Thread
Results 1 to 8 of 8

Thread: $pagenav template???

Threaded View

  1. #1
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    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

  2. #2
    Senior Member bigsoccer tech is on a distinguished road bigsoccer tech's Avatar
    Join Date
    Apr 2000
    Location
    New York
    Age
    37
    Posts
    572
    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
    The BIG Network: Soccer - Aussie Rules - Cricket - Travel - Lacrosse - Music

  3. #3
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    I'd appreciate it if you let me know where, then.

    Thanks.

  4. #4
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    ok, found it (in showthread.php) and fixed it. Thanks

  5. #5
    Senior Member John is on a distinguished road
    Join Date
    Apr 2000
    Location
    Hastings, UK
    Age
    26
    Posts
    4,063
    It seems that it got missed out of the templates . I will fix that up for the next version.

    John
    John Percival

    Artificial intelligence usually beats real stupidity

  6. #6
    Senior Member akiy is on a distinguished road akiy's Avatar
    Join Date
    Apr 2000
    Posts
    157

    Not in 1.1.2

    I just noticed that $pagenav wasn't template-ized... Anyone have a workaround? I need the page numbers to be something other than white...

  7. #7
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    akiy,

    Open showthread.php and fine the following at about line 146:

    Code:
      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

  8. #8
    Senior Member evoir has disabled reputation
    Join Date
    Apr 2000
    Posts
    415

    :( no template for 1.16?

    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?

+ Reply to Thread

Similar Threads

  1. Pagenav not appearing in 2.0.3
    By rsg in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Mon 20th Aug '01, 1:24pm
  2. HELP: PageNav ???
    By DevilsMania.com in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 0
    Last Post: Thu 9th Aug '01, 4:32am
  3. How to change Pagenav Linkcolor?
    By Craig2 in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Wed 1st Aug '01, 10:00pm
  4. How to use the old style $pagenav in 2.0.0 ?
    By YellowKard in forum vBulletin Templates, Graphics & Styles
    Replies: 3
    Last Post: Fri 30th Mar '01, 9:45pm
  5. forumdisplay template and $pagenav
    By shri in forum vBulletin 1.1.x Questions
    Replies: 0
    Last Post: Tue 12th Sep '00, 6:12am

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts