FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Pager questions
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Pager questions [message #34434] Sun, 29 October 2006 01:03 Go to next message
willy is currently offline  willy   Hungary
Messages: 24
Registered: March 2005
Karma: 0
Junior Member
Hello,

I like to implement first page and last page link in pager (i have forums with over 200 pages.. and users if not select page 200 in quick link difficult to switch last page or in last page cannot jump back to first page).

Please suggest me a painless method to implemmet this in fudforum.

Thanks!
Re: Pager questions [message #34497 is a reply to message #34434] Sun, 05 November 2006 17:30 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can look inside the common pager function called tmpl_create_pager() inside draw_pager.inc.t. This function gets the total number of pages available so you can just populate a drop down with them. Although the forum already offers a first/last page links.

FUDforum Core Developer
Re: Pager questions [message #34579 is a reply to message #34497] Wed, 08 November 2006 02:27 Go to previous messageGo to next message
willy is currently offline  willy   Hungary
Messages: 24
Registered: March 2005
Karma: 0
Junior Member
Thanks your reply, but i cant found first/last page link can u help me?
Re: Pager questions [message #34590 is a reply to message #34579] Wed, 08 November 2006 17:24 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The first and last pages are the ones with << and >>

FUDforum Core Developer
Re: Pager questions [message #34599 is a reply to message #34590] Wed, 08 November 2006 22:25 Go to previous messageGo to next message
willy is currently offline  willy   Hungary
Messages: 24
Registered: March 2005
Karma: 0
Junior Member
Hi,

I see it but my experience different: msg link << jumps to first page but msg link >> links to GENERAL_PAGER_COUNT and GENERAL_PAGER_COUNT/2 ($mid)

Can u help me?

Thanks!
Re: Pager questions [message #34608 is a reply to message #34599] Thu, 09 November 2006 17:14 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The past page # would be found inside the $end variable, so to make the "true last page" rather then another set of pages link you'd simply need to add a pager link with $end being the value or to modify existing >> link to use $end.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Howto get the current user name?
Next Topic: what table is the ban column in?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 20:25:49 GMT 2024

Total time taken to generate the page: 0.02673 seconds