Skype

Installation

Follow these steps to install this script on your wiki.

  1. Go to Service managmenent inside the Control Panel.
  2. Under Add Service, click Local and select type Extension.
  3. Enter a descriptive name and the SID: sid://mindtouch.com/2007/12/dekiscript
  4. Add "manifest" to the config section with value set to http://scripts.mindtouch.com/skype.xml
  5. Add extra configuration values as listed below under Configuration (If Configuration is not listed below, ignore this step.)
  6. Click on add service.

Related Links: DekiScript service, Extension Overview, DekiScript Overview, Extension Demos.


Overview

This extension allows you to embed Skype action buttons. This script requires Deki Wiki 1.9.0b or later.

Functions:

  1. skype.add
  2. skype.call
  3. skype.chat

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.


Source Code

<extension>
  <title>MindTouch Skype Extension</title>
  <label>Skype</label>
  <copyright>Copyright (c) 2008 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.
Powered by MindTouch Deki v.8.08