Plugin: KCA 1.8
Thursday, August 11th, 2005Another KCA 1.8 plugin update has just been released for Wordpress (Download). This release sees a couple of new features added which will make importing/exporting/copying of data in the plugin that much easier.
So, if you have a nifty mini script and want to share with someone else, all you need to do is copy the pre-formatted data from the KCA clipboard and pass it onto the other person to import into their KCA database with just one (or two) clicks.
Apart from WP 1.5.1.3, KCA has also been developed on the nightly build “1.6-ALPHA-2-still-dont-use”. It so far behaves pretty well with the new tinyMCE editor interface. You can even add a new Quicktags bar to the tinyMCE bar (I’ve included an example of this).
With this plugin you could add almost anything anywhere via the DOM, but without having to edit those pesky source files.
All configuration is done in the Admin section and all data is saved to the database. The best thing about this version is being able to import and export configuration snippets.
By way of a demo, here’s a little snippet you could copy and paste into the clipboard section. Make sure you change
Updated: The formatting of the snippet below reflects this update, so please download the latest version now!
Look up at the Admin menu. You will notice a live clock displayed there. Cool huh?
This was just a simple demo that I wrote up in five minutes, but there are a lot of more interesting things you could do with KCA once you understand it’s capabilities.
By the way, in order to use KCA you do not need to hand type out the above and import it into KCA. The configuration code you see was generated by KCA.
Here’s an explanation of what I filled out in the Admin->Manage->KCA page:
- Description: A reminder of the function of this set. (optional)
- Needle: URL fragment defining the pages this set will operate on. So, in this case all pages with “wp-admin” in the URL will have this content set added to it. (optional, empty = all pages)
- Reference: ID of point to insert the data. In this case wp-admin. This ID can be found by viewing the source of the page you want to operate on. (optional)
- Location: If ID is specified, where should the data be inserted in relation to the ID? (Default = beforeBegin)
- Content: HTML content to display at the ID specified. (optional)
- Script: Client side script to do interesting things to the content. (optional)
- Active: Activate the current set or not. (Default = false)
After filling the fields out, I hit the “Copy” button. This copies the data to the KCA clipboard. From there I just copy and pasted the data here. I could have used the “Export” button, but this would copy all data for every set to the clipboard.
Obviously, if you wanted to do a little bit more than just add a button here and a link there, you will need to know a little programming (mostly client side scripting), but you don’t have to be a guru to get it working.
The reason I originally wrote this plugin was so I could add some custom quick links to my pages, but then I found there’s a lot more I could add, and so it grew. Now I use it to the “Live Preview” you see on my comment pages, the tooltips you see popping up over links, Quicktag buttons, Admin menu buttons etc.
Why do I use this plugin? The main reason I use it is because I don’t like to scan through core files just to customise something to my liking. This plugin lets you customise your WP experience, and saves the settings in the database. When you upgrade WP, all those settings will still there. Even if you need to change something, it’s a lot more simple than hard coding the source files.
Well, all that sounds complicated, but it’s not. Really!
Enjoy!










