PDA

View Full Version : 'Previous / Next Page' link in forum/thread navigation menus


styleforum
01-25-2007, 10:00 PM
I don't know if this is really enough of a change to call it a whole mod, but I searched a long time ago for how to do this and eventually just figured it out myself. It's ridiculously easy, but since I like the feature and miss it on boards that don't have it, I figured I'd publish it. Please install it so I can browse your board more easily! :D

Feel free to delete or whatever if this is a duplicate or just too stupid. :)

The idea of this is simply to create obvious links within the "page nav numbers" section of the forum and thread display pages, that lead to the previous and next page of results respectively. There actually are little tiny ">" symbols to click on but they aren't obvious, and when you spend as much time as I do on the forum it gets tedious to find them with your mouse, etc.

In pagenav template change:

<if condition="$show['prev']"><td class="alt1"><a class="smallfont" href="$address<if condition="$prevpage != 1">&amp;page=$prevpage</if>$address2" title="$vbphrase[prev_page] - <phrase 1="$prevnumbers[first]" 2="$prevnumbers[last]" 3="$total">$vbphrase[results_x_to_y_of_z]</phrase>">&lt;</a></td></if>

to: (bold is the only change)

<if condition="$show['prev']"><td class="alt1"><a class="smallfont" href="$address<if condition="$prevpage != 1">&amp;page=$prevpage</if>$address2" title="$vbphrase[prev_page] - <phrase 1="$prevnumbers[first]" 2="$prevnumbers[last]" 3="$total">$vbphrase[results_x_to_y_of_z]</phrase>">&lt; Previous</a></td></if>

and then change

<if condition="$show['next']"><td class="alt1"><a class="smallfont" href="$address&amp;page=$nextpage$address2" title="$vbphrase[next_page] - <phrase 1="$nextnumbers[first]" 2="$nextnumbers[last]" 3="$total">$vbphrase[results_x_to_y_of_z]</phrase>">&gt;</a></td></if>

to

<if condition="$show['next']"><td class="alt1"><a class="smallfont" href="$address&amp;page=$nextpage$address2" title="$vbphrase[next_page] - <phrase 1="$nextnumbers[first]" 2="$nextnumbers[last]" 3="$total">$vbphrase[results_x_to_y_of_z]</phrase>">Next Page &gt;</a></td></if>

That's it. If you wanted to do this for different languages I'm sure you could add a custom vbphrase [page_prev] and [page_next] or something like that, but since I don't care to figure it out, you're on your own there.

Hope this helps someone.

stomph
01-30-2007, 07:31 AM
Thanks!! So simple, and yet effective :-)

EDIT: Btw, the phrases are $vbphrase[prev_page] and $vbphrase[next_page]

nicolerork
04-14-2007, 05:46 AM
Does anyone have a vbadvanced hack for this?

kaptanblack
04-14-2007, 07:21 AM
Thanks...

l3it3r
04-22-2007, 03:37 AM
thanks, so simple, yet so useful!

JohnBee
12-11-2007, 12:24 PM
Love this MOD. - Further proof that it's the simple things in life that matter.

TheMilkCarton
12-11-2007, 12:29 PM
I'm very confused.... I specifically had to REMOVE this "feature" from default vBulletin.

Was it added to stock vBulletin somewhere between 3.6.4 and 3.6.8 PL2?

EDIT:

Ah... That was me removing First and Last. :)

hrk
02-15-2008, 12:25 AM
Not working in VB3.7 Beta 4.
Any update ?

thanks

styleforum
02-21-2008, 08:39 PM
Haven't installed 3.7 yet, so no. I'd think it would be a similar change to a similar template though.