1 (edited by Meteolab 2008-12-28 22:39)

Topic: Chat Mod modified for use with PunBB 1.3

I got the old IRC-Chat-Mod of 2005 working with PunBB 1.3

Get all files from:

http://punbb.informer.com/forums/topic/7655/chat-mod/

upload them on your webserver.

Then replace chat.php with:

<?php
/**
 * Displays a list of the categories/forums that the current user can see, along with some statistics.
 *
 * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org
 * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
 * @package PunBB
 */


if (!defined('FORUM_ROOT'))
    define('FORUM_ROOT', './');
require FORUM_ROOT.'include/common.php';

($hook = get_hook('in_start')) ? eval($hook) : null;

//only members are allowed to view 
// if (!$forum_user['is_guest'] == '0')
// {
//     message($lang_common['No permission']);
//     exit;
// }

// //only members are allowed to view 
// if (!$forum_user['Newbie'] == '0')
// {
//     message($lang_common['No permission']);
//     exit;
// }


require FORUM_ROOT.'header.php';

// START SUBST - <!-- forum_main -->
ob_start();

// ---------------
require FORUM_ROOT.'lang/English/chat.php';

$c_guest_nick = "guest";
$c_guest_alt_nick = "guest_";
$c_irc_server = "domain of irc-server";
$c_real_name = "Chatter";
$c_on_connect_1 = "/join #channelname";
$c_on_connect_2 = NULL;
$c_on_connect_3 = NULL;
$c_user_info = "punbb-chat-user";
$c_quit_message = "gone";

// Prepare various chat applet settings
if ($forum_user['is_guest'])
{
    $chat_nick = $c_guest_nick;
    $chat_altnick = $c_guest_alt_nick;
    $chat_ident = $c_guest_nick;
}
else
{
    $chat_nick = $forum_user['username'];
    $chat_altnick = $forum_user['username']."_";
    $chat_ident = $forum_user['username'];
}



//Language Settings
// $chat_language = $pun_user['language'];
// if (!@file_exists(PUN_ROOT.'chat/lang/'.$pun_user['language'].'.lng'))
//     $chat_language = "English";
    
//Style Settings
$chat_style = $forum_user['style'];
if (!@file_exists(FORUM_ROOT.'chat/style/'.$chat_style.'.php'))
    $chat_style = "Oxygen";
    
require FORUM_ROOT.'chat/style/'.$chat_style.'.php';
    

require FORUM_ROOT.'chat_include.html';


// ---------------

$tpl_temp = forum_trim(ob_get_contents());
$tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <!-- forum_main -->

require FORUM_ROOT.'footer.php';
?>

and also put chat_include.html on your server:

