Welcome, Guest. Please Login or Register.
May 13, 2025, 01:26:28 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Chat mIrc Java Aplet « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Chat mIrc Java Aplet  (Read 547 times)
Valconeye
Full Member
***
Posts: 190


Chat mIrc Java Aplet
« on: April 23, 2003, 01:28:35 AM »
Reply with quote

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.zip
http://new.gamesnet.net/chat.php

i 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();


}
?>
« Last Edit: April 23, 2003, 01:33:12 AM by Valconeye » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Chat mIrc Java Aplet
« Reply #1 on: April 23, 2003, 02:06:24 AM »
Reply with quote

check the completed board mod, there's an IRC chat mod released
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Chat mIrc Java Aplet « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.177 seconds with 21 queries.