Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom Permalink On Postbit Details »»
Custom Permalink On Postbit
Version: 1.00, by aveon aveon is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.6.5 Rating:
Released: 04-07-2007 Last Update: Never Installs: 24
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-09-2007, 01:52 AM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, I had requested something like this, glad to see someone release it!

THANK YOU!

PS- I did this in the "postbit" template as well.
Reply With Quote
  #3  
Old 04-09-2007, 12:24 PM
aveon's Avatar
aveon aveon is offline
 
Join Date: May 2006
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiSpy View Post
Awesome, I had requested something like this, glad to see someone release it!

THANK YOU!

PS- I did this in the "postbit" template as well.

kool... im glad someone liked it
Reply With Quote
  #4  
Old 04-10-2007, 02:28 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #5  
Old 04-13-2007, 05:46 AM
bigwest bigwest is offline
 
Join Date: May 2003
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiSpy View Post
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.
Reply With Quote
  #6  
Old 04-13-2007, 01:14 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 04-13-2007, 03:19 PM
bigwest bigwest is offline
 
Join Date: May 2003
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiSpy View Post
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.
Reply With Quote
  #8  
Old 04-13-2007, 03:49 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 04-13-2007, 04:35 PM
bigwest bigwest is offline
 
Join Date: May 2003
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiSpy View Post
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.)
Reply With Quote
  #10  
Old 04-13-2007, 05:17 PM
aveon's Avatar
aveon aveon is offline
 
Join Date: May 2006
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigwest View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:49 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04674 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete