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

 

Table of Contents

Description

This extension contains functions for embedding Gabbly widgets.

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


Functions

gabbly.chat(room, username, width, height, logo) : xml

Embed Gabbly chat widget.

Parameters:

NameTypeDescription
roomstr(optional) Chat room name. (default: "dekiwiki")
usernamestr(optional) User name. (default: automatic)
widthnum(optional) Width of chat widget. (default: 425)
heightnum(optional) Height of chat widget. (default: 350)
logouri(optional) Logo for chat room. (default: gabbly logo)


Script Source

<extension>
  <title>Gabbly Extension</title>
  <label>Gabbly</label>
  <copyright>Copyright (c) 2006-2009 MindTouch, Inc.</copyright>
  <description>This extension contains functions for embedding Gabbly widgets.</description>
  <uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/Gabbly</uri.help>
  <namespace>gabbly</namespace>
  
  <function>
    <name>chat</name>
    <description>Embed Gabbly chat widget.</description>
    <param name="room" type="str" optional="true">Chat room name. (default: "dekiwiki")</param>
    <param name="username" type="str" optional="true">User name. (default: automatic)</param>
    <param name="width" type="num" optional="true">Width of chat widget. (default: 425)</param>
    <param name="height" type="num" optional="true">Height of chat widget. (default: 350)</param>
    <param name="logo" type="uri" optional="true">Logo for chat room. (default: gabbly logo)</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <iframe 
            eval:src="'http://cw.gabbly.com/gabbly/cw.jsp?e=1&amp;dnc=true&amp;priv=on&amp;t=' .. web.uriencode(args.room ?? 'dekiwiki') .. '&amp;nick=' .. web.uriencode(args.username ?? '') .. '&amp;adurl=' .. web.uriencode(args.logo ?? 'http://home.gabbly.com/images/favicon.ico')"
            eval:width="web.size(args.width ?? 425)"
            eval:height="web.size(args.height ?? 350)"
            marginwidth="0"
            marginheight="0"
            hspace="0"
            vspace="0"
            frameborder="0"
            scrolling="no"
          />
        </body>
      </html>
    </return>
  </function>
</extension>


Samples

     Output

To embed the default chat widget:

{{ gabbly.chat() }}
./Gabbly1.JPG

To embed the chat widget using 'mindtouch' as the room name:

{{ gabbly.chat("mindtouch") }} 
./Gabbly2 (1).JPG

To embed the chat widget using the sitename as the room name and the logged-in user's name (deki users can see each other across all pages that have this widget embedded):

{{ gabbly.chat(site.name, user.name) }} 
./Gabbly3 (1).JPG

To embed a 800 by 600 chat widget using the sitename as the room name and the logged-in user's name (deki users can see eachother across all pages that have this widget embedded):

{{ gabbly.chat(site.name, user.name, 800, 600) }} 
./Gabbly4.JPG

    

Tag page
Viewing 2 of 2 comments: view all
Is Gabbly appropriate for secure, enterprise communications?
Posted 08:01, 21 Feb 2008
No, it's not. Gabbly sends everything in the clear via their own online servers. Also, you can assume any identity you want. The good thing about Gabbly is that it does not require registration or a complicated setup. It just works out of the box, which is great for adding a chatroom on a page of your wiki.
Posted 15:03, 21 Feb 2008
Viewing 2 of 2 comments: view all
You must login to post a comment.