1) Download 3guk's "Complete PJIRC Integration" here:
http://www.simplemachines.org/community/index.php?topic=49444.0
Unpack it (retain directory structure!!) and edit the file "Chat.template.php" to your liking.
2) Upload the entire "pjirc" directory from 3guk's to your server (retain the directory-structure!!), place it on the "root" next to the directories "Smileys", "Sources", "Themes" etc.
3) Upload the edited file "Chat.template.php" to the "/Themes/default" directory of your server.
4) Upload the file "Chat.php" to the "/Sources" directory of your server.
5) Edit your main index.php file and add a line with a new action like:
.
.
.
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php', 'Activate'),
'chat' => array('Chat.php', 'Chat'),
'admin' => array('Admin.php', 'Admin'),
.
.
.
(Notice the new 'chat-line' above)
6. Now you can use the TPAdmin panel to add a chat action wherever you want.
Using the "Menu Manager" I added a "Live IRC Chat" link ("index.php?action=chat") on the "Main Menu" which is located on the left side of my forum, and also a separate "link" bloc on the right side - works beautifully!! :D
Hope this can help someone!!
Putting it on my site now....
Let me know how it goes. If you run into any problems my initial post might need editing!!
no problems... it looks like it is working good
Hey cool !! :)
Do you have a demo?
have you used Flashchat? Which do you prefer?
Demo: http://www.pjirc.com/demo.php
I've never used Flashchat. The problem I was facing was that we had been using a irc chat-room (and server) for quite some time, quite a few of our members were connecting using mirc/klient etc, having auth-accounts etc, and all the chat-modules I looked at (aside from PJIRC) did either use a local chat-server (typically using the mysql database or even demanding a full-blown irc-server install - both of which put uneeded strain on the server!!) or they was "locked" to using just ONE server (http://irc.everywherechat.com is one of them) and that was not the server we was using. So I needed to find a applet that made it possible for me to declare "our" server, so far I've only found PJIRC that lets you do this.
Maybe you should take a look at flashchat.
http://www.tufat.com/script2.htm
It looks like a very nifty chat indeed!! But it seems it wont let me connect to the irc-server of my choosing...?
Hi people, We have an IRC chat room here:
http://labradio.co.uk/irc/
It's a stand alone PJIRC Java chat room.. we also use mIRC as our main chat.
Could anybody offer up some ideas of how to integrate our PJIRC chat into an Article?
I've tried installing the mod file into our forum but I get this error returned:
QuoteInstalling this package will perform the following actions:
Type Action Description
1. Execute Modification ./Themes/default/index.template.php Test failed
2. Execute Modification ./index.php Test successful
3. Extract Tree ./pjirc
4. Extract File ./Sources/Chat.php
5. Extract File ./Themes/default/Chat.template.php
6. Extract File ./Themes/default/images/english/chat.gif
I've uploaded a fresh index.template.php and the same error is returned.
We've had this chat room for a long time now, before we even set up our site.
And I think that integrating PJIRC into an Article would be a good mod for many users.
I don't know if it can be done in an Article though.
Any ideas?
Cheers
ZTN
An Error Has Occurred!
Unable to load the 'main' template.
Maybe us because i have 1.1 rc2?
It works!!! thank you so much , i was coping the entire code , instend of addind the chat code alone , thanks a lot man
Okay, I have this all installed and working but I have a small problem. I am not allowing guest access to the chat so the "_mysite" appendage is not necessary in my case. The problem is this, I want it to pass along my user name (PaleRider) without the appended "_" so the channel will op me automatically with chanserv. How do I get rid of the "_" at the tail end of my nick? I have // remarked out the line in the chat.template.php but it still adds the "_"
TIA for any and all help with this matter.
Okay, I dug around in the template a bit and got this sorted. for anyone else who may wish to know you can just replace lines 83 and 89 as follows:
change line 83 to - <param name="nick" value="'. $userchatguestname . '">
change line 89 to - <param name="nick" value="'. $userchatname . '">
PR
Does it matter where you place this code?
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php', 'Activate'),
'chat' => array('Chat.php', 'Chat'),
'admin' => array('Admin.php', 'Admin'),