PDA

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


AzH
06 May 2008, 16:27
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
09 May 2008, 03:57
Thanks, it's quite useful for me :)

myown
09 May 2008, 15:32
seems good

AzH
09 May 2008, 21:28
Glad you like it. :)

wtfsoccerdude
11 May 2008, 23:30
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
12 May 2008, 13:23
nice, I like it
thanks

AzH
12 May 2008, 18:52
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
13 May 2008, 19:33
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:

http://www.vbulletin.org/forum/showthread.php?t=92407

AzH
13 May 2008, 21:00
http://www.vbulletin.com/forum/showthread.php?t=271418

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

webnsn
07 Nov 2015, 20:37
Implemented

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