mikelietz dot org

coded by mikelietz

 

____  _____  _____  _____  
 /  __|/  _  \|  _  \|  ___| 
(  (__(  (_)  ) |_\  \  ___| 
 \____|\_____/|______/_____|

geotags plugin for habari

Habari? What's that?

Habari is an open-source next-generation blogging platform that is actively developed and enhanced by a community of developers and users. It can be modified with plugins to extend its functionality.

What does this plugin do?

This plugin adds Geotagging metadata to the page header. Geotags let you specify location information for your blog.

Requirements

Using version 0.5 of Habari or later, all you need is this line somewhere in the <head> block of your theme.

$theme->header();

If you are using one of Habari's default themes, then you are already set.

Download

This will always link to the most recent version: geotags.zip

Installation and use

Unzip geotags.zip in /user/plugins. Then activate and configure it in the Plugins Admin page - you will need to know your latitude and longitude in decimal. To find them you can use My Geo Position.

Once the plugin is installed and configured, you're done. Your headers will now display your position like this (the location of my site):

<meta name="DC.title" content="mikelietz:fine whine"> <meta name="ICBM" content="40.076665, -82.95996"> <meta name="geo.position" content="40.076665, -82.95996">

What doesn't this plugin do?

This plugin only adds geotag information for the entire site - it does not allow individual posts or pages to have a different location. It does not register you with GeoURL or any other GeoTag index or communities. You will still need to submit your site if you want to be in their directories/databases.


Links

Questions and Comments

belong on the launch post, or can be directed to me via my contact page.

History

0.2 (4 June 2008): Updated to work with Habari 0.5's new FormUI.

0.1 (7 May 2008): Page created. Code is quite messy. Results adequate.