<script type="text/javascript" src="./chat/chat.js"></script>
<div class="main-content main-frm">
    <h2><span>Chat Room</span></h2>
    <div class="box">
    <div class="inbox">
    <object name="pjirc" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0" height="400" width="100%"> 
    
        <param name="codebase" value="chat/" />  
        <param name="code" value="IRCApplet.class" />
        <param name="archive" value="irc.jar, pixx.jar" />
        <param name="CABINETS" value="irc.cab, securedirc.cab, pixx.cab" />
        
        <param name="nick" value="<?php echo $chat_nick; ?>" />
        <param name="alternatenick" value="<?php echo $chat_altnick; ?>" />
        <param name="host" value="<?php echo $c_irc_server; ?>" />
        <param name="userid" value="<?php echo $chat_ident; ?>" />
        <param name="name" value="<?php echo $c_real_name; ?>" />
        <param name="command1" value="<?php echo $c_on_connect_1; ?>" />
        <param name="command2" value="<?php echo $c_on_connect_2; ?>" />
        <param name="command3" value="<?php echo $c_on_connect_3; ?>" />
        <param name="authorizedjoinlist" value="all" />
        <param name="authorizedleavelist" value="all" />
        <param name="fingerreply" value="<?php echo $c_user_info; ?>" />
        <param name="userinforeply" value="<?php echo $c_user_info; ?>" />
        <param name="quitmessage" value="<?php echo $c_quit_message; ?>" />
        <param name="language" value="<?php echo './lang/'.strtolower($chat_language); ?>" />
        <param name="lngextension" value="lng" />
        <param name="soundbeep" value="snd/bell2.au" />
        <param name="soundquery" value="snd/ding.au" />
        <param name="highlight" value="true" />
        
        <param name="style:sourcefontrule1" value="Status+Channel+Query all SansSerif 14" />
        
        <param name="pixx:language" value="<?php echo './lang/pixx-'.strtolower($chat_language); ?>" />
        
        <!-- Other settings you can't change in the plugin -->
        <param name="style:righttoleft" value="false" />
        <param name="pixx:highlightnick" value="true" />
        <param name="pixx:styleselector" value="true" />
        <param name="pixx:setfontonstyle" value="false" />
        <param name="pixx:timestamp" value="true" />
        <param name="pixx:showabout" value="false" />
        <param name="pixx:showhelp" value="false" />
        <param name="pixx:nickfield" value="false" />
        <param name="pixx:showdock" value="false" />
        <param name="pixx:mouseurlopen" value="1 2" />
        <param name="pixx:mousechanneljoin" value="1 2" />
        
        <param name="gui" value="pixx" />
        <!-- Smilies for the java chat GUI -->
        <param name="style:bitmapsmileys" value="true" />
        <param name="style:smiley1" value=":) ../img/smilies/smile.png" />
        <param name="style:smiley2" value=":-) ../img/smilies/smile.png" />
        <param name="style:smiley3" value=":D ../img/smilies/big_smile.png" />
        <param name="style:smiley4" value=":-D ../img/smilies/big_smile.png" />
        <param name="style:smiley5" value=":-O ../img/smilies/yikes.png" />
        <param name="style:smiley6" value=":o ../img/smilies/yikes.png" />
        <param name="style:smiley7" value=":O ../img/smilies/yikes.png" />
        <param name="style:smiley8" value=":p ../img/smilies/tongue.png" />
        <param name="style:smiley9" value=":P ../img/smilies/tongue.png" />
        <param name="style:smiley10" value=":-P ../img/smilies/tongue.png" />
        <param name="style:smiley11" value=";) ../img/smilies/wink.png" />
        <param name="style:smiley12" value=";-) ../img/smilies/wink.png" />
        <param name="style:smiley13" value=":( ../img/smilies/sad.png" />
        <param name="style:smiley14" value=":| ../img/smilies/neutral.png" />
        <param name="style:smiley15" value=":-| ../img/smilies/neutral.png" />
        <param name="style:smiley16" value=":'( ../img/smilies/sad.png" />
        <param name="style:smiley17" value=":\ ../img/smilies/hmm.png" />
        <param name="style:smiley18" value=":-\ ../img/smilies/hmm.png" />
        <param name="style:smiley19" value="(H) ../img/smilies/cool.png" />
        <param name="style:smiley20" value="(h) ../img/smilies/cool.png" />
        <param name="style:smiley21" value="8) ../img/smilies/cool.png" />
        <param name="style:smiley22" value=":lol: ../img/smilies/lol.png" />
        <param name="style:smiley23" value=":-@ ../img/smilies/mad.png" />
        <param name="style:smiley24" value=":@ ../img/smilies/mad.png" />
        <param name="style:smiley25" value=":s ../img/smilies/roll.png" />
        <param name="style:smiley26" value=":-S ../img/smilies/roll.png" />
        <param name="style:smiley27" value=":mad: ../img/smilies/mad.png" />
        <param name="style:smiley28" value=":rolleyes: ../img/smilies/roll.png" />
        <param name="style:smiley29" value=":cool: ../img/smilies/cool.png" />
        <param name="style:smiley30" value="=) ../img/smilies/smile.png" />
        <param name="style:smiley31" value="=D ../img/smilies/big_smile.png" />
        <param name="style:smiley32" value="=| ../img/smilies/neutral.png" />
        <param name="style:smiley33" value=":=( ../img/smilies/sad.png" />
        <!--Menus for the java chat GUI -->
        <param name="pixx:configurepopup" value="true" />
        <param name="pixx:popupmenustring1" value="Whois" />
        <param name="pixx:popupmenustring2" value="Query" />
        <param name="pixx:popupmenustring3" value="Ban" />
        <param name="pixx:popupmenustring4" value="Kick + Ban" />
        <param name="pixx:popupmenustring5" value="--" />
        <param name="pixx:popupmenustring6" value="Op" />
        <param name="pixx:popupmenustring7" value="DeOp" />
        <param name="pixx:popupmenustring8" value="HalfOp" />
        <param name="pixx:popupmenustring9" value="DeHalfOp" />
        <param name="pixx:popupmenustring10" value="Voice" />
        <param name="pixx:popupmenustring11" value="DeVoice" />
        <param name="pixx:popupmenustring12" value="--" />
        <param name="pixx:popupmenustring13" value="Ping" />
        <param name="pixx:popupmenustring14" value="Version" />
        <param name="pixx:popupmenustring15" value="Time" />
        <param name="pixx:popupmenustring16" value="Finger" />
        <param name="pixx:popupmenustring17" value="--" />
        <param name="pixx:popupmenustring18" value="DCC Send" />
        <param name="pixx:popupmenustring19" value="DCC Chat" />
        <param name="pixx:popupmenucommand1_1" value="/Whois %1" />
        <param name="pixx:popupmenucommand2_1" value="/Query %1" />
        <param name="pixx:popupmenucommand3_1" value="/mode %2 -o %1" />
        <param name="pixx:popupmenucommand3_2" value="/mode %2 +b %1" />
        <param name="pixx:popupmenucommand4_1" value="/mode %2 -o %1" />
        <param name="pixx:popupmenucommand4_2" value="/mode %2 +b %1" />
        <param name="pixx:popupmenucommand4_3" value="/kick %2 %1" />
        <param name="pixx:popupmenucommand6_1" value="/mode %2 +o %1" />
        <param name="pixx:popupmenucommand7_1" value="/mode %2 -o %1" />
        <param name="pixx:popupmenucommand8_1" value="/mode %2 +h %1" />
        <param name="pixx:popupmenucommand9_1" value="/mode %2 -h %1" />
        <param name="pixx:popupmenucommand10_1" value="/mode %2 +v %1" />
        <param name="pixx:popupmenucommand11_1" value="/mode %2 -v %1" />
        <param name="pixx:popupmenucommand13_1" value="/CTCP PING %1" />
        <param name="pixx:popupmenucommand14_1" value="/CTCP VERSION %1" />
        <param name="pixx:popupmenucommand15_1" value="/CTCP TIME %1" />
        <param name="pixx:popupmenucommand16_1" value="/CTCP FINGER %1" />
        <param name="pixx:popupmenucommand18_1" value="/DCC SEND %1" />
        <param name="pixx:popupmenucommand19_1" value="/DCC CHAT %1" />
        <!-- Colours for the java chat GUI -->
        <param name="pixx:color0" value="<?php echo $pixx_colour[1] ?>" /> <!-- Button Highlight / Popup & Close Button Text & Higlight / Scrollbar Highlight -->
        <param name="pixx:color1" value="<?php echo $pixx_colour[2] ?>" /> <!-- Button Border & Text : ScrollBar Border & arrow : Popup & Close button Border : User List border & Text & icons -->
        <param name="pixx:color2" value="<?php echo $pixx_colour[3] ?>" /> <!-- Popup & Close button shadow -->
        <param name="pixx:color3" value="<?php echo $pixx_colour[4] ?>" /> <!-- Scrollbar shadow -->
        <param name="pixx:color4" value="<?php echo $pixx_colour[5] ?>" /> <!-- Scrollbar de-light (3D Dim colour) -->
        <param name="pixx:color5" value="<?php echo $pixx_colour[6] ?>" /> <!-- foreground : Buttons Face : Scrollbar Face -->
        <param name="pixx:color6" value="<?php echo $pixx_colour[7] ?>" /> <!-- background : Header : Scrollbar Track : Footer background -->
        <param name="pixx:color7" value="<?php echo $pixx_colour[8] ?>" /> <!-- selection : Status & Window button active colour -->
        <param name="pixx:color8" value="<?php echo $pixx_colour[9] ?>" /> <!-- event Color  -->
        <param name="pixx:color9" value="<?php echo $pixx_colour[10] ?>" /> <!-- close button -->
        <param name="pixx:color10" value="<?php echo $pixx_colour[11] ?>" /> <!-- voice icon  -->
        <param name="pixx:color11" value="<?php echo $pixx_colour[12] ?>" /> <!-- operator icon  -->
        <param name="pixx:color12" value="<?php echo $pixx_colour[13] ?>" /> <!-- halfoperator icon -->
        <param name="pixx:color13" value="<?php echo $pixx_colour[14] ?>" /> <!-- male ASL -->
        <param name="pixx:color14" value="<?php echo $pixx_colour[15] ?>" /> <!-- female ASL -->
        <param name="pixx:color15" value="<?php echo $pixx_colour[16] ?>" /> <!-- unknown ASL -->
        <param name="style:sourcecolorrule1" value="all all 0=<?php echo $pixx_colour[17] ?> 1=<?php echo $pixx_colour[18] ?>" />
        <!--[if !IE]>  -->
        
        <object name="pjircb" codebase="chat/" classid="java:IRCApplet.class" archive="irc.jar, pixx.jar" height="400" width="100%">
        
            <param name="CABINETS" value="irc.cab, securedirc.cab, pixx.cab" />
            
            <param name="nick" value="<?php echo $chat_nick; ?>" />
            <param name="alternatenick" value="<?php echo $chat_altnick; ?>" />
            <param name="host" value="<?php echo $c_irc_server; ?>" />
            <param name="userid" value="<?php echo $chat_ident; ?>" />
            <param name="name" value="<?php echo $c_real_name; ?>" />
            <param name="command1" value="<?php echo $c_on_connect_1; ?>" />
            <param name="command2" value="<?php echo $c_on_connect_2; ?>" />
            <param name="command3" value="<?php echo $c_on_connect_3; ?>" />
            <param name="authorizedjoinlist" value="all" />
            <param name="authorizedleavelist" value="all" />
            <param name="fingerreply" value="<?php echo $c_user_info; ?>" />
            <param name="userinforeply" value="<?php echo $c_user_info; ?>" />
            <param name="quitmessage" value="<?php echo $c_quit_message; ?>" />
            <param name="language" value="<?php echo './lang/'.strtolower($chat_language); ?>" />
            <param name="lngextension" value="lng" />
            <param name="soundbeep" value="snd/bell2.au" />
            <param name="soundquery" value="snd/ding.au" />
            <param name="highlight" value="true" />
            
            <param name="style:sourcefontrule1" value="Status+Channel+Query all SansSerif 14" />
            
            <param name="pixx:language" value="<?php echo './lang/pixx-'.strtolower($chat_language); ?>" />
            
            <!-- Other settings you can't change in the plugin -->
            <param name="style:righttoleft" value="false" />
            <param name="pixx:highlightnick" value="true" />
            <param name="pixx:styleselector" value="true" />
            <param name="pixx:setfontonstyle" value="false" />
            <param name="pixx:timestamp" value="true" />
            <param name="pixx:showabout" value="false" />
            <param name="pixx:showhelp" value="false" />
            <param name="pixx:nickfield" value="false" />
            <param name="pixx:showdock" value="false" />
            <param name="pixx:mouseurlopen" value="1 2" />
            <param name="pixx:mousechanneljoin" value="1 2" />
            
            <param name="gui" value="pixx" />
            <!-- Smilies for the java chat GUI -->
            <param name="style:bitmapsmileys" value="true" />
            <param name="style:smiley1" value=":) ../img/smilies/smile.png" />
            <param name="style:smiley2" value=":-) ../img/smilies/smile.png" />
            <param name="style:smiley3" value=":D ../img/smilies/big_smile.png" />
            <param name="style:smiley4" value=":-D ../img/smilies/big_smile.png" />
            <param name="style:smiley5" value=":-O ../img/smilies/yikes.png" />
            <param name="style:smiley6" value=":o ../img/smilies/yikes.png" />
            <param name="style:smiley7" value=":O ../img/smilies/yikes.png" />
            <param name="style:smiley8" value=":p ../img/smilies/tongue.png" />
            <param name="style:smiley9" value=":P ../img/smilies/tongue.png" />
            <param name="style:smiley10" value=":-P ../img/smilies/tongue.png" />
            <param name="style:smiley11" value=";) ../img/smilies/wink.png" />
            <param name="style:smiley12" value=";-) ../img/smilies/wink.png" />
            <param name="style:smiley13" value=":( ../img/smilies/sad.png" />
            <param name="style:smiley14" value=":| ../img/smilies/neutral.png" />
            <param name="style:smiley15" value=":-| ../img/smilies/neutral.png" />
            <param name="style:smiley16" value=":'( ../img/smilies/sad.png" />
            <param name="style:smiley17" value=":\ ../img/smilies/hmm.png" />
            <param name="style:smiley18" value=":-\ ../img/smilies/hmm.png" />
            <param name="style:smiley19" value="(H) ../img/smilies/cool.png" />
            <param name="style:smiley20" value="(h) ../img/smilies/cool.png" />
            <param name="style:smiley21" value="8) ../img/smilies/cool.png" />
            <param name="style:smiley22" value=":lol: ../img/smilies/lol.png" />
            <param name="style:smiley23" value=":-@ ../img/smilies/mad.png" />
            <param name="style:smiley24" value=":@ ../img/smilies/mad.png" />
            <param name="style:smiley25" value=":s ../img/smilies/roll.png" />
            <param name="style:smiley26" value=":-S ../img/smilies/roll.png" />
            <param name="style:smiley27" value=":mad: ../img/smilies/mad.png" />
            <param name="style:smiley28" value=":rolleyes: ../img/smilies/roll.png" />
            <param name="style:smiley29" value=":cool: ../img/smilies/cool.png" />
            <param name="style:smiley30" value="=) ../img/smilies/smile.png" />
            <param name="style:smiley31" value="=D ../img/smilies/big_smile.png" />
            <param name="style:smiley32" value="=| ../img/smilies/neutral.png" />
            <param name="style:smiley33" value=":=( ../img/smilies/sad.png" />
            <!--Menus for the java chat GUI -->
            <param name="pixx:configurepopup" value="true" />
            <param name="pixx:popupmenustring1" value="Whois" />
            <param name="pixx:popupmenustring2" value="Query" />
            <param name="pixx:popupmenustring3" value="Ban" />
            <param name="pixx:popupmenustring4" value="Kick + Ban" />
            <param name="pixx:popupmenustring5" value="--" />
            <param name="pixx:popupmenustring6" value="Op" />
            <param name="pixx:popupmenustring7" value="DeOp" />
            <param name="pixx:popupmenustring8" value="HalfOp" />
            <param name="pixx:popupmenustring9" value="DeHalfOp" />
            <param name="pixx:popupmenustring10" value="Voice" />
            <param name="pixx:popupmenustring11" value="DeVoice" />
            <param name="pixx:popupmenustring12" value="--" />
            <param name="pixx:popupmenustring13" value="Ping" />
            <param name="pixx:popupmenustring14" value="Version" />
            <param name="pixx:popupmenustring15" value="Time" />
            <param name="pixx:popupmenustring16" value="Finger" />
            <param name="pixx:popupmenustring17" value="--" />
            <param name="pixx:popupmenustring18" value="DCC Send" />
            <param name="pixx:popupmenustring19" value="DCC Chat" />
            <param name="pixx:popupmenucommand1_1" value="/Whois %1" />
            <param name="pixx:popupmenucommand2_1" value="/Query %1" />
            <param name="pixx:popupmenucommand3_1" value="/mode %2 -o %1" />
            <param name="pixx:popupmenucommand3_2" value="/mode %2 +b %1" />
            <param name="pixx:popupmenucommand4_1" value="/mode %2 -o %1" />
            <param name="pixx:popupmenucommand4_2" value="/mode %2 +b %1" />
            <param name="pixx:popupmenucommand4_3" value="/kick %2 %1" />
            <param name="pixx:popupmenucommand6_1" value="/mode %2 +o %1" />
            <param name="pixx:popupmenucommand7_1" value="/mode %2 -o %1" />
            <param name="pixx:popupmenucommand8_1" value="/mode %2 +h %1" />
            <param name="pixx:popupmenucommand9_1" value="/mode %2 -h %1" />
            <param name="pixx:popupmenucommand10_1" value="/mode %2 +v %1" />
            <param name="pixx:popupmenucommand11_1" value="/mode %2 -v %1" />
            <param name="pixx:popupmenucommand13_1" value="/CTCP PING %1" />
            <param name="pixx:popupmenucommand14_1" value="/CTCP VERSION %1" />
            <param name="pixx:popupmenucommand15_1" value="/CTCP TIME %1" />
            <param name="pixx:popupmenucommand16_1" value="/CTCP FINGER %1" />
            <param name="pixx:popupmenucommand18_1" value="/DCC SEND %1" />
            <param name="pixx:popupmenucommand19_1" value="/DCC CHAT %1" />
            <!-- Colours for the java chat GUI -->
            <param name="pixx:color0" value="<?php echo $pixx_colour[1] ?>" /> <!-- Button Highlight / Popup & Close Button Text & Higlight / Scrollbar Highlight -->
            <param name="pixx:color1" value="<?php echo $pixx_colour[2] ?>" /> <!-- Button Border & Text : ScrollBar Border & arrow : Popup & Close button Border : User List border & Text & icons -->
            <param name="pixx:color2" value="<?php echo $pixx_colour[3] ?>" /> <!-- Popup & Close button shadow -->
            <param name="pixx:color3" value="<?php echo $pixx_colour[4] ?>" /> <!-- Scrollbar shadow -->
            <param name="pixx:color4" value="<?php echo $pixx_colour[5] ?>" /> <!-- Scrollbar de-light (3D Dim colour) -->
            <param name="pixx:color5" value="<?php echo $pixx_colour[6] ?>" /> <!-- foreground : Buttons Face : Scrollbar Face -->
            <param name="pixx:color6" value="<?php echo $pixx_colour[7] ?>" /> <!-- background : Header : Scrollbar Track : Footer background -->
            <param name="pixx:color7" value="<?php echo $pixx_colour[8] ?>" /> <!-- selection : Status & Window button active colour -->
            <param name="pixx:color8" value="<?php echo $pixx_colour[9] ?>" /> <!-- event Color  -->
            <param name="pixx:color9" value="<?php echo $pixx_colour[10] ?>" /> <!-- close button -->
            <param name="pixx:color10" value="<?php echo $pixx_colour[11] ?>" /> <!-- voice icon  -->
            <param name="pixx:color11" value="<?php echo $pixx_colour[12] ?>" /> <!-- operator icon  -->
            <param name="pixx:color12" value="<?php echo $pixx_colour[13] ?>" /> <!-- halfoperator icon -->
            <param name="pixx:color13" value="<?php echo $pixx_colour[14] ?>" /> <!-- male ASL -->
            <param name="pixx:color14" value="<?php echo $pixx_colour[15] ?>" /> <!-- female ASL -->
            <param name="pixx:color15" value="<?php echo $pixx_colour[16] ?>" /> <!-- unknown ASL -->
            <param name="style:sourcecolorrule1" value="all all 0=<?php echo $pixx_colour[17] ?> 1=<?php echo $pixx_colour[18] ?>" />
           <strong>
              <?php echo $lang_chat['This browser does not have a Java Plug-in.'] ?>
              <br />
              <a href="http://java.sun.com/products/plugin/downloads/index.html">
                <?php echo $lang_chat['Get the latest Java Plug-in here.'] ?>
              </a>
            </strong>            
        </object> 
    <!-- <![endif]-->
    </object>
    <p class="con" style="TEXT-ALIGN: right">
            <a href="javascript:smiley(':)')"><img src="img/smilies/smile.png" width="15" height="15" style="BORDER: 0" alt=":)" /></a>
            <a href="javascript:smiley(':D')"><img src="img/smilies/big_smile.png" width="15" height="15" style="BORDER: 0" alt=":D" /></a>
            <a href="javascript:smiley(':lol:')"><img src="img/smilies/lol.png" width="15" height="15" style="BORDER: 0" alt=":lol:" /></a>
            <a href="javascript:smiley(':o')"><img src="img/smilies/yikes.png" width="15" height="15" style="BORDER: 0" alt=":o" /></a>
            <a href="javascript:smiley(':P')"><img src="img/smilies/tongue.png" width="15" height="15" style="BORDER: 0" alt=":P" /></a>
            <a href="javascript:smiley(';)')"><img src="img/smilies/wink.png" width="15" height="15" style="BORDER: 0" alt=";)" /></a>
            <a href="javascript:smiley(':(')"><img src="img/smilies/sad.png" width="15" height="15" style="BORDER: 0" alt=":(" /></a>
            <a href="javascript:smiley(':|')"><img src="img/smilies/neutral.png" width="15" height="15" style="BORDER: 0" alt=":|" /></a>
            <a href="javascript:smiley(':\\')"><img src="img/smilies/hmm.png" width="15" height="15" style="BORDER: 0" alt=":\" /></a>
            <a href="javascript:smiley('(H)')"><img src="img/smilies/cool.png" width="15" height="15" style="BORDER: 0" alt="(H)" /></a>
            <a href="javascript:smiley(':@')"><img src="img/smilies/mad.png" width="15" height="15" style="BORDER: 0" alt=":@" /></a>
            <a href="javascript:smiley(':s')"><img src="img/smilies/roll.png" width="15" height="15" style="BORDER: 0" alt=":s" /></a>
            : <?php echo $lang_chat['Clickable Smilies'] ?>
        </p>
        <form id="form" action="">
        <p class="con" style="TEXT-ALIGN: right">
            <input type="button" value="Set Away" onclick="maway(document.getElementById('form').away_reason.value,'<?php echo $chat_nick; ?>')" />
            <input type="button" value="Set Back" onclick="mback(document.getElementById('form').away_reason.value,'<?php echo $chat_nick; ?>')" />
            <input name="away_reason" type="text" size="30" />
            : <?php echo $lang_chat['Away Message'] ?>
        </p>
        </form>
    </div>
    </div>
</div>

There are still some undefined strings, but it is working. I'll repair the rest next time and gonna inform you here in this thread.

Greetings,
Meteolab

Re: Chat Mod modified for use with PunBB 1.3

cool
Any chance of seeing a demo?

Re: Chat Mod modified for use with PunBB 1.3

Where I save chat_include.html ???
In same path with chat folder ?

Re: Chat Mod modified for use with PunBB 1.3

Any chance of someone explaining what to do exactly to get this running?