Login pages (How to ask for Nick & Password )

Do you have a great little java scriptlet?
A neat PJirc &/or CSS color scheme perhaps?
Maybe a handy PHP snippet?
Then share it in here and help those less gifted...

Moderator: Pjirc Support Groupie

Login pages (How to ask for Nick & Password )

Postby Thema » Sun Aug 29, 2004 9:24 am

This is a question that comes up every single week, and has been answered so many times that it still amazes me that nobody can ever find the answers.
Because of this I have placed three different styles of login page here in a sticky topic so nobody needs to look far for them again.

Please note that there are other answers on this forum including Afrob's PHP Login page in the downloads area, as well as the GoPJirc frontends. This means that despite finding your answers here, it is still worth using the search button to see if there are better ones, and looking at the downloads section to see if there's anything there that suits you more.

8)
Last edited by Thema on Mon Aug 30, 2004 10:36 am, edited 4 times in total.
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby Thema » Sun Aug 29, 2004 9:25 am

For those of you that don't have PHP here is a javascript only solution:

userpass.html
Code: Select all
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
<html>
<head>
<title>Chat page</title>
</head>

   <body>
   <table align='center'>
     <tr>
      <td align=center >                              
        <form name='jform' id='jform' action='java_chat.html' target="_self" method=get>
         <table border='0' cellspacing='0'>
           <tr>
            <td valign='center' colspan='4' align='center'>
                  <h2>Welcome to the <a href='http://www.pjirc.com'>PJirc</a> applet.</h2>
       <p align='center'>
       If you have a password type it into the box. Otherwise do not change it.<font colour=blue><br>
               </font>
            </td>
           </tr>
              <tr>
            <td align='center'>
               <font colour=blue>
                    Type the Room Name               
               </font>
            </td>
            <td align='center' colspan="2">
               <font colour=blue>
                    Type your Nick</font>
            </td>
            <td align='center'>
                    <font colour="blue">Type your Server URL
                    </font>
            </td>
              </tr>
              <tr>
            <td align='center'>
               <font colour=blue>
               <input name='chan' type=textbox value='MyChan'>
               </font>
            </td>
            <td align='center' colspan="2">
               <font colour=blue>
               <input name='nick' type=textbox value='guest'>
               </font>
            </td>
            <td align='center'>
               <font colour=blue>
               <input name='server' type=textbox value='irc.myserver.com'></font>
            </td>
              </tr>
              <tr>
            <td valign='center' colspan='4' align='center'>
                  <br>
            </td>
              </tr>
              <tr>
            <td align='center' colspan="2">
                    <font colour=blue>
                    Background Image URL
               </font>
            </td>
            <td align='center' colspan="2">
               <font colour=blue>
                    Type your Password</font>
            </td>
              </tr>
              <tr>
            <td align='center' colspan="2">
               <font colour=blue>
               <input name='bkgrnd' type=textbox value='background.gif'>
               </font>
            </td>
            <td align='center' colspan="2">
                    <font colour=blue><input name='pass' type=textbox value='N/A'>
                    </font>
            </td>
              </tr>
              <tr>
            <td valign='center' colspan='4' align='center'>
       If the fields are correct please just hit <font colour=blue>
       <br>
       <input name='submit' type=submit value='Let`s Chat'></font>
            </td>
              </tr>
           </table>
        </form>
      </td>
     </tr>
</table>
</body>
</html>



java_chat.html
Code: Select all
<html>
<head>
<title>IRCApplet</title>

<script language=javascript>
function parseQueryString () {
var str = str ? "" : document.location.search;
var query = str.charAt(0) == '?' ? str.substring(1) : str;
  var args = new Object();
  if (query) {
    var fields = query.split('&');
    for (var f = 0; f < fields.length; f++) {
      var field = fields[f].split('=');
      args[unescape(field[0].replace(/\+/g, ' '))] =  unescape(field[1].replace(/\+/g, ' '));
    }
  }
  return args;
}

function startChat() {
var args = parseQueryString ();
document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>\n");
document.write("<html>\n");
document.write("<head>\n");
document.write("<title>Chat page</title>\n");
document.write("</head>\n");

document.write("   <body bgcolor=blue> \n");
document.write("<h1>Test page for IRCApplet Class</h1><hr>\n");
nick = args['nick'];
chan = args['chan'];
pass = args['pass'];
server = args['server'];
bkgrnd = args['bkgrnd'];
document.write("<applet name='applet' code=IRCApplet.class archive='irc.jar,pixx.jar' width=640 height=400>\n");
document.write("<param name='CABINETS' value='irc.cab,pixx.cab,securedirc.cab'>\n");

document.write("<param name='pixx:language' value='pixx-english'>\n");
document.write("<param name='pixx:lngextension' value='lng'>\n");

document.write("<param name='nick' value='" + nick + "'>\n");
document.write("<param name='alternatenick' value='" + nick + "??'>\n");
document.write("<param name='quitmessage' value='PJIRC 2.0 forever!'>\n");
document.write("<param name='name' value='PJirc 2.0 Test User'>\n");
document.write("<param name='host' value='" + server + "'>\n");
document.write("<param name='port' value='6667'>\n");
document.write("<param name='gui' value='pixx'>\n");   
document.write("<param name='asl' value='true'>\n");
document.write("<param name='command1' value='" + pass + "'>\n");
document.write("<param name='command2' value='/join " + chan + "'>\n");
document.write("<param name='highlight' value='true'>\n");
document.write("<param name='style:bitmapsmileys' value='true'>\n");
document.write("<param name='style:smiley1' value=':) img/sourire.gif'>\n");
document.write("<param name='style:smiley2' value=':-) img/sourire.gif'>\n");
document.write("<param name='style:smiley3' value=':-D img/content.gif'>\n");
document.write("<param name='style:smiley4' value=':d img/content.gif'>\n");
document.write("<param name='style:smiley5' value=':-O img/OH-2.gif'>\n");
document.write("<param name='style:smiley6' value=':o img/OH-1.gif'>\n");
document.write("<param name='style:smiley7' value=':-P img/langue.gif'>\n");
document.write("<param name='style:smiley8' value=':p img/langue.gif'>\n");
document.write("<param name='style:smiley9' value=';-) img/clin-oeuil.gif'>\n");
document.write("<param name='style:smiley10' value=';) img/clin-oeuil.gif'>\n");
document.write("<param name='style:smiley11' value=':-( img/triste.gif'>\n");
document.write("<param name='style:smiley12' value=':( img/triste.gif'>\n");
document.write("<param name='style:smiley13' value=':-| img/OH-3.gif'>\n");
document.write("<param name='style:smiley14' value=':| img/OH-3.gif'>\n");
document.write("<param name='style:smiley15' value=\":'( img/pleure.gif\">\n");
document.write("<param name='style:smiley16' value=':$ img/rouge.gif'>\n");
document.write("<param name='style:smiley17' value=':-$ img/rouge.gif'>\n");
document.write("<param name='style:smiley18' value='(H) img/cool.gif'>\n");
document.write("<param name='style:smiley19' value='(h) img/cool.gif'>\n");
document.write("<param name='style:smiley20' value=':-@ img/enerve1.gif'>\n");
document.write("<param name='style:smiley21' value=':@ img/enerve2.gif'>\n");
document.write("<param name='style:smiley22' value=':-S img/roll-eyes.gif'>\n");
document.write("<param name='style:smiley23' value=':s img/roll-eyes.gif'>\n");
document.write("<param name='style:sourcefontrule1' value='none+Channel all DialogInput 12'>\n");
document.write("<param name='style:sourcefontrule2' value='none+ChanList all DialogInput 12'>\n");
document.write("<param name='style:highlight' value='true'>\n");
document.write("<param name='style:backgroundimage' value='true'>\n");
document.write("<param name='style:backgroundimage1' value='all all-" + chan + " 1 " + bkgrnd + "'>\n");
document.write("<param name='style:floatingasl' value='true'>\n");
document.write("<param name='pixx:styleselector' value='true'>\n");
document.write("<param name='pixx:setfontonstyle' value='true'>\n");
document.write("<param name='pixx:highlightnick' value='true'>\n");
document.write("<param name='pixx:nickfield' value='true'>\n");
document.write("<param name='pixx:configurepopup' value='true'>\n");
document.write("<param name='pixx:popupmenustring1' value='Whois'>\n");
document.write("<param name='pixx:popupmenustring2' value='Query'>\n");
document.write("<param name='pixx:popupmenustring3' value='Ban'>\n");
document.write("<param name='pixx:popupmenustring4' value='kick + Ban'>\n");
document.write("<param name='pixx:popupmenustring5' value='--'>\n");
document.write("<param name='pixx:popupmenustring6' value='Op'>\n");
document.write("<param name='pixx:popupmenustring7' value='DeOp'>\n");
document.write("<param name='pixx:popupmenustring8' value='Voice'>\n");
document.write("<param name='pixx:popupmenustring9' value='DeVoice'>\n");
document.write("<param name='pixx:popupmenustring10' value='--'>\n");
document.write("<param name='pixx:popupmenustring11' value='Ping'>\n");
document.write("<param name='pixx:popupmenustring12' value='Version'>\n");
document.write("<param name='pixx:popupmenustring13' value='Time'>\n");
document.write("<param name='pixx:popupmenustring14' value='Finger'>\n");
document.write("<param name='pixx:popupmenucommand1_1' value='/Whois %1'>\n");
document.write("<param name='pixx:popupmenucommand2_1' value='/Query %1'>\n");
document.write("<param name='pixx:popupmenucommand3_1' value='/mode %2 -o %1'>\n");
document.write("<param name='pixx:popupmenucommand3_2' value='/mode %2 +b %1'>\n");
document.write("<param name='pixx:popupmenucommand4_1' value='/mode %2 -o %1'>\n");
document.write("<param name='pixx:popupmenucommand4_2' value='/mode %2 +b %1'>\n");
document.write("<param name='pixx:popupmenucommand4_3' value='/kick %2 %1'>\n");
document.write("<param name='pixx:popupmenucommand6_1' value='/mode %2 +o %1'>\n");
document.write("<param name='pixx:popupmenucommand7_1' value='/mode %2 -o %1'>\n");
document.write("<param name='pixx:popupmenucommand8_1' value='/mode %2 +v %1'>\n");
document.write("<param name='pixx:popupmenucommand9_1' value='/mode %2 -v %1'>\n");
document.write("<param name='pixx:popupmenucommand11_1' value='/CTCP PING %1'>\n");
document.write("<param name='pixx:popupmenucommand12_1' value='/CTCP VERSION %1'>\n");
document.write("<param name='pixx:popupmenucommand13_1' value='/CTCP TIME %1'>\n");
document.write("<param name='pixx:popupmenucommand14_1' value='/CTCP FINGER %1'>\n");
document.write("</applet>\n");
}
</script>
</head>
<body onload='startChat();'>
</body>
</html>


Please modify to taste.
Last edited by Thema on Sun Feb 20, 2005 3:36 am, edited 3 times in total.
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby Thema » Sun Aug 29, 2004 9:25 am

There may not be a ChanServ on your server. If so then find the bit of code that says:
Code: Select all
document.write("<param name='command1' value='/msg nickserv identify " + pass + "'>");

and change it to reflect the way your server works. ie:
Code: Select all
document.write("<param name='command1' value='/pass " + pass + "'>");
Last edited by Thema on Mon Aug 30, 2004 1:56 am, edited 2 times in total.
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby Thema » Sun Aug 29, 2004 9:27 am

If you want more personalisation then just add the body tag, or any other DHTML tags as needed.
IE:
Code: Select all
document.write("   <body bgcolor=blue> \n");


Or you could go all the way and add a header.
Code: Select all
document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>\n");
document.write("<html>\n");
document.write("<head>\n");
document.write("<title>Chat page</title>\n");
document.write("</head>\n");

document.write("   <body bgcolor=blue> \n");


The original script was thrown together in a bit of a hurry I'm afraid, and makes no pretense to be complete. It was only meant to give people a start.

8)
Last edited by Thema on Mon Aug 30, 2004 1:55 am, edited 1 time in total.
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby Thema » Sun Aug 29, 2004 10:29 am

A guest user managed to get it to work in firefox and all other browsers now, with a few code changes.

Code: Select all
<html>
<head> <title>Java IRC</title>

<script language=JavaScript type="text/javascript">
function parseQueryString () {
var str = str ? "" : document.location.search;
var query = str.charAt(0) == '?' ? str.substring(1) : str;
  var args = new Object();
  if (query) {
    var fields = query.split('&');
    for (var f = 0; f < fields.length; f++) {
      var field = fields[f].split('=');
      args[unescape(field[0].replace(/\+/g, ' '))] =  unescape(field[1].replace(/\+/g, ' '));
    }
  }
  return args;
}

function startChat() {
var args = parseQueryString ();

nick = args['nick'];
chan = args['chan'];
password = args['password'];
name1 = args['name'];
userid = args['userid'];
document.write("<body bgcolor=black>")
document.write("<applet name='applet' code=IRCApplet.class archive='irc-unsigned.jar,pixx.jar' CODEBASE='./' width=100% height=100%>");

document.write("<param name='pixx:language' value='pixx-english'>");
document.write("<param name='pixx:lngextension' value='lng'>");

document.write('<param name="nick" value="' + args['nick'] + '">');
document.write('<param name="alternatenick" value="' + args['nick'] + '??">');
document.write('<param name="quitmessage" value="*g0ne*">');
document.write('<param name="userid" value="' + args['userid'] + '">');
document.write('<param name="host" value="irc.evolu.net">');
document.write('<param name="port" value="6667">');
document.write('<param name="name" value="' + args['name'] + '">');
document.write('<param name="gui" value="pixx">');
document.write('<param name="asl" value="false">');
document.write('<param name="pixx:showabout" value="false">');
document.write('<param name="pixx:showhelp" value="false">');
document.write('<param name="password" value="' + args['password'] + '">');
document.write("<param name='command1' value='/join #hawt'>");
document.write("<param name='command2' value='/join #moo'>");
document.write("<param name='command3' value='/join #afternet'>");
document.write("<param name='highlight' value='true'>");
document.write("<param name='style:bitmapsmileys' value='true'>");
document.write("<param name='style:smiley1' value=':) img/sourire.gif'>");
document.write("<param name='style:smiley2' value=':-) img/sourire.gif'>");
document.write("<param name='style:smiley3' value=':-D img/content.gif'>");
document.write("<param name='style:smiley4' value=':d img/content.gif'>");
document.write("<param name='style:smiley5' value=':-O img/OH-2.gif'>");
document.write("<param name='style:smiley6' value=':o img/OH-1.gif'>");
document.write("<param name='style:smiley7' value=':-P img/langue.gif'>");
document.write("<param name='style:smiley8' value=':p img/langue.gif'>");
document.write("<param name='style:smiley9' value=';-) img/clin-oeuil.gif'>");
document.write("<param name='style:smiley10' value=';) img/clin-oeuil.gif'>");
document.write("<param name='style:smiley11' value=':-( img/triste.gif'>");
document.write("<param name='style:smiley12' value=':( img/triste.gif'>");
document.write("<param name='style:smiley13' value=':-| img/OH-3.gif'>");
document.write("<param name='style:smiley14' value=':| img/OH-3.gif'>");
document.write("<param name='style:smiley15' value=':'( img/pleure.gif'>");
document.write("<param name='style:smiley16' value=':$ img/rouge.gif'>");
document.write("<param name='style:smiley17' value=':-$ img/rouge.gif'>");
document.write("<param name='style:smiley18' value='(H) img/cool.gif'>");
document.write("<param name='style:smiley19' value='(h) img/cool.gif'>");
document.write("<param name='style:smiley20' value=':-@ img/enerve1.gif'>");
document.write("<param name='style:smiley21' value=':@ img/enerve2.gif'>");
document.write("<param name='style:smiley22' value=':-S img/roll-eyes.gif'>");
document.write("<param name='style:smiley23' value=':s img/roll-eyes.gif'>");
document.write("<param name='style:sourcefontrule1' value='none+Channel all DialogInput 12'>");
document.write("<param name='style:sourcefontrule2' value='none+ChanList all DialogInput 12'>");
document.write("<param name='style:highlight' value='true'>");
document.write("<param name='style:floatingasl' value='true'>");
document.write("<param name='pixx:styleselector' value='true'>");
document.write("<param name='pixx:setfontonstyle' value='true'>");
document.write("<param name='pixx:highlightnick' value='true'>");
document.write("<param name='pixx:nickfield' value='true'>");
document.write("<param name='pixx:timestamp' value='true'>");
document.write("<param name='pixx:configurepopup' value='true'>");
document.write("<param name='pixx:popupmenustring1' value='Whois'>");
document.write("<param name='pixx:popupmenustring2' value='Query'>");
document.write("<param name='pixx:popupmenustring3' value='Ban'>");
document.write("<param name='pixx:popupmenustring4' value='kick + Ban'>");
document.write("<param name='pixx:popupmenustring5' value='--'>");
document.write("<param name='pixx:popupmenustring6' value='Op'>");
document.write("<param name='pixx:popupmenustring7' value='DeOp'>");
document.write("<param name='pixx:popupmenustring8' value='Voice'>");
document.write("<param name='pixx:popupmenustring9' value='DeVoice'>");
document.write("<param name='pixx:popupmenustring10' value='--'>");
document.write("<param name='pixx:popupmenustring11' value='Ping'>");
document.write("<param name='pixx:popupmenustring12' value='Version'>");
document.write("<param name='pixx:popupmenustring13' value='Time'>");
document.write("<param name='pixx:popupmenustring14' value='Finger'>");
document.write("<param name='pixx:popupmenucommand1_1' value='/Whois %1'>");
document.write("<param name='pixx:popupmenucommand2_1' value='/Query %1'>");
document.write("<param name='pixx:popupmenucommand3_1' value='/mode %2 -o %1'>");
document.write("<param name='pixx:popupmenucommand3_2' value='/mode %2 +b %1'>");
document.write("<param name='pixx:popupmenucommand4_1' value='/mode %2 -o %1'>");
document.write("<param name='pixx:popupmenucommand4_2' value='/mode %2 +b %1'>");
document.write("<param name='pixx:popupmenucommand4_3' value='/kick %2 %1'>");
document.write("<param name='pixx:popupmenucommand6_1' value='/mode %2 +o %1'>");
document.write("<param name='pixx:popupmenucommand7_1' value='/mode %2 -o %1'>");
document.write("<param name='pixx:popupmenucommand8_1' value='/mode %2 +v %1'>");
document.write("<param name='pixx:popupmenucommand9_1' value='/mode %2 -v %1'>");
document.write("<param name='pixx:popupmenucommand11_1' value='/CTCP PING %1'>");
document.write("<param name='pixx:popupmenucommand12_1' value='/CTCP VERSION %1'>");
document.write("<param name='pixx:popupmenucommand13_1' value='/CTCP TIME %1'>");
document.write("<param name='pixx:popupmenucommand14_1' value='/CTCP FINGER %1'>");
document.write("</applet>");
}

</script>
</head>
<body onload='startChat();' >
<div align="center"></div>
</body>
</html>



obviously edit it to suit whatever options you are using
Last edited by Thema on Sun Feb 20, 2005 3:33 am, edited 2 times in total.
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby Thema » Mon Aug 30, 2004 1:53 am

Here is a PHP login page for those of you that have PHP support:
Code: Select all
<?php

/************************************************************************/
/* PHP: PHP Login Page                                                  */
/* ===================                                                  */
/*  The following ensures that user input is collected whether POST,    */
/*  or GET is used.                                                     */
/*  Thema.  (thema@adnd.com)                                            */
/************************************************************************/
if ( isset($HTTP_GET_VARS['nick']) || isset($HTTP_POST_VARS['nick']) )
{
        $nick = ( isset($HTTP_GET_VARS['nick']) ) ?
                $HTTP_GET_VARS['nick'] : $HTTP_POST_VARS['nick'];
}
if ( isset($HTTP_GET_VARS['chan']) || isset($HTTP_POST_VARS['chan']) )
{
        $chan = ( isset($HTTP_GET_VARS['chan']) ) ?
                $HTTP_GET_VARS['chan'] : $HTTP_POST_VARS['chan'];
}
if ( isset($HTTP_GET_VARS['pass']) || isset($HTTP_POST_VARS['pass']) )
{
        $pass = ( isset($HTTP_GET_VARS['pass']) ) ?
                $HTTP_GET_VARS['pass'] : $HTTP_POST_VARS['pass'];
}

