myBB Jump to Page

In myBB forum's system, it not easily to go to middle pages, if that thread have ton of pages because it don't have jump to page or go to page ability, but we can add it.

Go to AdminCP - Template & Style - Template - [THEME TEMPLATE] - Multipage Pagination Templates - multipage

Add these lines after {$prevpage}{$start}{$mppage}{$end}{$nextpage} before last </div> (or some where you want)

  1. <form action="showthread.php" method="get" style="display: inline">
  2. <input type="hidden" class="hidden" name="tid" value="{$GLOBALS['thread']['tid']}" />
  3. <label>Jump to page:</label>
  4. <input type="text" class="textbox" name="page" value="{$page}" size="2" />
  5. <input type="submit" class="button" value="Go" />
  6. </form>

This is my full multipage template

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

PS. Just styling it as your desire.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.