Sidewiki blocker for Joomla: anyone care to beta test?
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
Roger Willcocks
L-Space Design
Please vote to help me win a 3kW solar array
:)
Reduce stress | Stay focused | Keep positive and balanced
Reduce stress | Stay focused | Keep positive and balanced