View Full Version : Miscellaneous Hacks - Photopost Pro Canonical Links Tag for SEO
cellarius
04-29-2009, 10:00 PM
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 (http://www.photopost.com/forum/photopost-pro-suggestions/136834-when-do-we-get-only-1-url-1-photo.html), 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 (http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html)):
<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: http://www.roma-antiqua.de/forum/galerie/showphoto.php?photo=15
will insert: <link rel="canonical" href="http://roma-antiqua.de/forum/galerie/showphoto.php?photo=15" />while
URL to call the page: http://www.roma-antiqua.de/forum/galerie/showphoto.php?photo=15&ppuser=1will insert <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 (http://www.vbulletin-germany.org/showthread.php?t=24), 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
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 :)
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.
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
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!
KenDude
05-02-2009, 11:02 AM
Quick question, but does vbgallery work in the same way and does it require a similar solution to PhotoPost Pro? If so, will you be making a mod for vbgallery as well?
cellarius
05-02-2009, 11:24 AM
Probably - I'm not that familiar with vBG. Though I doubt that the problem can be as bad as with Photopost. ;) I have vbseo installed and the SEO-gurus there have up to now not been able to handle Photopost - that's how bad it is :(. There is a plugin for vBG, tho. And no, I won't do something for vBG. As I said, I don't use it myself, and with vbseo there is a excellent product available for SEOing.
Andreas
05-02-2009, 12:26 PM
Hell, if that new taxonomy system coming with vB4 is any good, perhaps the albums can be modded into some kind of gallery.
At least the current db schema and code seems to make it pretty easy to build a gallery type addon based on (album) pictures - if I only had enough time ...
cellarius
05-02-2009, 12:39 PM
*Sigh* ;)
jw00dy
05-19-2009, 07:44 AM
Thank you, thank you, thank you!
lm3a.net
05-20-2009, 08:30 AM
that's gooooood
thank youuu very mucccccch
stasick
05-22-2009, 02:20 PM
How exactly do i install this? Thx!
cellarius
05-22-2009, 02:56 PM
Just as it says in the first post:
Installation
import the product
if you're using Template Management System (http://www.vbulletin-germany.org/showthread.php?t=24), you're done. Otherwise, add $cel_photopost_canonical at the top of your headinclude template.For the first step:
AdminCP -> Plugins & Products -> Manage Products -> Add / import product (at the bottom of the page). Then import the xml-file you downloaded.
For the second step:
AdminCP -> Styles & Templates -> Style Manager -> Choose appropriate style -> All Style options -> headinclude -> add $cel_photopost_canonical at the top.
stasick
05-22-2009, 06:39 PM
well, that couldn't have been easier. Very nice!
SHalliday
06-19-2009, 11:23 AM
Easy to install. Thanks!
cellarius
07-16-2009, 09:46 AM
If you're running the vBSEO Sitemap Generator:
I corrected an issue and added seperate database support to benFF's addon for Photopost Pro:
http://www.vbseo.com/f44/sitemap-addon-photopost-photopost-classifieds-5035/index2.html#post224775
jw00dy
07-16-2009, 04:13 PM
Thank you cellarius!
Worlocked
07-21-2009, 07:20 AM
This is a very nice and easy fix to one of the worst issues with PP that they will never fix. Marked installed.
I have one question/request though. I have the spider-friendly URLs on, but I used to have a sitemap generator that produced the sitemap with the standard URLs (showphoto.php?photo=XXX). As a result, I have a lot of photos indexed with both versions. This plugin as is works with both, which means it will produce a canonical URL for each version. Is there a way to make this check which type of URL is selected in the admin options of PP, and then produce only that format of canonical URL?
For instance, if you have spider friendly URLs active, and a search engine visits a showphoto.php?photo=XXX page, the noindex meta would be inserted along with the canonical URL as showphoto.php/photo/XXX ? That would be excellent if its possible. Either way, you've managed to do more than PP has for years with this one little plugin.
Xencored
07-21-2009, 12:55 PM
Hi cellarius
sorry for my dumb arse question but would this work for Vbgallery (made by photopost)
i know it says photopost pro just trying my luck here ;)
Cheers
cellarius
08-03-2009, 07:30 AM
I have one question/request though. I have the spider-friendly URLs on, but I used to have a sitemap generator that produced the sitemap with the standard URLs (showphoto.php?photo=XXX). As a result, I have a lot of photos indexed with both versions. This plugin as is works with both, which means it will produce a canonical URL for each version. Is there a way to make this check which type of URL is selected in the admin options of PP, and then produce only that format of canonical URL?
That would be possible, but for your problem I'd say it would be the wrong path. In your place, I'd decide which URL I want to use, and then implement a 301-redirect via htaccess to redirect the other. This way, you get the "wrong" URLs out of the search engines.
Defkalion
08-03-2009, 09:04 AM
Cool, thanks. Is there any way to check if this works after we install it, and somehow check the results after a few days/weeks on google somehow?
cellarius
08-03-2009, 09:21 AM
Cool, thanks. Is there any way to check if this works after we install it
Of course. Just check the html source code in your browser. The meta tag will be visible there.
and somehow check the results after a few days/weeks on google somehow?
Use Google Webmaster tools. There you can get information on how many and which pages are listed in the Google index.
cellarius
08-03-2009, 09:22 AM
Hi cellarius
sorry for my dumb arse question but would this work for Vbgallery (made by photopost)
i know it says photopost pro just trying my luck here ;)
As you said: Photopost Pro, not vBG.
Worlocked
08-04-2009, 08:43 AM
That would be possible, but for your problem I'd say it would be the wrong path. In your place, I'd decide which URL I want to use, and then implement a 301-redirect via htaccess to redirect the other. This way, you get the "wrong" URLs out of the search engines.
I actually tried that before, but I couldn't come up with any redirect rules that would accomplish it.
klaush
09-01-2009, 01:51 PM
Have to uninstall this because of this issue (http://www.photopost.com/forum/photopost-pro-bug-reports/140738-photo-options-issue.html#post1252094).
Any idea what causes this error?
cellarius
09-01-2009, 02:27 PM
I cannot reproduce this and have not the slightest clue how this mod would cause this. It does not even touch anything inside Photopost; it's only active in the vB wrapper, and there only inserts one line into the html head based on the URL used to call the page. Not even the picutreid is taken from PP but determined from the variable. In fact, none of the PP stuff is even available or active for my plugin - it's all out of scope. It's basically the same as if you wrote a line of text into the template directly - that would not break a menu.
i was about to install this today but i found out its already integrated in the new photopost 7
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.