if ( isset($HTTP_GET_VARS['bkgrnd']) || isset($HTTP_POST_VARS['bkgrnd']) )
{
        $bkgrnd = ( isset($HTTP_GET_VARS['bkgrnd']) ) ?
                $HTTP_GET_VARS['bkgrnd'] : $HTTP_POST_VARS['bkgrnd'];
}
if ( isset($HTTP_GET_VARS['timestamp']) || isset($HTTP_POST_VARS['timestamp']) )
{
        $timestamp = ( isset($HTTP_GET_VARS['timestamp']) ) ?
                $HTTP_GET_VARS['timestamp'] : $HTTP_POST_VARS['timestamp'];
}

if ( $chan == $null ) $chan = "TestRoom" ;
if ( $nick == $null ) $nick = "V`Sitor";
if ( $pass == $null )
{
   get_userpass ($nick, $chan);
}
else
{
   chat_room($nick, $chan, $pass, $bkgrnd, $timestamp);
}

function get_userpass($nick, $chan)
{

echo "
      <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'
      'http://www.w3.org/TR/html4/loose.dtd'>
   <html>
   <head>
   <title>Chat page</title>
   </head>

   <body>
   <table align='center'>
     <tr>
      <td align=center >                              
        <form name='jform' id='jform' action='".$_SERVER['  PHP_SELF']."'target='_self'>
         <table width='633' border='0' cellspacing='0'>
           <tr>
            <td valign='center' width='629' colspan='2' align='center'>
                  <h2>Welcome to the <a href='http://www.pjirc.com'>PJirc</a> applet.</h2>
       <p align='center'>
       If you have a password type it into the box. Otherwise do not change it.<font colour=blue><br>
               </font>
            </td>
           </tr>
              <tr>
            <td align='center'>
               <font colour=blue>
                    Type the Room Name               
               </font>
            </td>
            <td align='center'>
               <font colour=blue>
                    Type your Nick</font>
            </td>
              </tr>
              <tr>
            <td align='center'>
               <font colour=blue>
               <input name='chan' type=textbox value=$chan>
               </font>
            </td>
            <td align='center'>
               <font colour=blue>
               <input name='nick' type=textbox value=$nick>
               </font>
            </td>
              </tr>
              <tr>
            <td valign='center' width='629' colspan='2' align='center'>
               add timestamp to posts <input type='checkbox' name='timestamp' value='off'>
                  <br>
            </td>
              </tr>
              <tr>
            <td align='center'>
                    <font colour=blue>
                    Background Image URL
               </font>
            </td>
            <td align='center'>
               <font colour=blue>
                    Type your Password</font>
            </td>
              </tr>
              <tr>
            <td align='center'>
               <font colour=blue>
               <input name='bkgrnd' type=textbox value='N/A'>
               </font>
            </td>
            <td align='center'>
                    <font colour=blue><input name='pass' type=textbox value='N/A'>
                    </font>
            </td>
              </tr>
              <tr>
            <td valign='center' width='629' colspan='2' align='center'>
       If the fields are correct please just hit <font colour=blue>
       <br>
       <input name='submit' type=submit value='Let`s Chat'></font>
            </td>
              </tr>
           </table>
        </form>
      </td>
     </tr>
   </table>
   </body>
   </html>
  \n";

}


