vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - New Posts link between next / previous thread links (https://vborg.vbsupport.ru/showthread.php?t=178323)

AzH 05-05-2008 10:00 PM

New Posts link between next / previous thread links
 
This is a quick dirty little hack to get a handy new posts link right at the bottom of a thread saving your users valuable seconds from not having to scroll all the way back to the top of the page from the bottom of a thread.

In template SHOWTHREAD find:

Code:

<if condition="$show['next_prev_links']">
<!-- next / previous links -->
        <br />
        <div class="smallfont" align="center">
                <strong>&laquo;</strong>
                        <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest" rel="nofollow">$vbphrase[prev_thread]</a>
                        |
                        <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest" rel="nofollow">$vbphrase[next_thread]</a>
                <strong>&raquo;</strong>
        </div>
<!-- / next / previous links -->
</if>

replace with:

Code:

<if condition="$show['next_prev_links']">
<!-- next / previous links -->
        <br />
        <div class="smallfont" align="center">
                <strong>&laquo;</strong>
                        <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest" rel="nofollow">$vbphrase[prev_thread]</a>
                        |
                        <a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a>
                        |
                        <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest" rel="nofollow">$vbphrase[next_thread]</a>
                <strong>&raquo;</strong>
        </div>
<!-- / next / previous links -->
</if>

The link appears below the Quick Reply box like so:

http://devioustyrant.com/members/azh...-new-posts.jpg

Brought to you by Devious Tyrant Forums.

JadedSouls 05-09-2008 01:57 AM

Thanks, it's quite useful for me :)

myown 05-09-2008 01:32 PM

seems good

AzH 05-09-2008 07:28 PM

Glad you like it. :)

wtfsoccerdude 05-11-2008 09:30 PM

This doesn't show the thread title. Just " « Previous Thread | New Posts | Next Thread » "

How can I show the name of the thread instead of previous and next. Any idea?

Super Jinni 05-12-2008 11:23 AM

nice, I like it
thanks

AzH 05-12-2008 04:52 PM

Quote:

Originally Posted by wtfsoccerdude (Post 1516508)
This doesn't show the thread title. Just " ? Previous Thread | New Posts | Next Thread ? "

How can I show the name of the thread instead of previous and next. Any idea?

Sorry, it must be a setting. I just flicked through all the vBulletin Options but couldn't see which one it was. Maybe ask over at vb.com as it's definately a setting.

Super Jinni 05-13-2008 05:33 PM

Quote:

Originally Posted by wtfsoccerdude (Post 1516508)
This doesn't show the thread title. Just " ? Previous Thread | New Posts | Next Thread ? "

How can I show the name of the thread instead of previous and next. Any idea?

check this out:

https://vborg.vbsupport.ru/showthread.php?t=92407

AzH 05-13-2008 07:00 PM

<a href="http://www.vbulletin.com/forum/showthread.php?t=271418" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=271418</a>

It's related to vBSEO (which I'm running). Maybe the above from Jinni will help??

webnsn 11-07-2015 06:37 PM

Implemented

Demo @ http://wikinewforum.com/showthread.php?p=998467


All times are GMT. The time now is 01:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01163 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete