Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
Link directly to a post Details »»
Link directly to a post
Version: 1.01, by welo welo is offline
Developer Last Online: May 2009 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 08-30-2005 Last Update: Never Installs: 24
Template Edits
 
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 08-31-2005, 05:10 PM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks .. simple but useful.
Clicked install.
Reply With Quote
  #3  
Old 09-01-2005, 12:43 AM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TTG
Thanks .. simple but useful.
Indeed. It's just one of those little things that's nice to have available. Prior to VB 3.5, if you clicked the post number and opened that post's window, the Thread: [thread title] link wouldn't take you to the post anchor at all, and you had to sift through the thread to find it. Try it on this board. 3.5 makes this a little easier but it's still helpful to have the anchor handy for copying without clicking anything.
Reply With Quote
  #4  
Old 09-01-2005, 01:21 AM
KuRi KuRi is offline
 
Join Date: Jan 2005
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like.... not much else to say.... cheers
Reply With Quote
  #5  
Old 09-01-2005, 03:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already do this but I use the status icon as the anchor image.
Reply With Quote
  #6  
Old 09-01-2005, 03:59 AM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I kinda thought about that - or even using an additional small image, although this might be simpler because you're just adding a little code rather than replacing it, and it won't potentially conflict with something VB might link to the existing icon later. Your method obviously works just as well though.

Been meaning to tell you: That's a clever signature. :up:
Reply With Quote
  #7  
Old 09-01-2005, 04:17 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by welo
I kinda thought about that - or even using an additional small image, although this might be simpler because you're just adding a little code rather than replacing it, and it won't potentially conflict with something VB might link to the existing icon later. Your method obviously works just as well though.

Been meaning to tell you: That's a clever signature. :up:
I just used an old 3.0 hack I did for it.

Thanks for the kind words on the sig. It seems I've had that one forever.
Reply With Quote
  #8  
Old 09-29-2005, 10:46 AM
carrie31 carrie31 is offline
 
Join Date: Aug 2005
Location: Singapore
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

simple and useful ! thank you su much !
I pot it next to the post number :P
Reply With Quote
  #9  
Old 04-12-2006, 12:38 PM
user02934123123 user02934123123 is offline
 
Join Date: Apr 2006
Location: UK
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly what I was looking for ... simple and perfect. Many thanks.
Reply With Quote
  #10  
Old 04-12-2006, 01:15 PM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome. I've been considering adding an optional JS link that allows you to copy the link location directly to the clipboard, although Mozilla security settings means it doesn't work too well in Moz/FF without the enduser making some browser adjustments. Think I'll just leave it how it is for now .
Reply With Quote
Reply

Thread Tools

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 10:30 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
  • Page Generation 0.04356 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete