[dokuwiki] Feedback on chat tempnt late
- From: "[list] Riny" <list@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 20 Nov 2005 23:16:00 +0100
Hi there,
I am trying to integrate a little (ajax) chat system in a DW template,
and I would like your response on this.
The reason why? I have a large community which I would like to have
instant access to some mechanism of talking about pages, or about the
community as a whole. The idea is that other (logged in) users can see
the behaviour of "online" users and are triggered to chat with them
about the wiki as a whole or about a page.
I prefer to use TW-CHAT JS library for it, but this didnt work for me,
so i got to jaxbox as a chat vehicle. Of course TW-SACK would be
preferred because it is used in ajax-search mechanism....
You can have a sneak preview on
http://riny.heijdendael.nl/chatwiki/doku.php
Please login with username = jan and password = cengik72
Is anyone currently working on a plugin or template with this
functionality? I'd be glad to hear from it. Any comment/suggestion is
highly appreciated.
CYa
Riny
------------
I adapted the tpl with some JS like :
<script type="text/javascript" charset="utf-8">
function togglechat() {
var src='<?php echo DOKU_TPL?>chatrq.php?usr=<?php print
$_SERVER['REMOTE_USER'] ?>&id=<? echo $ID ?>';
var chatinner='<iframe width="100%" height="300" frameborder="no"
name="chat" src="'+src+'"></iframe>';
document.getElementById('chat').innerHTML = chatinner;
var divstyle = document.getElementById( 'chat' ).style;
var showhide = (divstyle.display == 'none')?'inline':'none';
divstyle.display = showhide;
if (divstyle.display ==
'none'){document.getElementById('chat').innerHTML = ''; }
}
</script>
and a div like
<!-- chat -->
<?php if (isset($_SERVER['REMOTE_USER'])){?>
<acronym title="Toggle chat" onclick="togglechat(); return false;"
>Chat</acronym>
<? } ?>
<!-- end chat -->
This calls an Iframe with the chat functionality.
Currently it is only working on firefox, I encounter some problems on IE.
I would really like some feedback on it.
Thank you
Riny
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts:
- » [dokuwiki] Feedback on chat tempnt late