TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,250
  • Total Topics: 21,354
  • Online today: 626
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

How to integrate PJIRC into TP quick'n'easy

Started by fenris_w0lf, January 22, 2006, 06:16:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fenris_w0lf

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!!

Rasyr


fenris_w0lf

Let me know how it goes. If you run into any problems my initial post might need editing!!

Rasyr

no problems... it looks like it is working good



Xarcell

Do you have a demo?

have you used Flashchat? Which do you prefer?

fenris_w0lf

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.


fenris_w0lf

It looks like a very nifty chat indeed!! But it seems it wont let me connect to the irc-server of my choosing...?

Zetan

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

This website is proudly hosted on Crocweb Cloud Website Hosting.