vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Custom Permalink On Postbit (https://vborg.vbsupport.ru/showthread.php?t=144328)

aveon 04-07-2007 10:00 PM

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]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]">$post[postcount]</a>)</if> &nbsp;
Add Below
HTML Code:

&nbsp;(<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;#post$postid" rel="nofollow">permalink</a></strong>)&nbsp;
i hope u like it...

DiSpy 04-09-2007 01:52 AM

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.

aveon 04-09-2007 12:24 PM

Quote:

Originally Posted by DiSpy (Post 1223024)
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.


kool... im glad someone liked it

DiSpy 04-10-2007 02:28 PM

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:

&nbsp;(<strong><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow">permalink</a></strong>)&nbsp;
you should instead tell people to add:
HTML Code:

&nbsp;(<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;#post$postid" rel="nofollow">permalink</a></strong>)&nbsp;

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)

bigwest 04-13-2007 05:46 AM

Quote:

Originally Posted by DiSpy (Post 1224188)
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:

&nbsp;(<strong><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow">permalink</a></strong>)&nbsp;
you should instead tell people to add:
HTML Code:

&nbsp;(<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;#post$postid" rel="nofollow">permalink</a></strong>)&nbsp;

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)

Hmmmmm... it seemed like this kinda worked for me but most of the time when you clicked the permalink it would take you to the first post in the thread.

DiSpy 04-13-2007 01:14 PM

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?

bigwest 04-13-2007 03:19 PM

Quote:

Originally Posted by DiSpy (Post 1226692)
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?

True, I noticed that.

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.

DiSpy 04-13-2007 03:49 PM

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?

bigwest 04-13-2007 04:35 PM

Quote:

Originally Posted by DiSpy (Post 1226815)
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?

Don't rule out the possibility of user-error (I may have done something wrong.) :)

aveon 04-13-2007 05:17 PM

Quote:

Originally Posted by bigwest (Post 1226784)
True, I noticed that.

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.



the hack ur talkin about uses ajax this is a simple template change fo that hack u need a custom coding

bigwest 04-19-2007 04:48 PM

Quote:

Originally Posted by aveon (Post 1226895)
the think your takin is usinj AJAX and it needs some coding and im not a good coder ....

Uh... say what?

Fungsten 04-19-2007 09:15 PM

Quote:

<if condition="$show['postcount']">(#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]">$post[postcount]</a>)</if> &nbsp;
:confused: :confused: :confused:

I am using 3.6.5.

aveon 04-20-2007 04:12 PM

Quote:

Originally Posted by Fungsten (Post 1231498)
:confused: :confused: :confused:

I am using 3.6.5.

search for

HTML Code:

<if condition="$show['postcount']">

Fungsten 04-20-2007 06:46 PM

Thank you!

Quote:

Originally Posted by aveon (Post 1232060)
search for

HTML Code:

<if condition="$show['postcount']">

On Edit:

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.

aveon 04-21-2007 10:39 PM

Quote:

Originally Posted by Fungsten (Post 1232156)
Thank you!



On Edit:

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.


nope sorry... it needs a custom coding to accomplish the hack u are asking for...

Fungsten 04-21-2007 10:44 PM

I get the permalink, but what is it used for, what does it do, etc.? Thanks.

Quote:

Originally Posted by aveon (Post 1232974)
nope sorry... it needs a custom coding to accomplish the hack u are asking for...


aveon 04-22-2007 10:46 AM

Quote:

Originally Posted by Fungsten (Post 1232977)
I get the permalink, but what is it used for, what does it do, etc.? Thanks.

nothing special it just adds a direct lin to the messages so when u click on that link it takes u to that message..

Fungsten 04-22-2007 06:10 PM

That's what it is! Thank you!

Stickers 08-02-2007 11:18 AM

Quote:

Originally Posted by bigwest (Post 1226472)
Hmmmmm... it seemed like this kinda worked for me but most of the time when you clicked the permalink it would take you to the first post in the thread.

I got the same problem...
I like the idea, but have uninstall it cause it dont work 100% for me

thanks...

United32 08-02-2007 08:34 PM

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!

testebr 09-02-2007 07:42 PM

This mod is nice, but don't work in a thread with many pages..

Read this link to get a solution.

Charlie98902 06-12-2008 02:24 AM

Works on VB 3.7.1 as well thanks.

Fungsten 06-19-2008 07:08 PM

Where are the Prmalinks listed? I checked according to the instructions and can't find them. TIA.

shooter83 07-31-2008 06:48 PM

Quote:

Originally Posted by bigwest (Post 1226784)
True, I noticed that.

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.

Quote:

Originally Posted by Stickers (Post 1307960)
I got the same problem...
I like the idea, but have uninstall it cause it dont work 100% for me

thanks...

Quote:

Originally Posted by bigwest (Post 1226472)
Hmmmmm... it seemed like this kinda worked for me but most of the time when you clicked the permalink it would take you to the first post in the thread.

i changed the code and it's working flawlessly on multable thread pages now:

Code:

&nbsp;(<strong><a href="showthread.php?$session[sessionurl]p=$postid&amp;#post$postid" rel="nofollow">permalink</a></strong>)&nbsp;

Chunky Monkey 03-20-2009 08:47 PM

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?

Fungsten 03-22-2009 06:57 PM

Quote:

Originally Posted by Fungsten (Post 1553873)
Where are the Prmalinks listed? I checked according to the instructions and can't find them. TIA.

Anyone?

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.

paktvsite 04-19-2012 04:33 PM

I searched and can't find this code.

Quote:

<if condition="$show['postcount']">(#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]">$post[postcount]</a>)</if> &nbsp;
i am using 4.1.10


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
  • Page Generation 0.01417 seconds
  • Memory Usage 1,815KB
  • 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
  • (8)bbcode_html_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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