![]() |
Custom Permalink On Postbit
Hey Guys,
Discription: this code will add a direct link to that message on postbit.... Steps: open postbit_legacy/postbit template Find HTML Code:
<if condition="$show['postcount']">(#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]">$post[postcount]</a>)</if> HTML Code:
(<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]&#post$postid" rel="nofollow">permalink</a></strong>) |
Awesome, I had requested something like this, glad to see someone release it! :D
THANK YOU! PS- I did this in the "postbit" template as well. |
Quote:
kool... im glad someone liked it |
In the thread where I had originally requested this, I received some feedback with concerns about search engines spidering too many duplicate URL's. (SEO optimization)
So I wound up making up my own code changes, you may want to implement them here for others as well... Where you tell people to add: HTML Code:
(<strong><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow">permalink</a></strong>) HTML Code:
(<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]&#post$postid" rel="nofollow">permalink</a></strong>) Here is my origional thread for reference... https://vborg.vbsupport.ru/showthread.php?t=144018 I hope that helps!! PS- You should also edit your original post to tell people to edit BOTH postbit AND postbit_legacy. (Just my $0.02 cents) |
Quote:
|
Sometimes you have to wait a sec to give it a chance to fully load the page, before it will auto-scroll to the right post number. Try that?
|
Quote:
However, if the permalink is clicked on page 200 of a thread why would it go to page #1, post#1? It's funny because the hack seemed to work for me the first couple times when I tried it on threads with only a couple pages. Also.... it's funny because I still run one vBulletin that is really old, (2.3.4) and it seems to have this feature built in (I can't remember hacking it). Anyway, I love this feature I hope I can make it work on my 3.6.5. |
Wierd, i've not tried it yet on my (rather large) live board, so it is entirely possible that
it gets confused when there are too many pages of threads. However, as I am still relatively new to vBulletin, i'm not quite sure how to fix that. I will keep trying, in the meantime, maybe someone more experienced can figure it out? |
Quote:
|
Quote:
the hack ur talkin about uses ajax this is a simple template change fo that hack u need a custom coding |
Quote:
|
Quote:
I am using 3.6.5. |
Quote:
HTML Code:
<if condition="$show['postcount']"> |
Thank you!
Quote:
Noob question. After you click "Permalink" is there a place where it shows what all your permalinks are? I tested it with no problems but is there a place where you can see your permalinks? Thanks. |
Quote:
nope sorry... it needs a custom coding to accomplish the hack u are asking for... |
I get the permalink, but what is it used for, what does it do, etc.? Thanks.
Quote:
|
Quote:
|
That's what it is! Thank you!
|
Quote:
I like the idea, but have uninstall it cause it dont work 100% for me thanks... |
Hello!
Is there a way to integrate search on the left to the permalink? The same way as it appear in the navbar. Thank you in advance! |
|
Works on VB 3.7.1 as well thanks.
|
Where are the Prmalinks listed? I checked according to the instructions and can't find them. TIA.
|
Quote:
Quote:
Quote:
Code:
(<strong><a href="showthread.php?$session[sessionurl]p=$postid&#post$postid" rel="nofollow">permalink</a></strong>) |
Is there a way to get $pagenumber into scope in postbit or postbit_legacy template? If we could do that then we could get permalinks pointing to particular pages within a thread and then jumping to the appropriate post via an anchor, instead of permalinking to particular posts. This would likely help with seo because, assuming people linked to posts on a page, the links would all be to the same page, rather than to different posts on the same page.
$pagenumber is available in SHOWTHREAD but not postbit_legacy where I need it to accomplish this. Any ideas how I can get it into scope? |
Quote:
Aveon, please conact me. For VB 3.8.1 PL1 there are different codes in the emples you have to search for to make it show up. TIA. |
I searched and can't find this code.
Quote:
|
All times are GMT. The time now is 07:23 PM. |
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:
|