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

Reply
 
Thread Tools
Prevent Duplicate url ( SEO ) - forum home Details »»
Prevent Duplicate url ( SEO ) - forum home
Version: 1.00, by Golzarion Golzarion is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.7.x Rating:
Released: 10-26-2008 Last Update: Never Installs: 20
Template Edits
Re-useable Code  
No support by the author.

Prevent Duplicate topic url on forumhome :

For Great SEO you need to prevent duplicate addresses of one page !

a unique URL per each unique resource is realy important!

vbulletin does have a problem with duplicating content.I had the same problem as here you can read . Because vbulletin has at least 2 different url addresses for one page !!!!

1. address is with the number of thread ( eg: https://vborg.vbsupport.ru/showthread.php?t=194708 )
Notise : t=194708

2. sddress is with the number of post ( eg : https://vborg.vbsupport.ru/showthread.php?p=1653770 )
Notice : p=1653770

As you see this duplication address cause many problems that you can see on google webmasters tool . Also it dilutes your incoming links !! some users link to the topic with the url of theard id (...?t=xxxx) the othres link the same topic and the same page with the url of last post number (...?p=xxxx )

see more details :here .

What does this mode do ?

It prevent the most popular duplication on forum home ! ( the main page of your vBulletin forums)

How to Install ?

Just some easy template edit !

1.go to " forumhome_lastpostby"template ( admin cp =>Styles&Templates=>style manager=>all style option=>Forum home template ==>>forumhome_lastpostby)

search for :
Code:
goto=newpost
Finde :
Code:
<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]"
Replace it with :
PHP Code:
<a href="showthread.php?$session[sessionurl]t=$lastpostinfo[lastthreadid]
I did this change as modification and use it on my forum . because for some reasons I didn't want install vbseo or tfseo or any rewrite modes ! (vbseo users do not need to install this mode because vbseo do the same result in the completely different way )
** Please click Installed if you use this mode . ***

thanks.
http://forum.golzarion.com
.

Show Your Support

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

Comments
  #2  
Old 10-27-2008, 07:40 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved
Reply With Quote
  #3  
Old 10-27-2008, 07:42 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works fine with all versions of vbulletin ! 3.6.8 / 3.7.3/3.8.0/ and ...

Also it is xhtml transitional valid.

****
I did this change as modification and use it on my forum . because for some reasons I didn't want install vbseo or tfseo or any rewrite modes ! (vbseo users do not need to install this mode because vbseo make the same result in the completely different way )
Reply With Quote
  #4  
Old 10-27-2008, 08:12 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

More details :
On forum home ( the main page of your forums) when users make new post on topics ... you can see the name of that topic on the main page but with this link : " yoursite.com/showthread.php?goto=newpost&t=xxx"

this rules redirect visitors (also google bots) and users to the URL of that topic with "post id " such as " showthread.php?p=xxx"
It makes Duplicate addresses !
And you know how bad is duplicate address is.(see the links and refers on the mode descriptions.

There was 2 popular way to get rid of that :

1.change showthead.php and fuction.php of vBulletin default php files!!

2.Buy vbseo or use tfseo or any reWrite modes.!

I used the third way : Remove and improve the forumhome link! by editing the template !

I beleive it is more usefull and easy.

Reply With Quote
  #5  
Old 10-28-2008, 10:12 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually using a robots.txt to block the showthread.php?p=postid would be the easiest way as Google will still find it your way since you haven't removed/rewritten all the links pointing to the showthread.php?p=postid links.
Reply With Quote
  #6  
Old 10-28-2008, 10:36 AM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
actually using a robots.txt to block the showthread.php?p=postid would be the easiest way ......
No ! Robots.txt in this subject doesn't solve the second problem : if members click the links on " forumhome" and they link to your forums pages with ..showthread.php?p=[postid] ...actually it dilutes your incoming link from other sites !!

You should fix the duplicate URLs to get the better incoming links from other sites !! This is what I believe !

If you improve the duplication links and prevent the others to link the ( showthread.php?p=xxx) surely it improves your incoming links and better !

Surely if someone buy the vbseo ... it acts exactly the same ( certainly by rewrite ) ... you can see the http://vbseo.com/forums ... and see the links of the threads on forumehome ... They are exactly the same as using this mode ! Both link to the URL with " thread id " !
This modification is the best for thoes who do NOT want use rewrite to fix forumhome URLs.
I think it should be the vBulletin default !
Reply With Quote
  #7  
Old 10-28-2008, 05:14 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Golzarion View Post
No ! Robots.txt in this subject doesn't solve the second problem : if members click the links on " forumhome" and they link to your forums pages with ..showthread.php?p=[postid] ...actually it dilutes your incoming link from other sites !!

You should fix the duplicate URLs to get the better incoming links from other sites !! This is what I believe !

If you improve the duplication links and prevent the others to link the ( showthread.php?p=xxx) surely it improves your incoming links and better !

Surely if someone buy the vbseo ... it acts exactly the same ( certainly by rewrite ) ... you can see the http://vbseo.com/forums ... and see the links of the threads on forumehome ... They are exactly the same as using this mode ! Both link to the URL with " thread id " !
This modification is the best for thoes who do NOT want use rewrite to fix forumhome URLs.
I think it should be the vBulletin default !
Great, but simply rewriting this one link doesn't remove it from your forums, users can still link to it (duplicate content still), Google can still find the link to showthread.php?p=postid. Do you know how crawlers work and find links and pages on your site?

If you want it removed to prevent the duplicate content, you'll have to rewrite every single link that points to showthread.php?p=postid which this clearly doesn't do, or block it from being crawled completely via robots.txt

So go ahead and make this tiny template edit, then in a few weeks/months do a site:http://yoursite.com/showthread.php?p= search and see how it goes.
Reply With Quote
  #8  
Old 10-29-2008, 12:20 AM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
.....If you want it removed to prevent the duplicate content, you'll have to rewrite every single link that points to showthread.php?p=postid which this clearly doesn't do, or block it from being crawled completely via robots.txt . . . . .
Thank you. Of course you're right. I know it doesn't solve all duplications on vBulletin.

But this is only to improve "forumhome" template... and reduce duplication.
Reply With Quote
  #9  
Old 10-29-2008, 02:21 PM
superjeff superjeff is offline
 
Join Date: Apr 2007
Location: Italy
Posts: 394
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like this! It could be a good way to go, but you should "convert" all the links from ?p= to ?t=!
Reply With Quote
  #10  
Old 10-29-2008, 07:19 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you . I've always admired your great hack tfseo . :up:

Quote:
Originally Posted by superjeff View Post
Like this! It could be a good way to go, but you should "convert" all the links from ?p= to ?t=!
Correct.So to "convert " it I should use rewrite mode ( in order to redirect ) ? I'm thinking about light rewrite mode that do this ... of course tfseo could be a good choice ..

Any idea? I mean can a more simple rewrite fix this vBulletin duplication completely ?
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 10:51 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.09416 seconds
  • Memory Usage 2,315KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (4)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
  • (1)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