PDA

View Full Version : Board Optimization - Canonical URLs For CLogic SEO


binaryg
08-03-2009, 10:00 PM
Canonical URLs for CLogic SEO
Released By - Binary Basketball Forums (http://www.binarybasketball.com/forums/)

I have written a plug-in for vBulletin that will add a canonical link for vBulletin forums using CLogic SEO (https://vborg.vbsupport.ru/showthread.php?t=217309). Currently, the aim of CLogic SEO is to provide a simple SEO solution for re-writing URLs which is good because the previous project (Zoints) had plenty of issues.

The Problem
While CLogic does a fantastic job writing URLs, it writes plenty of them. It's not CLogic's fault, or vBulletin's fault. Different threads can be accessed in different ways. If you are viewing a thread and you go to the new post you would either notice &goto=newpost somewhere in your URL. Unfortunately, while that's handy for users, it provides another URL for Google to see that has the same content. Google doesn't know which one to index or sees it as spam pages which devalues your ranking in search engines.

The Solution
Google, Yahoo, and those other guys all agreed to follow a standard to help them rank people. That they created the standard of using a link tag with the rel="canonical" attribute to tell search engines which URL is the URL that should be ranked.

Blog platforms already do this and some forums have started to do this as well. Unfortunately it hasn't caught on to everybody. While SEOvB Link Canonicalization (https://vborg.vbsupport.ru/showthread.php?t=205512) is a great plugin, it doesn't work with the CLogic re-written URL's.

Requirements
You must have C-Logic SEO installed and using it to re-write your URLs in order for this mod to work at this time. For the next release I plan to add more functionality to this mod. For now, DO NOT use this mod if you do not have C-Logic installed AND using it to rewrite your URLs or it.

Install Instructions
Upload attached product-bbcanonical.xml file to your vBulletin forums using the built in product manager

For a demo, you can check out Link Canonicalization for CLogic SEO (http://www.binarybasketball.com/forums/canonical-url-for-clogic-seo-t9553.html?p=182419#post182419) in action by viewing the source of that page. Notice the URL ends with arguments but the code inserted into the header is
<link rel="canonical" href="http://www.binarybasketball.com/forums/canonical-url-for-clogic-seo-t9553.html" />

This is my first hack for vBulletin but now that CLogic has resurrected a decent SEO program, I plan to release more SEO vBulletin hacks for those either unwilling or unable to pay for vBSEO.

Please mark installed to support this mod.

*Added dependencies to 1.1 (thanks NLP-er)

*Update to version 1.1
URL for page# > 1 points to the right direction

binaryg
08-04-2009, 11:23 AM
reserved

Arcade Fire
08-04-2009, 12:49 PM
Fatal error: Call to undefined function cseo_url_thread() in /home/********/public_html/beta/global.php(400) : eval()'d code on line 1

binaryg
08-04-2009, 01:31 PM
Do you have C-Logic SEO installed?

mabersoft
08-04-2009, 03:01 PM
Great, gona try it out.

Installed.

jaredwilli
08-04-2009, 03:17 PM
doesnt work

Fatal error: Call to undefined function cseo_url_thread() in /*************/forums/global.php(400) : eval()'d code on line 68

binaryg
08-04-2009, 04:09 PM
At the moment, this only works for forums with C-Logic SEO re-written URLs

Do you have that installed?

BlueNinjaGo
08-04-2009, 04:56 PM
Suggestion: Create a "Requirements" section in the first post.

binaryg
08-04-2009, 05:04 PM
Thank you, added

NLP-er
08-05-2009, 12:08 AM
At the moment, this only works for forums with C-Logic SEO re-written URLs

Do you have that installed?

It is possible to describe in product file dependencies - so if someone will not have C-Logic SEO he will not be able to install your mod (just get appropriate info that he needs mod C-Logic SEO).

Use just after tag <versioncheckurl>:

<dependencies>
<dependency dependencytype="product" parentproductid="SET_ID_OF_C_LOGIC_SOE" minversion="SET_MIN_C_LOGIC_SEO_VERSION" maxversion="" />
</dependencies>


And your problems will gone :D

Serenity278
08-08-2009, 05:58 AM
Works great but there seems to be a phrase or something missing. Because in the vboptions there is a blank spot where the option should be.

RedeemedWarrior
08-08-2009, 06:03 AM
i concur with the user above same issue

binaryg
08-12-2009, 02:30 AM
I am aware of that. I am developing the code to include a section in ACP where you can set up the mod for use on both C-Logic SEO rewritten URLs and standard vBulletin rewritten URLs and I took NLP-er's advice and quickly threw the product file dependencies in and uploaded the program. Well, I used the current code which doesn't have all of the options.

The blank space is there but doesn't do anything and is harmless. I realized this when I saw it in my forum but figured it was harmless and the next update will quickly take care of it.

I apologize for any confusion it may have caused.

The next release should be pretty soon and it will not depend solely on C-Logic SEO. As for the future options, I've extended the features of this mod on my forum to only display the rewritten URL to guests. I've also found modifications that use and display vBulletin URLs in their original form despite C-Logic rewriting them and I used the base of this code to fix those errors.

In the future releases, I hope to extend this code to become sort of a sister product of C-Logic because nobody should be satisfied with just using mod_rewrite to restructure their URLs. The effectiveness of URL structure has been debated by plenty of people and whatever your stance, it should not be the only search engine optimization you do for your site.

I love the direction dxlwebs is taking with his software and look forward to the sitemaps and linkback features he is working on. I'm just trying to do my small part to extend the search engine optimization of a standard vBulletin forum because I support free software and I believe that the paid options are over-priced.