Extension:Yahoo

Please Upgrade to 1.0a or above from all version to prevent a XSS attack The Yahoo Button rendered inside MediaWiki Use Extension Talk:Yahoo for feedback
 * syntax:" "

setHook( "yahoo", "RenderYahoo" ); } // the function that reacts to " " function RenderYahoo( $input, $argv ) { // set your defaults for the style and action (addfriend, call or sendim) (0, 1, 2, 3 and 4)

$style_default = "2" ; $action_default = "sendim" ;

// escape $input to prevent XSS $input = htmlspecialchars($input) ; // 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" OR $style == "1" OR $style == "2" OR $style == "3" OR $style == "4" ) ){ $style = $style_default ; }       } else { $style = $style_default ; }       if( isset( $argv['action'] ) ){ $action = $argv['action'] ; if( !($action == "addfriend" OR $action == "sendim" OR $action == "call") ){ $action = $action_default ; }       } else { $action = $action_default ; } // set the url to the image and the style of the image switch( $style ){

case "0": $image = '' ; break; case "1": $image = '' ; break; case "2": $image = '' ; break; case "3": $image = '' ; break; case "4": $image = '' ; break;

} // 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  Yahoo-Username  in the wiki
 * 1) Copy the code into a file (e.g. yahoo.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)