Spip Loves Twitter, a plugin for Spip

14 July 2009 // 0 comments // World Wide Web  // previous  // next

Welcome on the official “Spip Loves Twitter”’s page for Spip.

Reminder : twitter is a micro-blogging platform. Friends and people are following you, and you do the same with others. You post messages that can’t exceed more than 140 characters long.
The other key feature with twitter is its ability to send free SMS when someone you follow updates its status. The SMS feature is only available for certain countries.

How it works : This plug-in has 2 modes.

  1. Manual mode : The plug-in acts like a gateway to twitter and you can send messages to twitter like if you were connected to the official twitter web site. This is done by accessing the plug-in interface.
  2. Auto mode : Your messages are generated based on a mask with pre-defined tags. When you article goes online, the message is generated and sent to twitter.
    These 2 modes use the Twitter API to send messages to the Twitter platform.

Configuration interface : It has been designed to be simple and efficient. Most of the fields are already preset with their default values.
This interface gives you the ability to shorten url via is.gd service.
You can also review the latest published messages and for generated messages, you can post then again (re-twit)

Online help : To make things easier, the interface comes with an online help. You can also check the connectivity with twitter.

Configuration interface

Tag (a.ka. “balise”) : To work properly, the plug-in must be linked to your templates. #SPIPLOVESTWITTER is a dynamic tag. You can use it with or without parameters depending n your needs.

Parameters :

  • process=(oui*|non) : Specifies if the plug-in has to search for an article to published a message on twitter. By default, this parameter returns nothing.
  • item=(url|followers) : If “url” is used, the tag will return the url to your twitter homepage. If “followers” is used, it will returns the number of people following your twitter feed.
    If you use the tag with no parameter, it’s equivalent to use it with ’process=oui’. Both parameters can be combined. together.

Exemples :

  • [(#SPIPLOVESTWITTER{process=oui})]

Post a message if one is available. Returns nothing.

  • [(#SPIPLOVESTWITTER{process=non,item=followers})]

Doesn’t publish any messages, displays on the number of followers.

  • [(#SPIPLOVESTWITTER{process=oui,item=url})]

Post a message if one is available and return the url associated to your twitter homepage.

It’s important to use the tag with ’process=oui’ if you want automatique messages to be published.


If you find a bug or you have a trouble to use this plug-in, please check this website and the comments to find a similar problem. Maybe someone already had the same issue.

If you think it’s a new bug, please provide the following information :

  • plug-in version
  • spip version
  • php version
  • a detailled report of your problem
  • an error message if you have one
  • a procedure step-by-step to reproduce the problem

As I work on this plug-in for free and for my own pleasure, I will NOT treat messages with only an error message and no other information. Please do not use txt words and be polite.


Changes in version 1.1.x :

  • Version 1.1.2 (8 August 2009)
    • The plugin can be setup only by an admin
  • Version 1.1.1 (14 July 2009)
    • Plug-in state set to stable
    • Added a missing label for English language
  • Version 1.1 (21 June 2009)
    • Port to Spip 2.0
    • Additionnal check for PHP 5.1
    • Minor bugs fixed
    • Database access are now done via Spip abstraction layer.
    • Fixed a bug in the twitter API
      GZ - 36 kb
      spiplovestwitter-1.1.2.tar.gz
      Compatible Spip 2.0.x

Changes in version 1.0.x :

  • Version 1.1.2 (8 August 2009)
    • The plugin can be setup only by an admin
  • Version 1.0.1 (14 July 2009)
    • Update of twitter class
    • Fixed a php warning in the configuration interface
    • Plug-in state set to stable
  • Version 1.0 (25 August 2008)
    • Initial version
      GZ - 34.9 kb
      spiplovestwitter-1.0.2.tar.gz
      Compatible Spip 1.9.x

Archives :

GZ - 0 bytes
spiplovestwitter-1.0.1.tar.gz
Compatible with Spip 1.9.x
GZ - 0 bytes
spiplovestwitter-1.1.1.tar.gz
Compatible with Spip 2.0.x
GZ - 0 bytes
spiplovestwitter-1.1.tar.gz
Compatible with Spip 2.0.x
GZ - 0 bytes
spiplovestwitter-1.0.tar.gz
Compatible with Spip 1.9.x

No comments at the moment. [+]