identi.ca badge update

I've just done an interessant update on my fork of the official identi.ca badge. Remember, I modified it in order to add more parameters to the script -- in fact a language parameters (for now just fr or en) and colour parameters.

Today I wanted to display only _my_ statuses and not my friend's statuses... and discovered the original script doesn't permit this! So I modified a bit more the script and voilà it's cooked!

How to use it ?

You just have to put the following code on your site :


<script type="text/javascript" src="identica.js">
 <!--
  {
    "user":"milouse", // Your username
    "server":"identi.ca",
    "width":"220px",
    "height":"300px",
    "background":"transparent",
    "border":"0",
    "userColor":"#93B300",
    "headerBackground":"transparent",
    "headerColor":"#ffffff",
    "headerText" : "Last statuses",
    "evenBackground":"transparent",
    "oddBackground":"transparent",
    "thumbnailBorder":"1px solid #93B300",
    "lang":"fr", // just "en" or "fr" for now
    "numberofitem":3 // number of items to display
  }
  -->
</script>

en, code, identi.ca

Publié par milouse le mardi 18 mai 2010 à 15:45:00

page suivante