MyBB Hacks

Full Version: Jump To Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Adding a textbox for jumping to a page number in our threadlist and showthread pagination links.

Add this code in multipage template:

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

Looks nice Smile
Thanks, Yumi Biggrin
could make this appear after clicked in "Pages (x)", as in ip board, phpBB and vb?

thanks
You can use javascript onclick for that.
That's very cool, thanks RatU.
When the code:

PHP Code:
<div class="pagination">
<span class="pages">{$lang->multipage_pages}</span>
{$prevpage}{$start}{$mppage}{$end}{$nextpage}
<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>
</div>

Templates & Style >> Templates >> Multipage Pagination Templates >> multipage

Sample:
http://pic.parsian-forum.ir/uploads/13507163541.jpg

No changes were made
It   wrong  Is ? Aww

Make sure you have the Template Conditionals plugin installed.
plugin !؟??؟?؟!
link ?
Here "Template Conditionals"

and here "PHP in Templates"

what do you like
Reference URL's