MyBB Community Forums

Full Version: Jump To Page Modification
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This was requested by one of my members, so I thought I would share how I did it here. I searched around a bit and didnt find this topic anywhere so here goes:

To create a jump to page feature in your thread display, go to Admin CP/Templates/Multipage Pagination Templates/Multipage

Find
<div class="pagination">
<span class="pages">{$lang->multipage_pages}</span>
{$prevpage}{$start}{$mppage}{$end}{$nextpage}
</div>

Replace With:
<div class="pagination">
<span class="pages">{$lang->multipage_pages}</span>
{$prevpage}{$start}{$mppage}{$end}{$nextpage}
<form action="showthread.php" method="get" style="display: inline">
    <input class="hidden" name="tid" value="{$GLOBALS['thread']['tid']}" type="hidden">
    <label for="page">Jump to page:</label>
    <input class="textbox" name="page" value="{$page}" size="2" type="text">
    <input class="button" value="Go" type="submit">
  </form>
</div>

I have had this on my board for over a year without issue. My apologies if this has been posted already, I just thought I would share. I feel it is a necessity.
Good tutorial indeed
This isn't the best solution - the multipage is also present in other templates than showthread, like memberlist or forumdisplay, and it shows the jump to page there too: (link removed because of topic author's kind request...) Open this page, type a page in the text input, click Go and see what happens.

A better solution (requires Template Conditionals plugin): http://mybbhacks.zingaburga.com/showthread.php?tid=761 It shows only when there are more pages than the max displayed limit and works in every script.
You might give this modification a try as well:
http://mods.mybboard.de/16x/plugins-vers...o-to-page/