Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 04-04-2007, 07:34 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default change showpost.php (like vbSEO)

Hi,

I've looked at vBseo, but i'm not interested in over 90% of the stuff it does (and I don't like the fact that it's encrypted code). So the only 2 things that I wanted out of it were:

The rel=nofollow links for certain areas, so they don't get spidered/cached on google. (which I was able to add manually)

The showpost.php modification. This seems reasonable to me... I see no need to have it take people to a seperate page when they click a post number in postbit. This page not only looks ugly, but is an entirely unneccessary extra query and load on my database.

Therefore, I'd love it if someone could come out with a mod that will take the #1, #2 #3, etc links and change them from:

http://www.yourdomain.tld/forum/show...52&postcount=1
TO
http://www.yourdomain.tld/forum/showthread.php?p=1216452#post1

Where it will just take the person who clicks it directly to the appropriate post in the thread. (I assume this uses "a name" html tags to do this.)

THANK YOU!
Reply With Quote
  #2  
Old 04-04-2007, 10:44 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just change showpost.php to showthread.php
Reply With Quote
  #3  
Old 04-04-2007, 11:10 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Haha, that works great...

You (my friend) are a genious, and I am an idiot. :up:

THANK YOU!

For anyone else wanting to do this in the future, just goto the style manager and edit templates and choose the postbit (and/or postbit_legacy) and search for showpost.php and change it to showthread.php.

THAT SIMPLE!
Reply With Quote
  #4  
Old 04-04-2007, 11:24 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're not an idiot, I've just got 5 years expirence on ya
Reply With Quote
  #5  
Old 04-05-2007, 09:12 PM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the both of you. I learned something new.
Reply With Quote
  #6  
Old 04-05-2007, 09:17 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something to bear in mind, by doing this, you are actually *increasing* the number of URLs that the thread in question will have.

This is creating Duplicate Content, something that the search engines don't like.
Reply With Quote
  #7  
Old 04-05-2007, 11:37 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall View Post
Something to bear in mind, by doing this, you are actually *increasing* the number of URLs that the thread in question will have.

This is creating Duplicate Content, something that the search engines don't like.

Sorry, is it? I was under the impression that search engines ignored #XXX after a url? It's similar to using an "<a name=" tag in html. no?
Reply With Quote
  #8  
Old 04-06-2007, 03:23 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

showthread.php?p=12345 and showthread.php?t=34567 are different URLs, no?

Both point to the same content, right?
Reply With Quote
  #9  
Old 04-07-2007, 06:52 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, for my purposes it doesn't matter... since I don't allow search engines to spider my forums anyway (only the archive, which is custom made, not vB stock).

However, since this is the case then anyone else reading this should add the rel="nofollow" tag to the href so that search engines don't spider it. (Where you change showpost.php to showthread.php... example: <a href="link" rel="nofollow">link</a>)

Thanks kall & Zachery!
Reply With Quote
  #10  
Old 04-10-2007, 02:18 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually figured out an even better way to do this...

Quote:
<if condition="$show['postcount']">#<a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;#post$postid" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
This was you not only use the rel="nofollow" but you also aren't changing the URL of the page at all... it's still "showthread.php?t=34567" with just the postid added at the end. Everyone should be happy now. :up:

THANKS for all your help guys!!
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:24 AM.


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.04384 seconds
  • Memory Usage 2,242KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete