instructions:
-upload all the jpilot files to your vb root. see jpilot site for download and instructions.
-upload both scripts in the scripts folder to your vb root.
-create the new templates in your vb admin cp. see templates folder... templates to be named the same as each file, etc.
-configure the jpilot params in the chatmain template. see the jpilot site for a list of all params and their functions.
-put this link in your header template or where ever you want the IRC chat link to be: <a href="chat.php?s=$session[sessionhash]" onClick="window.open('chat.php?s=$session[sessionhash]','key','WIDTH=600,HEIGHT=450,scrollbars=no,left=5 0,top=50,screenX=50,screenY=50');return false">IRC Chat</a>
-that's it!
how it works:
-link to the chat.php file first... this pulls the "chat" template which is an intro type of thing with info about the chat. put whatever "intro" type stuff you want in the "chat" template. the chat.php script does not check for registration.
-in the "chat" template that the chat.php pulls there is a link to the chatmain.php file which checks for registration. if the user isn't registered or not logged in they are directed to the "chatnoreg" template which gives them a note saying they aren't logged in, etc. you can customize the chatnoreg template to say whatever you want. if they *are* logged in then they are directed to the chatmain template which has the applet and the params which loads the chat.
-my jpilot params are set up so the user isn't even given a chat config screen. their name is auto filled in and they are auto logged into chat. i also have a param that disables the /nick command. only registered members can chat and they can't change their name in chat to impersonate people. if you want this set up differently it's all in the params (see the jpilot site for info).
--jake
*cream pie*
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
this looks good... do you have a rough idea of how much server strain or memory this would use, though? I've heard nothing but bad things about java applets and chats
[QUOTE]Originally posted by Justice this looks good... do you have a rough idea of how much server strain or memory this would use, though? I've heard nothing but bad things about java applets and chats
[QUOTE]Originally posted by derfelix only if the chat server is on your server..
the chat applet is executed client-side
and the server is somewhere else!
How is this different from the original jPilot integration hack, posted here, coupled with my modification to it, posted here? Aside from the fact that yours goes in a popup window.
[QUOTE]Originally posted by JJR512 How is this different from the original jPilot integration hack, posted here, coupled with my modification to it, posted here? Aside from the fact that yours goes in a popup window.
[QUOTE]Originally posted by JJR512 How is this different from the original jPilot integration hack, posted here, coupled with my modification to it, posted here? Aside from the fact that yours goes in a popup window.
It's true that anyone can come into the channel through a different client, like mIRC. There are probably ways to prevent that with invite-only modes or passwords, but I haven't really looked into that.
If you would like to see a demo on my board, you can login using username="Test User", password="testuser".