NP_GoogleLiveChat.php

Using a SkinVar this plugin returns a link for guests to initiate a google live chat if you are currently logged into your Google Talk account.

General Plugin info
Author: Kogger
Current Version: 0.1
Download: http://kog.ca/kode/NP_GoogleLiveChat.zip 726bytes
Demo: http://kog.ca
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?t=17286

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin from the plugin admin menu

How to use the plugin

In order to use this plugin you must generate a badge for your particular Google Talk account. To do so simply visit the following URL:

http://www.google.com/talk/service/badge/New

The page will generate some badge code for you to use on your site if you want to display the standard Google talk badge. If you'd like to use this code to generate a simpler/custom link for your visitors to use then you will need to extract the badge ID from the generated code. The badge ID itself is the series of characters that can be found between ?tk= and the first following &

example:

<iframe src="http://www.google.com/talk/service/badge/Show?tk=z01q6amlqp4eghqqsd3dj9i18d9tnv177ukqaan271qnv4a7k914amah04kqe9d4eqcqlgmrme6k5n28v031q64lhn2dl34ncgdscqhgmg3er4hbgtop0bpp5ob0fbei16cdgdji3ro9uuthtre41grv1cjjo9oa0dvhgsdfg8&amp;w=200&amp;h=60" frameborder="0" allowtransparency="true" width="200" height="60"></iframe>

so in this case the badge ID is:

z01q6amlqp4eghqqsdgfd98dfnv177ukqaan271qnv4a7k914amah04kqe9d4eqcqlgmrme6k5n28v031q64lhn2dl34ncgdscqhgmg3er4hbgtop0bpp5ob0fbei16cdgdji3ro9uuthtre41grv1cjjo9oa0dvhgsdfg8

Now in order to use the plugin you should use the following syntax

<%GoogleLiveChat([badget Id],[online link text],[offline link text])%>

So in this particular example you would use the following:

<%GoogleLiveChat(z01q6amlqp4eghqqsdgfd98dfnv177ukqaan271qnv4a7k914amah04kqe9d4eqcqlgmrme6k5n28v031q64lhn2dl34ncgdscqhgmg3er4hbgtop0bpp5ob0fbei16cdgdji3ro9uuthtre41grv1cjjo9oa0dvhgsdfg8,Click to chat Live,I am offline)%>

Available SkinVars and/or TemplateVars

  • Skinvar <%GoogleLiveChat([badget Id],[online link text],[offline link text])%>

History

  • [Version 0.1, released 2008-04-18 ]
np_googlelivechat.txt · Last modified: 2008/04/19 13:07 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki