vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - SEOvB - Link Canonicalization for vBulletin Stop Duplicate Content NOW! (https://vborg.vbsupport.ru/showthread.php?t=205512)

HeyMe 06-16-2009 10:17 AM

Quote:

Originally Posted by brandonroy (Post 1770921)
It's adding page numbers ok for showthread, but not for showpost! If you view a single post on page 2 for example, the canonical URL points to the first page of the thread.

For me it doesn't add numbers for both, I'm on 3.8.2

Disabling it for now, this can be disastrous for SEO ..

HeyMe 06-21-2009 08:38 AM

Update: Works with the template edit method except for the showpost part as stated brandonroy, thanks!

@atmaca, why would you need this with Zoints SEO, it already uses 301 redirects to take care of duplicate content?

Sayid 07-12-2009 12:57 PM

Code:

<if condition="(THIS_SCRIPT == showthread) OR (THIS_SCRIPT == printthread)">
<link rel="canonical" href="$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]<if condition="$pagenumber>1">&page=$pagenumber</if>" />
</if>
<if condition="(THIS_SCRIPT == showpost)">
<link rel="canonical" href="$vboptions[bburl]/showpost.php?p=$postinfo[postid]"/>
</if>
<if condition="THIS_SCRIPT == index">
<link rel="canonical" href="$vboptions[bburl]" />
</if>

I modify the code to make it work with showpost tempelate

For example, the canonical link for :

showpost.php?p=20020&postcount=18

is:

showpost.php?p=20020

which shows the same single post page but without post count #42 below the tread title

Is it good or not ?

Alfa1 08-16-2009 01:55 PM

This is not true for me:
Quote:

How can I check if its working
Go to your showthread page, and hit view source, and search for "canonical" and you should see it automatically added.
The canonical is added to the source. So according to your explanation Google should no longer index double content. None the less Google still indexes both urls for the same thread:

showthread.php?t=26237

showthread.php?p=179223

I am getting hit with 30.000 double content pages. What can I do?

jaymanfromTFX 08-18-2009 07:21 AM

I just installed this and i am hoping this works.Thanks!I will let everyone know in a couple weeks how things went.

Alfa1 09-01-2009 03:29 PM

Quote:

Originally Posted by Alfa1 (Post 1868509)
This is not true for me:
The canonical is added to the source. So according to your explanation Google should no longer index double content. None the less Google still indexes both urls for the same thread:

showthread.php?t=26237

showthread.php?p=179223

I am getting hit with 30.000 double content pages. What can I do?

Any idea on this?

Sayid 09-01-2009 10:22 PM

Quote:

I am getting hit with 30.000 double content pages. What can I do?
same thing with me.

djbaxter 09-01-2009 11:44 PM

Quote:

Originally Posted by Alfa1 (Post 1877837)
Any idea on this?

Quote:

Originally Posted by Sayid (Post 1878081)
same thing with me.

You misunderstand the purpose of this add-on and opf the canonicalization tag.

It does not eliminate duplicate content in the way you indicate here: To do that, you'll need a more extsnive add-on such as vBSEO.

What this one does is specify that http://www.yoursite.com and http://.yoursite.com refer to the same page and it instructs search engines as to which version you prefer.

That's it. That's all.

Alfa1 09-02-2009 07:51 AM

Aha. But then this whole addon can simply be replaced by one .htaccess line.

djbaxter 09-02-2009 01:14 PM

Quote:

Originally Posted by Alfa1 (Post 1878255)
Aha. But then this whole addon can simply be replaced by one .htaccess line.

Or by one line added to the includes template, yes. The add-on is for convenience.


All times are GMT. The time now is 09:30 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.02367 seconds
  • Memory Usage 1,739KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete