I have the perl version of a mod like this on my old boards, the java files are here,
http://new.gamesnet.net/Java/javaChat.ziphttp://new.gamesnet.net/chat.phpi made it compatible with
yabb.pl version, but im a little behind in php language, i tried to make my own mod for it but i fail everytime. this is a good java aplet, and it allows you to connect to any mIrc server and channel. the version of perl of mine that i made here is the code for the chat.php
sub chatirc{
$yytitle="WarcraftWars Chat";
$yymain .= qq~
<div align="center"><applet
archive="http://www.yoursite.com/cgi-bin/Java/irc_old.jar"
codebase="http://www.yoursite.com/cgi-bin/Java"
code="M.class"
name="gamesnet"
width=800
height=400>
<param name="CABBASE" value="irc_old.cab">
<param name="ARCHIVE" VALUE="irc_old.jar">
<param name="servers" value="kaneda.ca.us.gamesnet.net">
<param name="CHANNELS" value="#wow">
<param name="nick" value="Guest">
<param name="Q" value="no">
<param name="ChanServ" value="PRIVMSG ChanServ :">
<param name="NickServ" value="PRIVMSG NickServ :">
</applet></div>~;
&template;
exit;
}
1;
I started to make my own, it failed. hehe here is the .mod code
<id>
Irc Chat Mod
</id>
<version>
.01
</version>
<mod info>
This lets you connect to a mIrc channel using a simple Java Applet.
</mod info>
<author>
Valconeye
</author>
<homepage>
</homepage>
<edit file>
index.php
</edit file>
<search for>
'admin' => array("$sourcedir/Admin.php", 'Admin'),
</search for>
<replace>
'admin' => array("$sourcedir/Admin.php", 'Admin'),
'chat'=> array("$sourcesdir/Chat.php",'Chat'),
</replace>
<edit file>
english.lng
</edit file>
<search for>
$txt['moveTopic1'] = 'Post a redirection topic';
</search for>
<add after>
// Chat Mod Text
$txt['Chat'] = 'Chat';
</add after>
<search for>
$img['postEvent'] = $txt['calendar23'];
</search for>
<add after>
$img['chat'] = $txt['chat'];
</add after>
<search for>
$img['postEvent'] = '<img src="' . $imagesdir . $langimages . '/calendarpe.gif" alt="' . $txt['calendar23'] . '" title="' . $txt['calendar23'] . '" border="0" />';
</search for>
<add after>
$img['chat'] = '<img src="' . $imagesdir . '/chat.gif" alt="' . $txt['chat'] . '" title="' . $txt['chat'] . '" border="0" />';
</add after>
<edit file>
Sources/Subs.php
</edit file>
<search for>
$yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>";
</search for>
<add after>
$yymenu .= "$menusep<a href=\"$cgi;action=chat\">$img[chat]</a>";
</add after>
and here is the chat.php file
<?
function Chat() {
global $username,$user,$db_prefix;
$yytitle = "Chat Room mIrc Java Aplet";
template_header();
print<<<EOT
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#cccc99" width="100%" height="520">
<tr>
<td width="100%"><applet
archive="http://www.yousite.com/cgi-bin/Java/irc_old.jar"
codebase="http://www.yoursite.com/cgi-bin/Java"
code="M.class"
name="gamesnet"
width=800
height=400>
<param name="CABBASE" value="irc_old.cab">
<param name="ARCHIVE" VALUE="irc_old.jar">
<param name="servers" value="kaneda.ca.us.gamesnet.net">
<param name="CHANNELS" value="#wow">
<param name="nick" value="Guest">
<param name="Q" value="no">
<param name="ChanServ" value="PRIVMSG ChanServ :">
<param name="NickServ" value="PRIVMSG NickServ :">
</applet></div></td>
</tr>
</table>
</center>
EOT;
footer();
obExit();
}
?>