Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Link to post with Jump instead of opening it as stand alone Details »»
Link to post with Jump instead of opening it as stand alone
Version: 1.00, by voter voter is offline
Developer Last Online: Nov 2014 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 02-28-2007 Last Update: Never Installs: 2
 
No support by the author.

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]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
And change the showpost.php to showthread.php or replace it with code below

Code:
<if condition="$show['postcount']">#<a href="showthread.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
Alternativly, just add the new version with showthread.php above or below the old code and you will have both possibilities, I would recommend in second link define and use a vbphrase instead of <strong>$post[postcount]</strong>.



Life Demo

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-01-2007, 03:02 PM
PhoneiX PhoneiX is offline
 
Join Date: Feb 2007
Location: Ankara/T?rkiye
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
But i think you shouldn't change "showpost.php". However, you can add this code near it.

And thanks a lot for giving me this idea.
Reply With Quote
  #3  
Old 03-02-2007, 11:56 AM
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PhoneiX View Post
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>
But i think you shouldn't change "showpost.php". However, you can add this code near it.

And thanks a lot for giving me this idea.
Nice tip Phoneix. Sure when one clicks on the version I suggested, a new window or refresh will happen.

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&copy...

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
Reply With Quote
  #4  
Old 03-05-2007, 12:17 PM
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 03-06-2007, 08:08 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by voter View Post
Nice tip Phoneix. Sure when one clicks on the version I suggested, a new window or refresh will happen.

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&copy...
This isn't true. I changed to PhoneiX's method, and am able to right-click to copy the URL (which works just fine when pasted in a new browser instance.)

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.
Reply With Quote
  #6  
Old 03-16-2007, 07:51 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala View Post
This isn't true. I changed to PhoneiX's method, and am able to right-click to copy the URL (which works just fine when pasted in a new browser instance.)

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.
I respectfully withdraw this comment -- I reported too soon and see what voter was talking about. PhoneiX's method only works for the current session, as an anchor of sorts, it's not useful if a poster wants to share the link in a later post for other users to click... it also includes the styleid which may switch a user's chosen style. The "no refresh" was cool and all, but not worth losing the functionality and flexibility of voter's mod.

Thanks for clarifying, voter, I now see the wisdom of your advice.
Reply With Quote
  #7  
Old 03-19-2007, 01:27 PM
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala View Post
I respectfully withdraw this comment -- I reported too soon and see what voter was talking about. PhoneiX's method only works for the current session, as an anchor of sorts, it's not useful if a poster wants to share the link in a later post for other users to click... it also includes the styleid which may switch a user's chosen style. The "no refresh" was cool and all, but not worth losing the functionality and flexibility of voter's mod.

Thanks for clarifying, voter, I now see the wisdom of your advice.
To be honest the vB developers did the wisdomst job and when one want a directURL to post then the Post must appear and not whole topic however I think here are mostly the admins of boards are and they prefere that when somebody uses Urls to their board browser shows more than one Post

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...
Reply With Quote
  #8  
Old 03-19-2007, 02:26 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 03-26-2007, 07:43 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks........
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04333 seconds
  • Memory Usage 2,294KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete