Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 09-30-2009, 09:49 AM   #1
Warrior Member
War Room Member
 
Join Date: Jul 2009
Location: Germany
Posts: 26
Thanks: 3
Thanked 9 Times in 6 Posts
Default Sidewiki blocker for Joomla: anyone care to beta test?

You've probably seen the raging debates about Sidewiki going on here.

Steve Diamond was kind enough to release an open source Javascript solution that seems to work pretty well:
http://www.warriorforum.com/main-int...ml#post1227453

Since he made it a GPL project, I took the liberty of wrapping this thing up in a Joomla plugin, all ready to install with no manual coding required.

Pros:

1) You don't have to change a single line of code in your template. The tool is designed as a Joomla system plugin that will automatically load Steve's Javascript in the "head" section, regardless which template you are using.

2) It checks the user agent for the string "/GTB6/i" so that only users with the Google toolbar installed will experience the hashed URLs. Other users won't notice anything.

Cons:

1) I'm not much of a PHP programmer. But since this is a pretty basic plugin, it should work as I didn't have much chance to break things.


Note: This plugin will work under Joomla 1.5.x ONLY. Not on the 1.0.x series. And I didn't test legacy mode since you shouldn't use it anyway.

Usage:

1) Install it as you would install any other extension, i.e. via 'Extensions -> Install/Uninstall'.

2) Go to 'Extensions -> Plugin Manager' and find the entry named 'Sidewiki Defeat Plugin for Joomla'. Activate it. (Don't skip this step, it won't work otherwise.)

That's it, you're done.

Some caveats and recommendations:

I threw this up in a hurry and wasn't able to do much testing myself. On my local install, it seems to work fine.

1) I have no idea if the plugin works with 3rd party extensions. Please give feedback. Don't use on business-critical sites for now.

2) I would like to hear feedback from you on sites where Joomla is installed
- in the root
- on a subdomain
- in a subdirectory.

3) I don't know if it works on PHP4 (again, something you shouldn't use). I tested on PHP5 only.

4) I tested on the latest Joomla version 1.5.14 only. If I recall correctly, there was a bug in versions around 1.5.6 - 1.5.8 that concerned system plugins. But these versions are heavily outdated and insecure anyway.

5) I tested with SEF URLs on, and with SEF URLs off. Seems to work fine in both cases. Please check this as well.

If you decide to take it for a spin, please give feedback in this thread. I'm a bit short on time but will take a look in here every now and then. If all goes well, I'll set up a small project site.

License:

The plugin is GPL and has credits to Steve for his original JS work all over the place.

Thanks in advance and kind regards,
Zorro
Attached Files
File Type: zip sidewikidefeat.zip (2.4 KB, 13 views)
ZorroCat is offline   Reply With Quote
Old 10-01-2009, 06:33 AM   #2
Warrior Member
War Room Member
 
Join Date: Jul 2009
Location: Germany
Posts: 26
Thanks: 3
Thanked 9 Times in 6 Posts
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Hmmm ... I guess Joomla is not that popular among warriors after all.

I put the thread here in this subforum since to me, it was a programming topic. Might have been a better idea to post over in the Main Internet Marketing Discussion Forum maybe where all the debate is happening?

Kind regards,
Zorro
ZorroCat is offline   Reply With Quote
Old 10-01-2009, 10:07 AM   #3
Morné Zeelie
War Room Member
 
holla22's Avatar
 
Join Date: Jul 2006
Location: , , South Africa.
Posts: 74
Thanks: 0
Thanked 6 Times in 6 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to holla22
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Here is a solution for everyone that does not use Joomla. You can download the Javacript from here sidewiki-defeat - Project Hosting on Google Code. Just follow the instruction in the javascript comments.

Hope it helps you.

Great Tutorials on WordPress development <a href="http://teachingyou.net/">Click Here</a>
holla22 is offline   Reply With Quote
Old 10-01-2009, 12:36 PM   #4
Warrior Member
War Room Member
 
Join Date: Jul 2009
Location: Germany
Posts: 26
Thanks: 3
Thanked 9 Times in 6 Posts
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Yes. This is the solution I'm integrating in Joomla here.

Kind regards,
Zorro
ZorroCat is offline   Reply With Quote
Old 10-02-2009, 01:56 AM   #5
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: May 2005
Location: Auckland, New Zealand.
Posts: 241
Thanks: 0
Thanked 13 Times in 12 Posts
Social Networking View Member's Twitter Profile 
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Quote:
Originally Posted by holla22 View Post
Here is a solution for everyone that does not use Joomla. You can download the Javacript from here sidewiki-defeat - Project Hosting on Google Code. Just follow the instruction in the javascript comments.

Hope it helps you.
Anyone else see the irony in hosting a project to block a Google "tool" on the Google code hosting service?

rwil02 is offline   Reply With Quote
Old 10-02-2009, 09:47 AM   #6
Personal hygiene coach
 
mojojuju's Avatar
 
Join Date: Aug 2005
Location: Potemkin Village
Posts: 1,083
Thanks: 268
Thanked 377 Times in 254 Posts
Social Networking View Member's Twitter Profile 
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Quote:
Originally Posted by rwil02 View Post
Anyone else see the irony in hosting a project to block a Google "tool" on the Google code hosting service?
Yeah, I think it's kind of funny.
mojojuju is online now   Reply With Quote
Old 10-02-2009, 12:26 PM   #7
Gold Nuggets Producer
War Room Member
 
Joe118's Avatar
 
Join Date: Jun 2009
Posts: 2,314
Blog Entries: 2
Thanks: 662
Thanked 2,171 Times in 389 Posts
Contact Info
Send a message via Skype™ to Joe118
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Nice! Is there a WP version of this?
Joe118 is offline   Reply With Quote
Old 10-02-2009, 01:06 PM   #8
Senior Warrior Member
War Room Member
 
Steve Diamond's Avatar
 
Join Date: Apr 2006
Location: Tucson, AZ, USA.
Posts: 1,025
Thanks: 120
Thanked 158 Times in 115 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Steve Diamond
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Quote:
Originally Posted by rwil02 View Post
Anyone else see the irony in hosting a project to block a Google "tool" on the Google code hosting service?
I'm glad someone got the joke.

Steve

Executive I.T. consulting for small/medium business
Website development | PHP - MySQL - JavaScript expert programming
Software requirements analysis | Specification writing
Project management | Vendor relationship management
Steve Diamond is offline   Reply With Quote
Old 10-02-2009, 01:08 PM   #9
Senior Warrior Member
War Room Member
 
Steve Diamond's Avatar
 
Join Date: Apr 2006
Location: Tucson, AZ, USA.
Posts: 1,025
Thanks: 120
Thanked 158 Times in 115 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Steve Diamond
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Quote:
Originally Posted by Joe118 View Post
Nice! Is there a WP version of this?
If enough people ask, I might make a WP plugin out of it. Or someone else can go for it, as ZorroCat did with Joomla. That's why I released it with an open source license.

Steve

Executive I.T. consulting for small/medium business
Website development | PHP - MySQL - JavaScript expert programming
Software requirements analysis | Specification writing
Project management | Vendor relationship management
Steve Diamond is offline   Reply With Quote
Old 10-03-2009, 10:59 PM   #10
Warrior Member
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Any comments on whether adding a unique hash to each URL will affect search engine rankings?
javawarrior is offline   Reply With Quote
Old 10-04-2009, 05:37 AM   #11
Warrior Member
War Room Member
 
Join Date: Jul 2009
Location: Germany
Posts: 26
Thanks: 3
Thanked 9 Times in 6 Posts
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Javawarrior,

it should not affect rankings since it all happens on the user's side.

The spiders don't interpret Javascript. They'll never see the effect of the script. Only a human user who, in addition, has the toolbar installed, will experience a hashed URL.

So I guess we're on the safe side here.

Kind regards,
Zorro
ZorroCat is offline   Reply With Quote
Old 10-04-2009, 05:47 AM   #12
HyperActive Warrior
War Room Member
 
Caragui's Avatar
 
Join Date: May 2009
Posts: 274
Thanks: 12
Thanked 27 Times in 27 Posts
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

Hope there would be a wordpress plugin to try.
Caragui is offline   Reply With Quote
Old 10-04-2009, 10:44 AM   #13
Warrior Member
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Sidewiki blocker for Joomla: anyone care to beta test?

You can use Steve's script in Wordpress by adding one line to your header.php file. Download the js file and put it in your WP root directory then add the following to the header.php file just below the <body> tag.
<?php if(preg_match("/GTB6/i",$_SERVER["HTTP_USER_AGENT"])) { echo "<script type='text/javascript' src='sidewiki-defeat.js'></script>";} ?>
This is how I have my site setup and it works very well. It only adds hashes to the url if the visitor has the latest GTB.
cs1380 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
beta, blocker, care, joomla, plugin, sidewiki

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 07:28 AM.