function chat_room($nick, $chan, $pass, $bkgrnd, $timestamp)
{
   if ($pass == 'N/A') $pass='';
   if ($bkgrnd=="" || $bkgrnd==null || $bkgrnd=="N/A") $img='false'; else $img='true';

echo "
   <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'
      'http://www.w3.org/TR/html4/loose.dtd'>
   <html>
   <head>
   <title>Chat page</title>
   </head>

   <body>
      <applet alt='Loading PJirc applet please be patient' codebase='./' name='jchat' code=IRCApplet.class archive='irc.jar, pixx.jar' width=550 height=320 align='left'>
         <param name='CABINETS' value='irc.cab,securedirc.cab,pixx.cab'>
         <param name='nick' value='".$nick."'>
         <param name='alternatenick' value='".$nick."???'>
         <param name='name' value='A PJirc user'>
         <param name='host' value='irc.evolu.net'>
         <param name='alternateserver1' value='irc.evolu.net'>
         <param name='port' value='6667'>
         <param name='quitmessage' value='Bye!'>
         <param name='asl' value='true'>
         <param name='gui' value='pixx'>
         <param name='pixx:helppage' value='http://www.myserver.com/chathelp.html'>
         <param name='style:floatingasl' value='true'>
         <param name='language' value='english'>
         <param name='pixx:nickfield' value='true'>
         <param name='pixx:styleselector' value='true'>
         <param name='pixx:setfontonstyle' value='true'>
         \n";
   if ($timestamp != '')
      {
      echo "
      <param name='pixx:timestamp' value='true'>

      \n";
      }
   if ($pass != '')
      {
         echo "
         <param name='command1' value='/msg nickserv identify ".$pass."'>
         <param name='command2' value='join #".$chan."'>
         \n";
      } else
      {
         echo "
         <param name='command1' value='join #".$chan."'>
         \n";
      }

      echo "                  
         <param name='pixx:language' value='pixx-english'>
         <param name='pixx:configurepopup' value='true'>
         <param name='pixx:popupmenustring1' value='Whois'>
         <param name='pixx:popupmenustring2' value='Query'>
         <param name='pixx:popupmenustring3' value='Ignore'>         
         <param name='pixx:popupmenustring4' value='unIgnore'>   
         <param name='pixx:popupmenustring5' value='Kick'>                     
         <param name='pixx:popupmenustring6' value='Ban'>                     
         <param name='pixx:popupmenustring7' value='kick + Ban'>               
         <param name='pixx:popupmenustring8' value='--'>                     
         <param name='pixx:popupmenustring9' value='Op'>                     
         <param name='pixx:popupmenustring10' value='DeOp'>                   
         <param name='pixx:popupmenustring11' value='Voice'>                   
         <param name='pixx:popupmenustring12' value='DeVoice'>                 
         <param name='pixx:popupmenustring13' value='--'>                     
         <param name='pixx:popupmenustring14' value='Ping'>                   
         <param name='pixx:popupmenustring15' value='Version'>                 
         <param name='pixx:popupmenustring16' value='Time'>                   
         <param name='pixx:popupmenustring17' value='Finger'>                 
         <param name='pixx:popupmenucommand1_1' value='/Whois %1'>
         <param name='pixx:popupmenucommand2_1' value='/Query %1'>
         <param name='pixx:popupmenucommand3_1' value='/Ignore %1'>
         <param name='pixx:popupmenucommand4_1' value='/Ignore -r %1'>
         <param name='pixx:popupmenucommand5_1' value='/mode %2 -o %1'>           
         <param name='pixx:popupmenucommand5_2' value='/cs kick %2 %1 Get out of here'>           
         <param name='pixx:popupmenucommand6_1' value='/mode %2 -o %1'>           
         <param name='pixx:popupmenucommand7_2' value='/mode %2 +b %1'>           
         <param name='pixx:popupmenucommand7_1' value='/mode %2 -o %1'>           
         <param name='pixx:popupmenucommand7_2' value='/mode %2 +b %1'>           
         <param name='pixx:popupmenucommand7_3' value='/cs kick %2 %1 Get out of here'>               
         <param name='pixx:popupmenucommand10_1' value='/mode %2 +o %1'>           
         <param name='pixx:popupmenucommand11_1' value='/mode %2 -o %1'>           
         <param name='pixx:popupmenucommand12_1' value='/mode %2 +v %1'>           
         <param name='pixx:popupmenucommand13_1' value='/mode %2 -v %1'>           
         <param name='pixx:popupmenucommand14_1' value='/CTCP PING %1'>           
         <param name='pixx:popupmenucommand15_1' value='/CTCP VERSION %1'>         
         <param name='pixx:popupmenucommand16_1' value='/CTCP TIME %1'>           
         <param name='pixx:popupmenucommand17_1' value='/CTCP FINGER %1'>         
         <param name='style:bitmapsmileys' value='true'>
         <param name='style:smiley1' value=':) /classes/applet_images/smile.gif'>
         <param name='style:smiley2' value=':-) /classes/applet_images/smile.gif'>
         <param name='style:smiley3' value=':( /classes/applet_images/frown.gif'>
         <param name='style:smiley4' value=':-( /classes/applet_images/frown.gif'>
         <param name='style:smiley5' value='<:( /classes/applet_images/frown.gif'>
         <param name='style:smiley6' value=':D /classes/applet_images/biggrin.gif'>
         <param name='style:smiley7' value=':-D /classes/applet_images/biggrin.gif'>
         <param name='style:smiley8' value=':P /classes/applet_images/tongue.gif'>
         <param name='style:smiley9' value=':-P /classes/applet_images/tongue.gif'>
         <param name='style:smiley10' value=':p /classes/applet_images/tongue.gif'>
         <param name='style:smiley11' value=':-p /classes/applet_images/tongue.gif'>
         <param name='style:smiley12' value='>:[ /classes/applet_images/angry.gif'>
         <param name='style:smiley13' value='>:| /classes/applet_images/angry.gif'>
         <param name='style:smiley14' value='>;( /classes/applet_images/angry.gif'>
         <param name='style:smiley15' value='>:( /classes/applet_images/angry.gif'>
         <param name='style:smiley16' value=':* /classes/applet_images/kisses.gif'>
         <param name='style:smiley17' value=';* /classes/applet_images/kisses.gif'>
         <param name='style:smiley18' value=':+ /classes/applet_images/kisses.gif'>
         <param name='style:smiley19' value=';) /classes/applet_images/wink.gif'>
         <param name='style:smiley20' value=';-) /classes/applet_images/wink.gif'>
         <param name='style:smiley21' value='<:O /classes/applet_images/shock.gif'>
         <param name='style:smiley22' value=':O /classes/applet_images/shock.gif'>
         <param name='style:smiley23' value=':o /classes/applet_images/shock.gif'>
         <param name='style:smiley24' value=':) /classes/applet_images/shy.gif'>
         <param name='style:smiley25' value=':o) /classes/applet_images/clown.gif'>
         <param name='style:smiley26' value=':/( /classes/applet_images/crying.gif'>
         <param name='style:smiley27' value='8) /classes/applet_images/glasses.gif'>
         <param name='style:smiley28' value='B) /classes/applet_images/glasses.gif'>
         <param name='style:smiley29' value='0:) /classes/applet_images/angel.gif'>
         <param name='style:smiley30' value='o:) /classes/applet_images/angel.gif'>
         <param name='style:smiley31' value='O:) /classes/applet_images/angel.gif'>
         <param name='style:smiley32' value='():) /classes/applet_images/angel.gif'>
         <param name='style:smiley33' value='%| /classes/applet_images/freak.gif'>
         <param name='style:smiley34' value='%) /classes/applet_images/freak.gif'>
         <param name='style:smiley35' value=':| /classes/applet_images/indifferent.gif'>
         <param name='style:smiley36' value='|º /classes/applet_images/sleep.gif'>
         <param name='style:smiley37' value='|-º /classes/applet_images/sleep.gif'>
         <param name='style:smiley38' value='|o /classes/applet_images/sleep.gif'>
         <param name='style:smiley39' value='|-o /classes/applet_images/sleep.gif'>
         <param name='style:smiley40' value=':\ /classes/applet_images/undecided.gif'>
         <param name='style:smiley41' value=':/ /classes/applet_images/undecided.gif'>
         <param name='style:smiley42' value=':s /classes/applet_images/incoherent.gif'>
         <param name='style:smiley43' value=':S /classes/applet_images/incoherent.gif'>
         <param name='style:smiley44' value='8| /classes/applet_images/surprised.gif'>
         <param name='style:smiley45' value='8) /classes/applet_images/surprised.gif'>
         <param name='style:smiley46' value='x( /classes/applet_images/dead.gif'>
         <param name='style:smiley47' value='X( /classes/applet_images/dead.gif'>
         <param name='style:smiley48' value='x| /classes/applet_images/dead.gif'>
         <param name='style:smiley49' value='X| /classes/applet_images/dead.gif'>
         <param name='style:smiley50' value='#( /classes/applet_images/dead.gif'>
         <param name='style:smiley51' value='#| /classes/applet_images/dead.gif'>
         <param name='style:smiley52' value=':9 /classes/applet_images/liking_lips.gif'>
         <param name='style:smiley53' value=';9 /classes/applet_images/liking_lips.gif'>
         <param name='style:smiley54' value='=) /classes/applet_images/bugs_smile.gif'>
         <param name='style:backgroundimage' value='".$img."'>
      </applet>
   </body>
</html>
\n";
}
?>


If this does not suit you exactly please feel free to edit it to your taste.
Last edited by Thema on Mon Aug 30, 2004 2:34 am, edited 1 time in total.
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby Thema » Mon Aug 30, 2004 2:33 am

This is a much simpler PHP Login page by ttyR2, modified for PJirc v2.x.

index.html
Code: Select all
<script language="javascript" type="text/javascript">
   // Validate all form input before sending the request on its way
   function validate ( frm ) {
      
      if (frm.username.value == '') {
         alert('Please enter a user name.');
         return false;
      }
      if (frm.server.value == '') {
         alert('Please enter an IRC server.');
         return false;
      }
      // All is well - submit the form
      return true;
   }
</script>

<HTML>
<HEAD>
  <TITLE>PJIRC</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" MARGINHEIGHT="0"
topmargin="0">

<FORM name="login" method="post" action="irc.php" onSubmit="return validate(this);">
<P><CENTER><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3">
  <TR>
    <TD><IMG SRC="pjirclogo.jpg" ALT="PJIRC IRC Chat Solutions"
      BORDER="0" NATURALSIZEFLAG="0" ALIGN="BOTTOM"></TD>
  </TR>
</TABLE><BR>
</CENTER></P>

<P><CENTER><TABLE WIDTH="476" BORDER="0" CELLSPACING="2" CELLPADDING="0">
  <TR>
    <TD WIDTH="100%">
      <P><CENTER><FONT FACE="Verdana"><HR>Welcome to the PJIRC IRC Chat Client</FONT></CENTER></P>

      <P><CENTER><FONT SIZE="-1" FACE="Verdana">This server provides a java-based irc client.</FONT><FONT FACE="Verdana"><BR>
      <HR ALIGN=CENTER></FONT>
    </TD>
  </TR>
</TABLE></CENTER></P>

<P><CENTER><TABLE width="60%" BORDER="0" CELLSPACING="2" CELLPADDING="2">
  <TR>
    <TD align="left">
      <P ALIGN=RIGHT><FONT SIZE="-1" FACE="Verdana">User Name:</FONT>
      </TD>
                  <td align="left" valign="top"><INPUT NAME="username" TYPE="text" SIZE="25"></td>
               </TR>
  <TR>
    <TD align="left">
      <P ALIGN=RIGHT><FONT SIZE="-1" FACE="Verdana">Server Password:      </FONT></TD>
                  <td align="left" valign="top"><INPUT NAME="password" TYPE="password" SIZE="25"></td>
               </TR>
  <TR>
    <TD align="left">
      <P ALIGN=RIGHT><FONT SIZE="-1" FACE="Verdana">IRC Server:      </FONT></TD>
                  <td align="left" valign="top"><INPUT NAME="server" TYPE="text" SIZE="25"></td>
               </TR>
  <TR>
    <TD align="left">
      <P ALIGN=RIGHT><FONT SIZE="-1" FACE="Verdana">IRC Channel:      </FONT></TD>
                  <td align="left" valign="top"><INPUT NAME="channel" TYPE="text" SIZE="25"></td>
               </TR>
  <TR>
    <TD>
      <P><CENTER></CENTER></TD>
                  <td><INPUT NAME="submit" TYPE="submit" VALUE="Log in"></td>
               </TR>
</TABLE></CENTER>
</FORM>

</BODY>
</HTML>


irc.php
Code: Select all
   <applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400>
   <param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">
   <param name="nick" value="<?=$username?>">
   <param name="alternatenick" value="<?=$username?>??">
   <param name="password" value="<?=$password?>">
   <param name="name" value="<?=$username?>">
   <param name="host" value="<?=$server?>">
   <param name="port" value="6667">
   <param name="command1" value="join <?=$channel?>">
   <param name="gui" value="pixx">
   <param name="quitmessage" value="PJIRC forever!">
   <param name="language" value="english">
   <param name="pixx:language" value="pixx-english">
   <param name="pixx:timestamp" value="true">
   <param name="pixx:highlight" value="true">
   <param name="pixx:highlightnick" value="true">
   <param name="pixx:nickfield" value="true">
   <param name="soundbeep" value="snd/bell2.au">
   <param name="soundquery" value="snd/ding.au">
   </applet>


Also you will need the PJirc logo. Windows users just right click and select save as.
Image

There is no support for any of these pages on this forum so please do not ask!
Last edited by Thema on Sun Oct 15, 2006 6:18 pm, edited 1 time in total.
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Login page by Peregrine CoD

Postby Thema » Sat Jul 09, 2005 10:17 pm

