summaryrefslogtreecommitdiff
path: root/doc-src/badge
blob: 98cdcfce273934202181dca4072cf4d67277b687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!-- Copyright 2008-2010 StatusNet Inc. and contributors. -->
<!-- Document licensed under Creative Commons Attribution 3.0 Unported. See -->
<!-- http://creativecommons.org/licenses/by/3.0/ for details. -->

Install the %%site.name%% badge on your blog or web site to show the latest updates 
from you and your friends!

<MTMarkdownOptions output='raw'>
<script type="text/javascript" src="http://identi.ca/js/identica-badge.js">
{
   "user":"kentbrew",
   "server":"identi.ca",
   "headerText":" and friends"
}
</script>
</MTMarkdownOptions>

Things to try
--------------

* Click an avatar and the badge will refresh with that user's timeline
* Click a nickname to open a user's profile in your browser
* Click a notice's timestamp to view the notice in your browser
* @-replies and #tags are live links

## Installation instructions 

Copy and paste the following JavaScript into an HTML page where
you want the badge to show up.  Substitute your own ID in the user
parameter.

<pre>
	&lt;script type=&quot;text/javascript&quot; src=&quot;http://identi.ca/js/identica-badge.js&quot;&gt;
	{
	   &quot;user&quot;:&quot;kentbrew&quot;,
	   &quot;server&quot;:&quot;identi.ca&quot;,
	   &quot;headerText&quot;:&quot; and friends&quot;
	}
	&lt;/script&gt;

</pre>



Valid parameters for the badge:
-------------------------------

* user : defaults to 7000 (@kentbrew)
* headerText  : defaults to empty
* height : defaults to 350px
* width : defaults to 300px
* background : defaults to #193441. If you set evenBackground, oddBackground,
  and headerBackground, you won't see it at all.
* border : defaults to 1px solid black
* userColor : defaults to whatever link color is set to on your page
* headerBackground : defaults to transparent 
* headerColor :  defaults to white
* evenBackground : defaults to #fff
* oddBackground : defaults to #eee
* thumbnailBorder : 1px solid black
* thumbnailSize : defaults to 24px
* padding : defaults to 3px
* server : defaults to identi.ca

Licence
-------

Identi.ca badge by [Kent Brewster](http://kentbrewster.com/identica-badge/). 
Licenced under [CC-BY-SA-3](http://kentbrewster.com/rights-and-permissions/).