# identi.ca plugin to display the last status
## LICENCE
# Copyright 2009 by Olivier DOSSMANN (alias Blankoworld)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.If not, see
$IDENTICA_USER"
else
die "$nb_plugin: $plugins_abort"
fi
## HOWTO by Denis BERNARD
# This plugin displays messages less than 140 characters provided from the microblogging site "identi.ca" .
#
# 1. Put this script inside the directory "plugins"
#
# 2. Enter: "nb -b /path/to/my/nanoblog/plugins configure"
#
# 3. Append lines bellow (uncomment and fill accordingly) to the setting file:
#
# --- Identi.ca plugin settings ---
#IDENTICA_CMD="curl" # program used to retrieve identi.ca status
#IDENTICA_OPTS="-s" # some options of the IDENTICA_CMD program
#IDENTICA_URL="http://identi.ca/api/users/show" # url for having the last status
#IDENTICA_FORMAT="xml" # format used on identi.ca
#IDENTICA_LINK="http://identi.ca/$IDENTICA_USER"
#IDENTICA_USER="foo" # your id on identi.ca
#IDENTICA_TITLE="identi.ca status" # title to display on your homepage (or some else)
#
# 4. Explanations:
#
# IDENTICA_CMD : command used for retrieving the web page holding your status' information status
# IDENTICA_OPTS : list of parameters for the command (for example, the "-s" mean silent mode, no output)
# IDENTICA_URL : address of the page to retrieve
# IDENTICA_FORMAT : format of the file (could be XML, JSON or others)
# IDENTICA_LINK : direct link to the page holding your whole status. This is to be displayed.
# IDENTICA_USER : your nickname over the service called. Here:"foo".
# IDENTICA_TITLE : title to give to introduce your status on your home's page.
#
# 5. Inside the template: "templates/main_index.htm"
#
# Insert:
#