Revision history for JabberPresence


Revision [23005]

Last edited on 2016-05-20 07:38:44 by PivWan [Replaces old-style internal links with new pipe-split links.]
Additions:
Idea taken from [[http://wiki.crao.net/index.php/JabberPr%E9sence?redirectfrom=JabberPresence | CraoWiki]], so "toute coincidence ne serait pas fortuite". It is based on [[http://edgar.netflint.net/index.php | Edgar]] script so will try to implement all its functionnalities.
Deletions:
Idea taken from [[http://wiki.crao.net/index.php/JabberPr%E9sence?redirectfrom=JabberPresence CraoWiki]], so "toute coincidence ne serait pas fortuite". It is based on [[http://edgar.netflint.net/index.php Edgar]] script so will try to implement all its functionnalities.


Revision [18478]

Edited on 2008-01-28 00:11:42 by PivWan [Modified links pointing to docs server]

No Differences

Revision [8975]

Edited on 2005-06-08 10:19:13 by PivWan [Code change to prevent cpu-load]
Additions:
echo $this->Action('{{image alt="Jabber status for '.$vars['jid'].'" title="Jabber status for '.$vars['jid'].'" url="'.$edgar_uri.'"}}');
Deletions:
echo $this->Format('{{image alt="Jabber status for '.$vars['jid'].'" title="Jabber status for '.$vars['jid'].'" url="'.$edgar_uri.'"}}');


Revision [8972]

Edited on 2005-06-08 10:14:43 by PivWan [ypot]
Additions:
>> Version: **0.5**>>
It's very simple, as this is my first action.
Deletions:
It's very simple, as this is my first action. But


Revision [8971]

Edited on 2005-06-08 10:12:12 by PivWan [Adding code and example]
Additions:
""{{jabberpresence jid="wikka@jsnx.com" iconset="phpbb" type="html" iconset="phpbb"}}""
and result of this will be:
**wikka@jsnx.com/Psi** {{image alt="Jabber status for wikka@jsnx.com" title="Jabber status for wikka@jsnx.com" url="http://edgar.netflint.net/iconsets/phpbb/available.gif"}}
===The code===
%%(php)
<?php
/**
* Jabber Presence Action
* Displays selected user jabber status.
*
* @version 0.5
* @filename: jabberpresence.php
* @author: PivWan (based on a CraoWiki plugin)
* @email: pivwan@gmail.com
* @date:
* @license: GPL
*
* @description: A small action (first one) to display your jabber status (any server) on wikka.
* @usage: insert {{jabberpresence jid="jid@server.net"}}
* @param jid (required): user's jid
* @param type (optionnal): displays status as image, text or both (default: both). Allowed values are "image", "text" and "html"
* @param iconset (optionnal): if type=image or html, displays icon from selected iconset (see edgar's homepage or wikka for examples) (default gabber)
*/
// If you're using your own edgar install, change URI below
$base_edgar_uri = "http://edgar.netflint.net/status.php";
// Default values.
(!empty($vars['type'])) ? $type=$vars['type']: $type="html";
(!empty($vars['iconset'])) ? $iconset=$vars['iconset']: $iconset="gabber";
// jid is required!
if($vars['jid']!='' && !empty($vars['jid']))
{
$edgar_uri = $base_edgar_uri."?jid=".$vars['jid']."&type=".$type."&iconset=".$iconset;
if($type!='image')
echo file_get_contents($edgar_uri);
else
{
echo $this->Format('{{image alt="Jabber status for '.$vars['jid'].'" title="Jabber status for '.$vars['jid'].'" url="'.$edgar_uri.'"}}');
}
}
else
{
echo "No JID defined.";
}
?>
%%
It's very simple, as this is my first action. But
Deletions:
""{{jabberpresence jid="wikka@jsnx.com" iconset="phpbb"}}""


Revision [8474]

Edited on 2005-05-25 18:57:23 by PivWan [Adding iconset list]
Additions:
""{{jabberpresence jid="wikka@jsnx.com" iconset="phpbb"}}""
===Available iconsets===
- gabber: {{image url="http://edgar.netflint.net/iconsets/gabber/available.gif"}}
- stellar: {{image url="http://edgar.netflint.net/iconsets/stellar/available.gif"}}
- dudes: {{image url="http://edgar.netflint.net/iconsets/dudes/available.gif"}}
- icq: {{image url="http://edgar.netflint.net/iconsets/icq/available.gif"}}
- licq: {{image url="http://edgar.netflint.net/iconsets/licq/available.gif"}}
- phpbb: {{image url="http://edgar.netflint.net/iconsets/phpbb/available.gif"}}
- invision: {{image url="http://edgar.netflint.net/iconsets/invision/available.gif"}}
- frickenhuge: {{image url="http://edgar.netflint.net/iconsets/frickenhuge/available.gif"}}
Deletions:
""{{jabberpresence jid="pseudo@rahan.crao.net" iconset="phpbb"}}""


Revision [8376]

Edited on 2005-05-22 10:34:41 by PivWan [Adding iconset list]
Additions:
----
CategoryUserContributions


Revision [8375]

The oldest known version of this page was created on 2005-05-22 10:33:31 by PivWan [Adding iconset list]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki