Back to vBulletin 3.5 Template Modifications

Link directly to a post
Mod Version: 1.01, by welo

This modification is in the archives.
vB Version: 3.5.4 Rating: (1 vote - 4.00 average) Installs: 24
Released: 31 Aug 2005 Last Update: Never Downloads: 5
Not Supported Template Edits  

What it does:
This minor template change adds a nice little subsection symbol (§) right next to the post time, which is a url that can now either be clicked or copied, providing the ability for users to conveniently link directly to a post's anchor so you jump to a post within a thread, rather than opening its own window.

Rationale:
Although VB provides a nice way to open a single post in its own window by clicking the post number at the upper right of replies, this sometimes becomes inconvenient for subsequent surfers when someone has posted a link to a single post on mutiple page threads.

By default, to get the anchor location you must click the post number then copy the url at the upper right of the single-post window. This modification adds the anchor location as a url unobtrusively to every post so the post location can be obtained in one click, while retaining the single window link for the post number so folks immediately have both options.

Template Edits: 2; postbit and postbit_legacy

Code Additions:

1) In both templates find:

Code:
<!-- / status icon and date -->
2) Directly BELOW add:

Code:
<!-- Link for post anchor -->
&nbsp;<a href="showthread.php?$session[sessionurl]p=$post[postid]#post$post[postid]" title="Anchor location for this post" style="text-decoration: none">&sect;</a>
<!-- /Link for post anchor -->
3) Done!

Thanks to liwo for posting the most recent

Spoiler (click to open)


A fix for this is actually quite simple. Just use this code. (I changed the t=$thread[threadid] to p=$post[postid], so vB finds the thread and the correct page by the postnumber)

Code:
<!-- Link for post anchor -->
&nbsp;<a href="showthread.php?$session[sessionurl]p=$post[postid]#post$post[postid]" title="Anchor location for this post" style="text-decoration: none">&sect;</a>
<!-- /Link for post anchor -->

Close
fix . This replaced the original code of:

Code:
&nbsp;<a href="showthread.php?$session[sessionurl]t=$thread[threadid]#post$post[postid]" title="Anchor location for this post" style="text-decoration: none">&sect;</a>
...which apparently stopped working somewhere around VB 3.5.3.

Download

No files for download.

Screenshots

 

Similar Mods

Mini: Link Directly to PM in Email Notification vBulletin 2.x Full Releases
link directly to PM in PM-Email-Notification vBulletin 2.x Full Releases
Link Directly to Post on Who's Online Page vBulletin 2.x Full Releases
PM Link Directly On Board Through "Currently Active Users" As Picture Link vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024