Extension:ICQ

This is the simplest extension ever.... but it works ;) It will give out your current ICQ-Status in a small graphic and a Link to your Web-Profile.

The $img=21 in the url sets the type of image...ICQ has prepared some real ugly ones. I think number 21 fits best. Example setHook( "icq", "ICQfunction" ); }
 * 1) Usage: your UIN
 * 2) save it in your extensions-folder
 * 3) include("extensions/icq.php");

function ICQfunction( $input, $argv ) { if ( !is_numeric( $input ) ) return "";

$output = "";

return $output; } ?>

=ICQ Status=

The ICQ Button rendered inside MediaWiki
 * syntax:" "
 * ICQ Privacy: To enable your status to be shown online please select


 * Main->Preferences->General there is a button called "Allow others to view my Online/Offline status from the Web". Enable it

Use Extension Talk:ICQ for feedback

see http://www.thebigguy.co.uk/code/mediawiki/icq/code.htm for highlighted code setHook( "icq", "RenderICQ" ); } // the function that reacts to " " function RenderICQ( $input, $argv ) { // set your defaults for the style and action (0 to 26) (add)

$style_default = "1" ; $action_default = "add" ; // the varibles are: $input

// test to see if the optinal elements of the tags are set and supported. if not set them to the defaults

if( isset( $argv['style'] ) ){ $style = $argv['style'] ; if( !($style >= "0" AND $style <= "26") ){ $style = $style_default ; }       } else { $style = $style_default ; }       if( isset( $argv['action'] ) ){ $action = $argv['action'] ; if( !($action == "add") ){ $action = $action_default ; }       } else { $action = $action_default ; } // set the url to the image and the stype of the image

$image = ' ' ; // start the rendering the html outupt

$output = ''; $output .= ''.$image.''; $output .= '';

// send the output to MediaWiki return $output; } ?>

Installation
Now you can use the extension with  ICQ number  in the wiki
 * 1) Copy the code into a file (e.g. icq.php)
 * 2) Save the file in the extensions directory of your mediawiki folder
 * 3) Add the line   to the end of your LocalSettings.php file

Example
See an example of this add-on in action at: Cubic Path Wiki (run by the author of the AIM extension)