Peregrine CoD wrote:I was working on a simple all-in-one page to provide a nice way to login and run the applet all from a single page. Here is what I came up with (with help looking from Thema's coding and other various sources on the net). I just felt that I'd like to share this nice single page version with ppl.

Code: Select all
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
<html>
<head>
<title>Web IRC Window</title>

<script language="javascript" type="text/javascript">
<!--
function startChat(nick,pass,chan,port,scrl) {
document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>\n");
document.write("<HTML>\n");
document.write("<HEAD><TITLE>Web IRC Chat</TITLE></HEAD>\n");
document.write("<BODY bgcolor=#11081B link=#BBBBEE>\n");
document.write("<TABLE width="100%" height="121">\n");
document.write("   <TR><TD align=left height="407">\n");
document.write("      <applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400>\n");
document.write("         <param name="autoconnection" value="true">\n");
document.write("         <param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">\n");
document.write("         <param name="nick" value=""+nick+"">\n"); 
document.write("         <param name="alternatenick" value=""+nick+"???">\n");
document.write("         <param name="name" value="Web Client User">\n");
document.write("         <param name="host" value="irc.server.org">\n");
document.write("         <param name="port" value=""+port+"">\n"); 
document.write("         <param name='command1' value='/mode "+nick+" +i'>)\n");
if ( pass != "") {
   document.write("         <param name='command2' value='/msg nickserv identify "+pass+"'>)\n");
}
if ( pass != "") {
   if ( chan != "") {
      document.write("         <param name='command3' value='/join "+chan+"'>)\n");
   }
}
document.write("         <param name="gui" value="pixx">\n");
document.write("         <param name="quitmessage" value="Web IRC Disconnected">\n");
document.write("         <param name="pixx:timestamp" value="true">\n");
document.write("         <param name="pixx:highlight" value="true">\n");
document.write("         <param name="pixx:highlightnick" value="true">\n");
document.write("         <param name="pixx:nickfield" value="false">\n");
document.write("         <param name="pixx:styleselector" value="true">\n");
document.write("         <param name="pixx:setfontonstyle" value="true">\n");
document.write("         <param name="pixx:showchanlist" value="false">\n");
document.write("         <param name="pixx:showabout" value="false">\n");
document.write("         <param name="pixx:showconnect" value="true">\n");
document.write("         <param name="pixx:showdock" value="false">\n");
document.write("         <param name="pixx:scrollspeed" value=""+scrl+"">\n");
document.write("         <param name="pixx:color0" value="BBBBEE">\n");
document.write("         <param name="pixx:color1" value="BBBBEE">\n");
document.write("         <param name="pixx:color5" value="1E1929">\n");
document.write("         <param name="pixx:color6" value="11081B">\n");
document.write("         <param name="pixx:color7" value="1E1929">\n");
document.write("         <param name="pixx:color8" value="1E1929">\n");
document.write("         <param name="pixx:color9" value="1E1929">\n");
document.write("      </applet>\n");
document.write("         </TD></TR>\n");
document.write("</TABLE>\n");
document.write("</BODY>\n");
document.write("</HTML>\n");
}

// -->
</script>

</head>
<body bgcolor=11081B>

<form name="wi_login" action="..." method="post">

<div align="center">
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="498" id="AutoNumber1">
    <tr>
      <td width="498" height="33" colspan="2" align="center">
                  <h2><font color="#BBBBEE" size="4">Web IRC Connection -- Login Page</font></h2>
         </td>
    </tr>
    <tr>
      <td width="258" height="59" align="center"><b><font color="#BBBBEE">
                    Enter your Nick :</font></b><p><input name="wi_nick" type=text value="guest" size="20" tabindex="1"></p>
      <p>
       <b><font color="#FF0000" size="2">*</font></b><font size="2" color="#FF0000"><b>Enter
      your Nick or leave as guest if you want to remain anonymous.</b></font></td>
      <td width="240" height="59" align="center"><b><font color="#BBBBEE">
                    Enter your Password :</font></b><p><input name="wi_pass" type=password size="20" tabindex="2"></p>
       <p>
       <b><font color="#FF0000" size="2">*If you have a password type it into the box. Otherwise leave it blank.</font></b></td>
    </tr>
    <tr>
      <td width="249" height="38" align="center"><b><font color="#BBBBEE">
                    Enter a channel to auto-join :</font></b><p><input name="wi_chan" type=text value="" size="20" tabindex="3"></p>
      <p>
       <b><font color="#FF0000" size="2">*You have to be identified to auto-join channels.</font></b></td>
      <td width="249" height="38" align="center"><b><font color="#BBBBEE">Port
      Selection :</font></b><p><select name="wi_port" size="1" tabindex="4">
   <option selected value="6667">6667</option>
   <option value="6668">6668</option>
   <option value="5550">5550</option>
      </select></p>
      <p><font color="#FF0000" size="2"><b>*only change the port if you are
      blocked by a firewall.</b></font></td>
    </tr>
    <tr>
      <td width="498" height="1" colspan="2" align="center"></td>
    </tr>
    <tr>
      <td width="498" height="1" colspan="2" align="center"><b><font color="#BBBBEE">
         Topic Scroll Speed :</font></b><p><select name="wi_scrl" size="1" tabindex="5">
   <option value=0>0</option>
   <option value=1>1</option>
   <option value=2>2</option>
   <option value=3>3</option>
   <option value=4>4</option>
   <option value=5>5</option>
   <option value=6>6</option>
   <option value=7>7</option>
   <option value=8>8</option>
   <option value=9>9</option>
   <option selected value=10>10</option>
   <option value=11>11</option>
   <option value=12>12</option>
   <option value=13>13</option>
   <option value=14>14</option>
   <option value=15>15</option>
   <option value=16>16</option>
   <option value=17>17</option>
   <option value=18>18</option>
   <option value=19>19</option>
   <option value=20>20</option>
</select></p>
         <p><b><font color="#FF0000" size="2">*Value 0 to 20 (0 is stationary,
         20 is fast scrolling.)</font></b></td>
    </tr>
    <tr>
      <td width="498" height="45" colspan="2" align="center">

<input type="button" value="Connect" tabindex="6" onClick="startChat(document.wi_login.wi_nick.value,document.wi_login.wi_pass.value,document.wi_login.wi_chan.value,document.wi_login.wi_port.options[document.wi_login.wi_port.selectedIndex].value,document.wi_login.wi_scrl.options[document.wi_login.wi_scrl.selectedIndex].value)";>
<input name='clear' type=reset value='Clear' tabindex="7"></td>
    </tr>
  </table>
</div>
</form>
</body>
</html>
There is no support for any of these pages in this forum so please don't ask.
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

pop-up, sound, timestamp, background, and font (by Alixi)

Postby Thema » Mon Oct 01, 2007 10:30 pm

alixi wrote:Alrighty. After looking through the entire site and forums, and freelance's popup.js (in german) I've managed to piece together a working pjirc with all of the following:

1. login opens up a new pjirc window
2. sound can be selected for on/off
3. timestamp can be selected for on/off
4. selectable background for conversation area
5. initial font face/size
6. forces the user to go to a particular IRC server (mine is a private server)
7. automatically logs you into a room called #chat


here is the login page (index.html):
-----------------------------------------
Code: Select all
<html>
<head>
<title>login</title>
<script language="JavaScript" src="popup.js">
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF" text="#000000">
<FORM NAME="UserInfo">
<div align="center">
<center>
      <TABLE BORDER=0 CELLSPACING=0 cellpadding=2>
<TR >
<TD align="right"><font face="verdana, arial, helvetica"
size="2"><b>Nickname:</b></font></TD>
<TD><input TYPE=TEXT NAME="NICKNAME" SIZE=9 MAXLENGTH=9 value="Guest"></TD>
</TR>
<tr>
<td align="right"><font face="verdana, arial, helvetica"
size="2"><b>Background:</b></font></td>
<td><select name="color" size="1">
<option value="black">black w/ white text</option>
<option value="white">white w/ black text</option>
<option value="grey">grey w/ black text</option>
</select>
</td>
</tr>
<tr><td align="right"><font face="verdana, arial, helvetica" size="2">
<b>Font:</b></font></td>
<td><select name="fontface" size="1">
        <option value="Dialog">Dialog</option>
        <option value="SansSerif" selected>SansSerif</option>
        <option value="Serif">Serif</option>
        <option value="Monospaced">Monospaced</option>
        <option value="DialogInput">DialogInput</option>
        <option value="Verdana">Verdana</option>
      </select>
      <select name="fontsize" size="1">
        <option value="10">10</option>
        <option value="11">11</option>
        <option value="12">12</option>
        <option value="14" selected>14</option>
        <option value="15">15</option>
        <option value="16">16</option>
      </select>
</td>
</tr>
<tr>
<td align="right"><font face="verdana, arial, helvetica"
size="2"><b>Sound:</b></font></td>
<td><select name="sound" size="1">

<option value="yes">Yes</option>
<option value="no" selected>No</option>
</select>
</td>
</tr>
<tr><td align="right"><font face="verdana, arial, helvetica" size="2">
<b>Timestamp:</b></font></td>
<td><select name="timestamp" size="1">
        <option value="true">Yes</option>
        <option value="false">No</option>
      </select>
</td>
</tr>


<TR>
<TD COLSPAN=2 align=center>
<br>
<INPUT TYPE="BUTTON" VALUE="Go Chat!" onClick="send()">
</td></tr>
</TABLE>
</center>
</div>
</FORM>
<br>

</center>
</body>
</html>

--------------------------------------------

Here is the popup.js script:
Code: Select all
function popupChat() {
win=window.open("popup.html", "WebChat",
"height=500,width=600");
}


function send()
{
if (document.UserInfo.NICKNAME.value == null ||
document.UserInfo.NICKNAME.value == "")
{
window.alert("You need a nickname! Max is 9 characters")
return false
}

if (document.UserInfo.color.value == "black")
{
        var bg = "000000"
        var bg1 = "FFFFFF"
}
if (document.UserInfo.color.value == "grey")
{
        var bg = "808080"
        var bg1 = "000000"
}
if (document.UserInfo.color.value == "white")
{
        var bg = "FFFFFF"
        var bg1 = "000000"
}

if (document.UserInfo.timestamp.value == "true")
{
        var time = "true"
}
if (document.UserInfo.timestamp.value == "false")
{
        var time = "false"
}


var USERNICK = document.UserInfo.NICKNAME.value
var fontface = document.UserInfo.fontface.value
var fontsize = document.UserInfo.fontsize.value


win=window.open("","IRC","resizable=yes,height=500,width=600")
win.document.write('<html><head><title>CHAT!</title></head>')
win.document.write('<body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>')
win.document.write('<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=100% height=100%>')
win.document.write('<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">')
win.document.write('<param name="nick" value="'+USERNICK+'">')
win.document.write('<param name="alternatenick" value="'+USERNICK+'???">')
win.document.write('<param name="host" value="IRC SERVER HERE">')
win.document.write('<param name="port" value="6667">')
win.document.write('<param name="gui" value="pixx">')
win.document.write('<param name="name" value="'+USERNICK+'">')
win.document.write('<param name="command1" value="/join #chat">')
win.document.write('<param name="pixx:language" value="english">')
win.document.write('<param name="pixx:helppage" value="help.html">')
win.document.write('<param name="soundquery" value="snd/ding.au">')
win.document.write('<param name="pixx:configurepopup" value="false">')
win.document.write('<param name="pixx:basecolor" value="384,256,128">')
win.document.write('<param name="pixx:color0" value="585858">')
win.document.write('<param name="pixx:color1" value="000000">')
win.document.write('<param name="pixx:color2" value="221100">')
win.document.write('<param name="pixx:color3" value="221100">')
win.document.write('<param name="pixx:color4" value="E2E2E2">')
win.document.write('<param name="pixx:color5" value="ACACAC">')
win.document.write('<param name="pixx:color6" value="949494">')
win.document.write('<param name="pixx:color7" value="E2E2E2">')
win.document.write('<param name="pixx:color8" value="ACACAC">')
win.document.write('<param name="pixx:color9" value="ACACAC">')
win.document.write('<param name="pixx:color10" value="BBAA99">')
win.document.write('<param name="pixx:color11" value="ACACAC">')
win.document.write('<param name="pixx:color12" value="CF6366">')
win.document.write('<param name="pixx:color13" value="ACACAC">')
win.document.write('<param name="pixx:color14" value="ACACAC">')
win.document.write('<param name="pixx:color15" value="949494">')
win.document.write('<param name="style:sourcecolorrule1" value="Msg+Channel all
0='+bg+' 1='+bg1+'">')
win.document.write('<param name="style:sourcefontrule1" value="none+Channel all
'+fontface+' '+fontsize+'">')

win.document.write('<param name="pixx:timestamp" value="'+time+'">')
win.document.write('<param name="pixx:highlight" value="true">')
win.document.write('<param name="pixx:highlightnick" value="true">')
win.document.write('<param name="style:smileys" value="true">')
win.document.write('<param name="quitmessage" value="just bit the dust!">')
win.document.write('<param name="asl" value="false">')
win.document.write('<param name="style:bitmapsmileys" value="true">')
win.document.write('<param name="pixx:nickfield" value="true">')
win.document.write('<param name="pixx:styleselector" value="true">')
win.document.write('<param name="pixx:setfontonstyle" value="true">')
win.document.write('<param name="style:floatingasl" value="false">')
win.document.write('<param name="pixx:showabout" value="false">')
win.document.write('<param name="pixx:showhelp" value="false">')
win.document.write('<param name="pixx:showchannelnickmodeapply" value="false">')
win.document.write('<param name="pixx:showchannelmodeapply" value="false">')
if (document.UserInfo.sound.value == "yes")
{
win.document.write('<param name="soundword1" value="q snd/ding.au">')
win.document.write('<param name="soundword2" value="w snd/ding.au">')
win.document.write('<param name="soundword3" value="e snd/ding.au">')
win.document.write('<param name="soundword4" value="r snd/ding.au">')
win.document.write('<param name="soundword5" value="t snd/ding.au">')
win.document.write('<param name="soundword6" value="y snd/ding.au">')
win.document.write('<param name="soundword7" value="u snd/ding.au">')
win.document.write('<param name="soundword8" value="i snd/ding.au">')
win.document.write('<param name="soundword9" value="o snd/ding.au">')
win.document.write('<param name="soundword10" value=p snd/ding.au">')
win.document.write('<param name="soundword11" value="a snd/ding.au">')
win.document.write('<param name="soundword12" value="s snd/ding.au">')
win.document.write('<param name="soundword13" value="d snd/ding.au">')
win.document.write('<param name="soundword14" value="f snd/ding.au">')
win.document.write('<param name="soundword15" value="g snd/ding.au">')
win.document.write('<param name="soundword16" value="h snd/ding.au">')
win.document.write('<param name="soundword17" value="j snd/ding.au">')
win.document.write('<param name="soundword18" value="k snd/ding.au">')
win.document.write('<param name="soundword19" value="l snd/ding.au">')
win.document.write('<param name="soundword20" value="z snd/ding.au">')
win.document.write('<param name="soundword21" value="x snd/ding.au">')
win.document.write('<param name="soundword22" value="c snd/ding.au">')
win.document.write('<param name="soundword23" value="v snd/ding.au">')
win.document.write('<param name="soundword24" value="b snd/ding.au">')
win.document.write('<param name="soundword25" value="n snd/ding.au">')
win.document.write('<param name="soundword26" value="m snd/ding.au">')
win.document.write('</applet>')
win.document.write('</body>')
win.document.write('</html>')
}
else
{
win.document.write('</applet>')
win.document.write('</body>')
win.document.write('</html>')
}
win.document.close()
return true
}

------------------------
Hope this helps people out in some way.

Thanks to plouf for making pjirc, and freelance!
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm


Return to PJirc related Scripts & Themes

Who is online

Users browsing this forum: No registered users and 1 guest

cron