PDA

View Full Version : Show Thread Enhancements - New Posts link between next / previous thread links


AzH
05-05-2008, 10:00 PM
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:

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

<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-albums-random-picture158-new-posts.jpg

Brought to you by Devious Tyrant Forums (http://devioustyrant.com).

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