Skype extension: Difference between revisions
Content deleted Content added
m Skype moved to Skype extension |
m {{MovedToMediaWiki}} |
||
(28 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
{{MovedToMediaWiki|Extension:Skype}} |
|||
=Skype Button= |
|||
History imported. [[User:IAlex|<b><font color="#66A7CC">i</font><font color="#9966CC">Alex</font></b>]] 19:02, 8 November 2007 (UTC) |
|||
My first extension so sorry if there are errors. It will only get better with feedback |
|||
<pre> |
|||
<?php |
|||
$wgExtensionFunctions[] = "wfskype"; |
|||
function wfSkype() { |
|||
global $wgParser; |
|||
$wgParser->setHook( "skype", "renderSkype" ); |
|||
} |
|||
# The callback function for converting the input text to HTML output |
|||
function renderSkype( $input, $argv ) { |
|||
# $argv is an array containing any arguments passed to the extension like <example argument="foo" bar>.. |
|||
$output = '<!-- Skype "My status" button http://www.skype.com/go/skypebuttons -->'; |
|||
$output .= '<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>'; |
|||
$output .= '<a href="skype:'; |
|||
$output .= $input ; |
|||
$output .= '?call">'; |
|||
$output .= '<img src="http://mystatus.skype.com/bigclassic/'; |
|||
$output .= $input ; |
|||
$output .= '" style="border: none;" width="182" height="44" alt="My status" /></a>'; |
|||
return $output; |
|||
} |
|||
?> |
|||
</pre> |
|||
== Installation == |
|||
# Copy the code into a file (e.g. skype.php) |
|||
# Save the file in the ''extensions'' directory of your mediawiki folder |
|||
# Add the line <code>include('extensions/skype.php');</code> to the '''end''' of your LocalSettings.php file |
|||
Now you can use the extension with ''<skype>Skype-Username</skype>'' in the wiki |
|||
[[Category:Mediawiki Extensions]] |
Latest revision as of 19:02, 8 November 2007
This page has been moved to Extension:Skype on mediawiki.org.
Any modifications or additions to this page should be made on mediawiki.org instead. |
History imported. iAlex 19:02, 8 November 2007 (UTC)