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)
-   -   Miscellaneous Hacks - Photopost Pro Canonical Links Tag for SEO (https://vborg.vbsupport.ru/showthread.php?t=212511)

cellarius 04-29-2009 10:00 PM

Photopost Pro Canonical Links Tag for SEO
 
1 Attachment(s)
Note on versions:
This should work with every vB-version that uses the plugin system (3.5 and above). If not, please let me know. It also should work with older versions of Photopost. I tetsted on vB 3.8.2 and Photopost 6.22.


The problem: Duplicate content


One of the biggest problems of Photopost Pro when aiming at SEO-optimization is duplicate content - myriads of possible urls point to the same page. This leads to heavy penalization by search engines like Google. Although this has been critizised for years by Photopost customers, the developers were less than helpful, stating this was not "an issue with our program at all"; there are no indications whatsoever that this will ever be addressed.

A solution: canonical links

Not long ago, the major search engines (including Google, Microsoft and Yahoo) introduced a new tag, designed to deal with just that problem. It allows you to define a canonical url for pages that can be accessed via various urls. This is just what Photopost needs and should really help SEO-wise (see Googles explanation):
<link rel="canonical" href="URL" />

What this product does

I wrote a small plugin that is only active on Photopost's showphoto.php, this being the most important and most duplicated page. It extracts the photonumber from the URL and constructs a canonical url that is made up only from the URL to the script and one parameter (the photo number). It works with both Photopost's URL versions (standard and spider-friendly). Additionally, if the URL that was used to call the page is not identical to the canonical URL, a "noindex"-Tag will be added.

Example:
URL to call the page:
Code:

http://www.roma-antiqua.de/forum/galerie/showphoto.php?photo=15
will insert:
Code:

<link rel="canonical" href="http://roma-antiqua.de/forum/galerie/showphoto.php?photo=15" />
while

URL to call the page:
Code:

http://www.roma-antiqua.de/forum/galerie/showphoto.php?photo=15&ppuser=1
will insert
Code:

<meta name="robots" content="noindex" />
<link rel="canonical" href="http://roma-antiqua.de/forum/galerie/showphoto.php?photo=15" />


Installation
  • import the product
  • if you're using Template Management System, you're done. Otherwise, add $cel_photopost_canonical at the top of your headinclude template.


### Don't forget to click install! ###
(No support if you don't)

cellarius 04-30-2009 08:07 AM

Reserved

asking 04-30-2009 08:19 AM

will be back soon.

cellarius 04-30-2009 08:39 AM

Quote:

Originally Posted by asking (Post 1801701)
will be back soon.

Good to know... :D

htscpl 04-30-2009 09:48 AM

Hi, sounds great, so the plug-in is only active for the photopost urls within my forums. I have links from all members profiles as well as their posts to their photopost pictures..??

** installed as of now **

cellarius 04-30-2009 10:08 AM

I'm not really sure what you mean, I'll try an answer anyway :)
Quote:

Originally Posted by htscpl (Post 1801717)
Hi, sounds great, so the plug-in is only active for the photopost urls within my forums.

No, this plugin is not active in the forums at all. It is only active on showphoto.php in your Photopost gallery. There it inserts the tags inside the page header. You won't see any difference at all when looking at the page in your browser, it's only in the page source. It's for the search engine spiders.

Quote:

I have links from all members profiles as well as their posts to their photopost pictures..??
That's of no interest for this mod, and this mod will not affect them. It only tells the search engines that there is one page [the canonical one], that can be addressed via different URLS. So the search engine knows that it is not duplicate content and won't penalize you.

You may want to read the explanation on Google Blog I linked to in the first post.

DefenceTalk 04-30-2009 03:41 PM

Good one, thank you.

Works on Photopost 6.1 as well...

Hornstar 04-30-2009 08:26 PM

Thanks, it is a shame that PP don't try and enhance there version more for vb users in general. with all these new vbulletin updates it is starting to make the PP obsolete on my site.

cellarius 05-01-2009 05:47 AM

Quote:

Originally Posted by hornstar1337 (Post 1802084)
Thanks, it is a shame that PP don't try and enhance there version more for vb users in general. with all these new vbulletin updates it is starting to make the PP obsolete on my site.

Same here. I wonder how long it will take them to adapt their product to vB4. Scott Molinari hinted on vB-germany that there might be a full-blown gallery coming from Jelsoft somewhere in the future - if that's to happen, I'm a sure buyer. Hell, if that new taxonomy system coming with vB4 is any good, perhaps the albums can be modded into some kind of gallery. I'm actually looking forward to try that :D

Alfa1 05-01-2009 11:58 AM

I think most will be buyers. Especially photopost users. Thanks for this plugin!


All times are GMT. The time now is 09:59 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.01026 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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