Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
'Previous / Next Page' link in forum/thread navigation menus Details »»
'Previous / Next Page' link in forum/thread navigation menus
Version: 1.00, by styleforum styleforum is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 01-25-2007 Last Update: Never Installs: 17
 
No support by the author.

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!

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:

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

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

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

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-30-2007, 07:31 AM
stomph stomph is offline
 
Join Date: Dec 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!! So simple, and yet effective :-)

EDIT: Btw, the phrases are $vbphrase[prev_page] and $vbphrase[next_page]
Reply With Quote
  #3  
Old 04-14-2007, 05:46 AM
nicolerork nicolerork is offline
 
Join Date: May 2006
Location: Michigan
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have a vbadvanced hack for this?
Reply With Quote
  #4  
Old 04-14-2007, 07:21 AM
kaptanblack's Avatar
kaptanblack kaptanblack is offline
 
Join Date: Mar 2007
Location: Turkey
Posts: 397
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks...
Reply With Quote
  #5  
Old 04-22-2007, 03:37 AM
l3it3r l3it3r is offline
 
Join Date: May 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, so simple, yet so useful!
Reply With Quote
  #6  
Old 12-11-2007, 12:24 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love this MOD. - Further proof that it's the simple things in life that matter.
Reply With Quote
  #7  
Old 12-11-2007, 12:29 PM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 02-15-2008, 12:25 AM
hrk hrk is offline
 
Join Date: May 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working in VB3.7 Beta 4.
Any update ?

thanks
Reply With Quote
  #9  
Old 02-21-2008, 08:39 PM
styleforum styleforum is offline
 
Join Date: Jun 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Haven't installed 3.7 yet, so no. I'd think it would be a similar change to a similar template though.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08213 seconds
  • Memory Usage 2,270KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete