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

Reply
 
Thread Tools
[Tweak] Direct Links To Posts Within A Thread Details »»
[Tweak] Direct Links To Posts Within A Thread
Version: 1.00, by mashby mashby is offline
Developer Last Online: May 2014 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-18-2002 Last Update: Never Installs: 0
 
No support by the author.

Author: mashby

Description: This mod will teach you how to add a link in each post to that post. This way you can link to specific posts in a thread.

This is based on bira's Post Counter & Direct Link [link]. This mod does not include the post counter. The only way to add that feature is to install the hack.

I really like this hack on vBulletin.org and wished to add it to my board, but I didn't want to use a hack. Without this feature, it's a pain to try and provide a link to a specific post. Saying "go here, and it's the 3rd post down" just doesn't work for me.

Demo: http://www.npug.org/forum/showthread...2223#post12284

Show Your Support

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

Comments
  #12  
Old 12-19-2002, 02:55 AM
Still Waters's Avatar
Still Waters Still Waters is offline
 
Join Date: Dec 2002
Location: USA
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Larry, I was hoping for numbered posts, as well. However, the mod instructions state, "This is based on bira's Post Counter & Direct Link (https://vborg.vbsupport.ru/showthrea...threadid=22083). This mod does not include the post counter. The only way to add that feature is to install the hack."

So, we're out of luck. But, I think the ease and simplicity of a template mod more than make up for loss of the numbers.
Reply With Quote
  #13  
Old 12-19-2002, 03:45 AM
Still Waters's Avatar
Still Waters Still Waters is offline
 
Join Date: Dec 2002
Location: USA
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed the mod, and I have a small spacing problem. In the attached image, button #1 is not aligned at the top of the post. Note there is a post subject. On the other hand, button #2 is aligned at the top, as there is no post subject.

How can I correct this inconsistency?
Thanks in advance.
Reply With Quote
  #14  
Old 12-19-2002, 03:52 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is why, the post subject uses a different table so the link icon cannot align itself in any other tables expect which one it has been placed in.
Reply With Quote
  #15  
Old 12-19-2002, 04:44 AM
Still Waters's Avatar
Still Waters Still Waters is offline
 
Join Date: Dec 2002
Location: USA
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Tony. Do you think it's possible to put both objects inside the same table and solve this problem, without creating additional spacing problems? I'll jump into the html if you think it can be done.
Reply With Quote
  #16  
Old 12-19-2002, 05:05 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure, you can try putting the variable (Or whatever code is put into the postbit) into the table where the topic is. Then see if it works with no topic displayed in the posts.
Reply With Quote
  #17  
Old 12-19-2002, 06:20 PM
Still Waters's Avatar
Still Waters Still Waters is offline
 
Join Date: Dec 2002
Location: USA
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I did it. Here is another way of implementing this postbit tweak,
which keeps the link aligned in the top-right corner, regardless of whether there's
a post subject. I'm attaching an image that shows the alignment.

Look for this in the postbit template.
<smallfont>$post[icon] <b>$post[title]</b></smallfont>

And replace it with this.
<!-- ==================================== -->
<!-- START - Direct Links To Posts Within A Thread --- http://www.vbulletintemplates.com/mo...=&threadid=384 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><smallfont>$post[icon]<b>$post[title]</b></smallfont>
</td>
<td align="right" valign="top"><smallfont><a href="showthread.php?s=&threadid=$post[threadid]#post$post[postid]"><img src="images/path/to/button_link.gif" border="0" alt="Link to Post"></a></smallfont>
</td>
</tr>
</table>
<!-- STOP - Direct Links To Posts Within A Thread
<!-- ==================================== -->
Reply With Quote
  #18  
Old 12-19-2002, 06:27 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still waters: We try to not use code tags here due to the table breaks. Ive edited them out of your post.
Reply With Quote
  #19  
Old 12-19-2002, 09:03 PM
Still Waters's Avatar
Still Waters Still Waters is offline
 
Join Date: Dec 2002
Location: USA
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whooops. Thanks, Anime-loo.
Reply With Quote
  #20  
Old 01-30-2003, 03:06 PM
Orfejs's Avatar
Orfejs Orfejs is offline
 
Join Date: Sep 2002
Location: In your mind
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it really helpfull?
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 01:24 AM.


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.06009 seconds
  • Memory Usage 2,282KB
  • 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
  • (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