![]() |
[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 |
Screenshot
|
For those of you that would prefer an image, I created a "link" icon in the default vB colors.
|
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.
|
Nice template hack:)
|
Thanks! Glad you guys like it. :)
|
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>) |
so it will look like
(link to post), the parentheses have no effect on the mod itself what so ever. |
Thank you, Anime-loo. Of course! Now, don't I feel silly! :p
|
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 |
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. :) |
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. :) |
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.
|
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. :)
|
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.
|
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 <!-- ==================================== --> |
Still waters: We try to not use code tags here due to the table breaks. Ive edited them out of your post.
|
Whooops. Thanks, Anime-loo. :)
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|