Vendor
MindTouch
Type Script
Categories Communication
Requires Deki Wiki 1.9.0b or later
Status Stable
License Free/Open Source
Manifest http://scripts.mindtouch.com/skype.xml

 

Table of Contents

Description

This extension allows you to embed Skype action buttons.

See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.


Functions

skype.add(user) : xml

Embed a Skype add button.

Parameters:

NameTypeDescription
userstrSkype user name.


skype.call(user) : xml

Embed a Skype call button.

Parameters:

NameTypeDescription
userstrSkype user name.


skype.chat(user) : xml

Embed a Skype chat button.

Parameters:

NameTypeDescription
userstrSkype user name.


Script Source

<extension>
  <title>Skype Extension</title>
  <label>Skype</label>
  <copyright>Copyright (c) 2006-2009 MindTouch, Inc.</copyright>
  <description>This extension allows you to embed Skype action buttons.</description>
  <uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/Skype</uri.help>
  <namespace>skype</namespace>

  <requires host="Deki Wiki 1.9.0b" />
  
  <function>
    <name>call</name>
    <description>Embed a Skype call button.</description>
    <param name="user" type="str">Skype user name.</param>
    <return type="xml">action(args.user, 'call')</return>
  </function>

  <function>
    <name>add</name>
    <description>Embed a Skype add button.</description>
    <param name="user" type="str">Skype user name.</param>
    <return type="xml">action(args.user, 'add')</return>
  </function>

  <function>
    <name>chat</name>
    <description>Embed a Skype chat button.</description>
    <param name="user" type="str">Skype user name.</param>
    <return type="xml">action(args.user, 'chat')</return>
  </function>

  <function>
    <access>private</access>
    <name>action</name>
    <description>Embed a Skype chat button.</description>
    <param name="user" type="str">Skype user name.</param>
    <param name="action" type="str">Skype user name.</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <head>
          <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js" />
        </head>
        <body>
          <a rel="custom" eval:href="'skype:' .. uri.encode(args.user) .. '?' .. uri.encode(args.action)">
            <img eval:src="'http://mystatus.skype.com/mediumicon/' .. args.user" style="border: none; width: 26px; height: 26px;" alt="Skype Me" />
          </a>
        </body>
      </html>
    </return>
  </function>
</extension>




 

Tag page
You must login to post a comment.