The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Link directly to a post Details »» | |||||||||||||||||||||||||
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 --> Code:
<!-- Link for post anchor --> <a href="showthread.php?$session[sessionurl]p=$post[postid]#post$post[postid]" title="Anchor location for this post" style="text-decoration: none">§</a> <!-- /Link for post anchor --> Thanks to liwo for posting the most recent fix . This replaced the original code of: Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]#post$post[postid]" title="Anchor location for this post" style="text-decoration: none">§</a> Show Your Support
|
Comments |
#12
|
|||
|
|||
Simple mod m8 well done
|
#13
|
|||
|
|||
I've noticed that this hack seems not to work. It installed without problem and inserts the appropriate link into posts. However, these links, with their extra reference markers, don't actually go to the appropriate post if the thread is longer than one page: if the message is is, for example, on the second page of a thread, the link will simply take you to the first page of the thread.
This seems a very serious problem; on a board with active posters and thus long threads, it makes it essentially useless. Any fix? |
#14
|
|||
|
|||
Hmm, good catch. I'll track it down.
|
#15
|
|||
|
|||
Quote:
But I do hope you'll get a fix out, though, as I quite like the functionality! |
#16
|
|||
|
|||
No, haven't had the chance yet. And I'm out the door right now. All I know is, it was working all the way through 3.5.2. One of the upgrades changed something in the way multiple pages are displayed, so regardless what the fix is, your members' broken urls are likely to stay that way. My recommendation is to uninstall it for now. I'll look at it this evening and see if it's resolvable.
|
#17
|
|||
|
|||
Quote:
|
#18
|
||||
|
||||
It's a good hack, but with this bug it`s useless for me Do you think it's possible to fix it?
EDIT: Ok, it's fixed by liwo |
#19
|
|||
|
|||
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 --> <a href="showthread.php?$session[sessionurl]p=$post[postid]#post$post[postid]" title="Anchor location for this post" style="text-decoration: none">§</a> <!-- /Link for post anchor --> |
#20
|
|||
|
|||
Wow, thanks for that liwo. I've been getting up every day at 3:30am to get to work, then doing night class so haven't had the chance to look. Don't happen to know if your fix works on VB 3.6 do you? I haven't had time to install a test board yet.
|
#21
|
||||
|
||||
We have just test it on vB 3.5
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|