about
documentation for users
documentation for developers
downloads
powered by
*coming soon
home :: documentation :: users :: plugins.txt
Plugins
Blosxom sports a plugin architecture, allowing the core of Blosxom to remain small, sleek, and simpler-than-pie while providing room for extension and integration into different environments and uses.The Blosxom Plugin Registry...
Browse the Blosxom Plugin Registry for all your plugin needs. There is an ever-growing list of plugins developed by Blosxom users just like you. There are display plugins, fiddling with blog posts on the fly and providing additional template elements. Image plugins provide everything from convenient image references to resizing and creating an image gallery. Input plugins provide writebacks (comments and trackbacks), karma tracking, and email-to-blog gateways.Activate plugin support...
Activating plugin support in Blosxom is just a matter of creating a plugin directory in which to keep them and telling Blosxom where to find it.state directory as many plugins maintain
some files of their own and need a place to keep them.
Here are few reasonable suggestions for where to put your plugins:
data/blosxom/plugins directory in your
home directory is as good a place as any. If you have command-line access,
these commands should create the plugins and plugins/state directories, along with all the intermediate directories on the path:
mkdir -p ~/data/blosxom/plugins/state chmod -R 755 ~/data/blosxom/plugins/stateIf you only have FTP access, you should be able to create the
data/blosxom/plugins/state hierarchy from the comfort of your favourite FTP application./Library/WebServer/Data/Blosxom/Plugins. If you used the Blosxom for Mac OS X installer, all this has been taken care of for you; otherwise, launch the Terminal application (Applications > Utilities > Terminal) and type:
sudo mkdir -p /Library/WebServer/Data/Blosxom/Plugins sudo chmod -R 755 /Library/WebServer/Data/Blosxom/Plugins(You'll be prompted for your password, if any.)
c:\Inetpub\Data\Blosxom\Plugins\state from the Explorer.$plugin_dir configuration option in the blosxom.cgi script itself. Open up the Blosxom cgi script in your favourite text editor and find the following configuration section:
# --- Plugins (Optional) ----- # Where are my plugins kept? $plugin_dir = ""; # Where should my modules keep their state information? $plugin_state_dir = "$plugin_dir/state";Change the value of
$plugin_dir to reflect the location of the
plugin directory you just created in step 1. Assuming you followed the
advice above, here are the appropriate settings:
data/blosxom/plugins/state. For instance, if your home directory were /home/sam, your plugin configuration would read:
# Where are my plugins kept? $plugin_dir = "/home/sam/data/blosxom/plugins";
# Where are my plugins kept? $plugin_dir = "/Library/WebServer/Data/Blosxom/Plugins";
# Where are my plugins kept? $plugin_dir = "c:/Inetpub/Data/Blosxom/Plugins";
Install a plugin...
To install a plugin, simply copy it to yourplugins directory. Some plugins require minimal configuration; follow the author's instructions (usually at the bottom of the plugin file itself) if more appropriate.
Blosxom will automatically find and load your new plugin the next time you visit your blog.
Put your plugins in order...
Blosxom will automatically find, load, and call all plugins in the plugins it finds at appropriate junctures in its execution. It does so in alphanumeric order--config is loaded before sort_by_path which, in turn, loads before writeback.
If you'd like to control the order in which plugins load, prepend the filenames with numbers like: 00loadfirst, 50loadsometime, 99loadlast, and so forth.
Disable a plugin...
You can obviously disable a plugin by removing it from your plugin directory at any time. The preferred method, however, is to postfix it with an underscore, like so:someplugin becomes someplugin_ . This turns off the plugin yet while still being kept safe and sound in your plugin directory.