Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Jump To Page
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Jump To Page
Adding a textbox for jumping to a page number in our threadlist and showthread pagination links.

Add this code in multipage template:

Code:
1
2
3
4
5
6
<if $pages > ($mybb->settings['maxmultipagelinks']+1) then>
<form action="{$page_url}" method="post">
<input type="text" class="textbox" name="page" value="{$page}" size="3" />
<input type="submit" class="button" value="Go" />
</form>
</if>


The textbox will be displayed if the total pages greater than the maximum pagination settings.
For example:
Maximum pagination: 5 (by default), the textbox will be displayed if there are more than 6 pages.

[Image: thumb320x240]

Because I'm not entirely sure about the code above, please correct it if there is something wrong with it Biggrin


03-10-2011 07:11 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Jump To Page - RateU - 03-10-2011 07:11 AM
RE: Jump To Page - ZiNgA BuRgA - 03-10-2011, 07:35 AM
RE: Jump To Page - RateU - 03-11-2011, 07:00 AM
RE: Jump To Page - martec - 06-16-2012, 03:16 AM
RE: Jump To Page - RateU - 06-16-2012, 06:58 AM
RE: Jump To Page - MrBrechreiz - 06-16-2012, 09:35 AM
RE: Jump To Page - HOssE!N-B - 10-20-2012, 05:12 PM
RE: Jump To Page - ZiNgA BuRgA - 10-21-2012, 10:09 PM
RE: Jump To Page - HOssE!N-B - 10-22-2012, 04:33 AM
RE: Jump To Page - MrBrechreiz - 10-22-2012, 07:33 AM

 Standard Tools
Forum Jump: