Rizon IRC Network
Welcome Guest, please login or register.
[Main Page]

Main Page | Recent changes | Edit this page | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

Rizon has worked with Mibbit.com to enable users to add webchat to their channel pages easily, without worrying about annoying java popup or bans for having too many people connected.


You can create a link to a new window, or embed the chat right into your website.

For a link:


<a href="http://embed.mibbit.com/
?server=mibbit.rizon.net
&nick=WebChat...
&channel=%23yourchannelhere
&chatOutputShowTimes=true
&needSendButton=true" 
target="_blank">start chat on Rizon</a>
 

Note: %23 replaces the # in your channel name.


Here's an example on how you would integrate an iframe onto your website:

First create webchat.php:

<?PHP
 // default: irc.mibbit.com 
 $server = 'irc.freenode.net'; 
 $room   = 'test'; // w./o. # or %23 !
 $uri    = 'http://embed.mibbit.com/'
 . '?forcePrompt=true&nick=prefix_' . mt_rand(10000, 99999)
 . '&needSendButton=true'       // some mobile phones need it
 . '&tabFontFamily=verdana,sans-serif'
 . '&chatOutputShowTimes=true'; // type /dset for more settings
 if (!empty($room))    {$uri .= '&channel=%23' . $room;}  
 if (!empty($server )) {$uri .= '&server='     . $server;}  
?><html>
<head><title>my chat on <?php echo empty($server)  ? 'irc.mibbit.com' : $server; ?></title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<style>
body{font:93% verdana,sans-serif;background:#999;color:#fff;}
iframe{width:96%;height:75% /* % doesn't work in strict mode*/;}
</style>
</head>
<body><center>
<h3>IRC server: <?php echo empty($server) ? 'irc.mibbit.com' : $server; ?></h3>
(start channel: <?php echo empty($room)   ? '#chat' : '#' . $room; ?>)
<iframe  src="<?PHP echo $uri; ?>" frameborder="0"></iframe>
 [Your user agent does not support frames or is currently configured
 not to display frames. However, you may want to open the
 <A href="<?PHP echo $uri; ?>"
 target="_blank"> chat in a new browser window ...</A>]
</iframe>
<br>(no spaces, interpunctuation or leading ciphers in your /nick name)
<h4>type /help to learn about available commands</h4>
</center></body></html>

 

Then add into your webpage: <a href="webchat.php" target="_blank">WebChat</a>

If you link/open this in a new window you avoid unintentional leaving the chat when hitting the back button/key.

For more information and an example, see http://media.mibbit.com/widget.php

Retrieved from "http://www.rizon.net/wiki/index.php/Webchat"

This page has been accessed 549 times. This page was last modified 16:40, 23 April 2008.