Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Photopost Pro Canonical Links Tag for SEO Details »»
Photopost Pro Canonical Links Tag for SEO
Version: 1.00, by cellarius cellarius is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.2 Rating:
Released: 04-29-2009 Last Update: 04-29-2009 Installs: 32
Uses Plugins Template Edits Auto-Templates
 
No support by the author.

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)

Download Now

File Type: xml product-cel_photopost_seo_1-0.xml (3.1 KB, 132 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
m7sen

Comments
  #32  
Old 09-01-2009, 02:27 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #33  
Old 01-08-2010, 04:41 PM
thcf thcf is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i was about to install this today but i found out its already integrated in the new photopost 7
Reply With Quote
Reply

Thread Tools

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 11:28 PM.


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.03716 seconds
  • Memory Usage 2,236KB
  • Queries Executed 18 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (3)post_thanks_box
  • (1)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete