vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [Tweak] Direct Links To Posts Within A Thread (https://vborg.vbsupport.ru/showthread.php?t=83879)

mashby 07-18-2002 10:00 PM

[Tweak] Direct Links To Posts Within A Thread
 
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

mashby 07-18-2002 11:44 PM

Screenshot

mashby 07-19-2002 12:11 AM

For those of you that would prefer an image, I created a "link" icon in the default vB colors.

Dark Vincent 07-19-2002 05:31 AM

Nice lol I like how you made the image on the button a link in a chain. I'll install this once my site's back up.

Tyfoon 07-19-2002 08:47 AM

Nice template hack:)

mashby 07-19-2002 01:02 PM

Thanks! Glad you guys like it. :)

Still Waters 12-18-2002 10:29 PM

Michael, this is a very nice template mod. Just what I was looking for, actually!
One question before I install it, though.
Why is the following line of code inside parentheses? I have never seen that in HTML, before.

Code:

      (<a href="http://yourdomainname.com/forum/showthread.php?s=&threadid=$post[threadid]#post$post[postid]">Link To Post</a>)
Thanks in advance. :)

Brad 12-18-2002 10:40 PM

so it will look like

(link to post), the parentheses have no effect on the mod itself what so ever.

Still Waters 12-18-2002 11:13 PM

Thank you, Anime-loo. Of course! Now, don't I feel silly! :p

MustangBST 12-19-2002 02:32 AM

Instead of (link to post) How can we get it do be numbers.

Such as First post in a thread is 1 second is 2 and so on

Larry

Still Waters 12-19-2002 02:55 AM

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

Still Waters 12-19-2002 03:45 AM

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

Tony G 12-19-2002 03:52 AM

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.

Still Waters 12-19-2002 04:44 AM

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

Tony G 12-19-2002 05:05 AM

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.

Still Waters 12-19-2002 06:20 PM

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
<!-- ==================================== -->

Brad 12-19-2002 06:27 PM

Still waters: We try to not use code tags here due to the table breaks. Ive edited them out of your post.

Still Waters 12-19-2002 09:03 PM

Whooops. Thanks, Anime-loo. :)

Orfejs 01-30-2003 03:06 PM

Is it really helpfull?


All times are GMT. The time now is 02:46 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.01068 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete