View Full Version : [Tweak] Direct Links To Posts Within A Thread
mashby
07-18-2002, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=22083)]. 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 (http://www.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.php?s=&threadid=12223#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.
(<a href="http://yourdomainname.com/forum/showthread.php?s=&threadid=$post[threadid]#post$post[postid]">Link To Post</a>)
Thanks in advance. :)
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/showthread.php?s=&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/mods/showthread.php?s=&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
<!-- ==================================== -->
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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.