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

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
  #12  
Old 04-12-2006, 05:56 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simple mod m8 well done
Reply With Quote
  #13  
Old 05-30-2006, 08:40 AM
user02934123123 user02934123123 is offline
 
Join Date: Apr 2006
Location: UK
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #14  
Old 05-30-2006, 12:09 PM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, good catch. I'll track it down.
Reply With Quote
  #15  
Old 06-04-2006, 12:31 PM
user02934123123 user02934123123 is offline
 
Join Date: Apr 2006
Location: UK
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by welo
Hmm, good catch. I'll track it down.
Have you made any progress on this? It's becoming somewhat pressing, since my users are using the links it generates as hyperlinks in their posts, and as those links don't work properly (cf. my comments above), messages are being posted across the system that include bad links. It's getting to the point where I'm really going to need to uninstall the hack if this can't be sorted.

But I do hope you'll get a fix out, though, as I quite like the functionality!
Reply With Quote
  #16  
Old 06-04-2006, 02:01 PM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 06-05-2006, 07:10 AM
user02934123123 user02934123123 is offline
 
Join Date: Apr 2006
Location: UK
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by welo
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.
Thanks for this. I've uninstalled the hack and clicked ::uninstall:: above for the time being. I'll be keeping an eye on this thread, though, waiting to see if you can come up with a fix for this bug, and if so will look forward to re-installing.
Reply With Quote
  #18  
Old 06-09-2006, 04:11 PM
Scharesoft's Avatar
Scharesoft Scharesoft is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 06-09-2006, 04:20 PM
liwo liwo is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 -->
Reply With Quote
  #20  
Old 06-09-2006, 04:50 PM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 06-09-2006, 05:10 PM
Scharesoft's Avatar
Scharesoft Scharesoft is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We have just test it on vB 3.5
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 11:44 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.04730 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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
  • (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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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