![]() |
Link to post with Jump instead of opening it as stand alone
Go following steps if you want that the link with postcount shown at right-up corner of each post, provides the possibility of opening the post as a part of thread - jumping to post instead of opening a new window with post only.
Find in your postbit_legacy Code:
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if> Code:
<if condition="$show['postcount']">#<a href="showthread.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if> Life Demo |
This is more easy i think, when you click on it, doesn't refresh the page.
Code:
<a href="#post$post[postid]" title="Link to this post"><strong>Link</strong></a> And thanks a lot for giving me this idea.:) |
Quote:
But the goal of modification is to give people possibility to use Rightmouse Button and Copy Link which could be used later to go directly to Post staying inside the thread. If use like you suggested a code that adds something to "session's current url", then with the Rightclick-Copy will not be possible to have the full address of post. Sure one can make a click on your type of link -> useless jump happens -> full link in URL Box of Browser appears AND only then one can copy the direct link from that box by mark©... I am lazy guy and like simple ways, but in this case your suggestion is not the simplest one ;) I was even thought to put a script, that opens a form where on could see the link, but again it wouldn't be simpler |
Sure it is hack available on vb.org
I hope author will release sometime an update, till that it is unsupported, but very useful https://vborg.vbsupport.ru/showthread.php?t=100589 |
Quote:
Also, when I click the "post number" link in that thread, it brings that post to the top of the web page, no refresh needed. PhoneiX's method works better for me, and I see no downside. |
Quote:
Thanks for clarifying, voter, I now see the wisdom of your advice. |
Quote:
I will think about, may be there is a way to have some hybrid verions from what I suggest and what Phonix's version is... |
The way I did it on my board is I split the "#" character from the post number itself. So clicking the "#" opens the single post in a window on it's own, and clicking the post number reloads the thread with that post as the anchor. That makes it useful as a reference URL to share elsewhere... and keeps the context of the post around it, by way of including the rest of the thread.
|
Thanks........
|
All times are GMT. The time now is 01:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|