Author Topic: Integrated Chat Mod  (Read 413744 times)

Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Integrated Chat Mod
« on: December 05, 2004, 08:57:18 PM »
Link to Mod

Version 2.9 is for SMF 1.1.4 ONLY
Version 2.7 is for SMF 1.1.1 ONLY
Version 2.6 is for SMF 1.1 RC2 and RC3 ONLY
Version 2.3 is for SMF 1.0.5,1.0.6,1.0.7
The mod adds a fast java chat window into SMF forum and passes your users username into it. Make sure the room name you choose has not been chosen by anyone else (I use RFC for my room name). This is a fully IRC compliant server, and you could even use mirc or another irc program to log into it.

This is still the only chat mod that can list the number of users AND who they are on your forum page.

Check it in use at http://www.goosemoose.com/ and click on any of the forums. You can login with test:test

This is the same mod that has been used since YabbSE.

Make sure to follow the readme file after uploading and installing using the package manager.

New in 2.7
Fixed so it works with SMF 1.1.1

NEW in 2.6
Number of users and a list of users is now stored on in your mysql database. The forum will poll the irc server every 3 minutes by default for updated info. The polling time (in seconds) can be changed in moderator settings with the rest of this info.

The reason of this is to GREATLY increase the load time of the boad as the irc server response time is 1-2 seconds. You no longer need to rely on the server as the info is local. Also, your forum won't hang while waiting for a response if the irc server gets reset.

NEW in 2.5
Addded the ability to toggle on/off chat stats at top of index page.
Move chat into a separate area of Features and Option in Admin panel.
NEW in 2.4
Added the ability to toggle on/off chat stats at bottom of index.

NEW in 2.3
Fixed rooms tab option so you can choose whether or not to show other rooms.
Added an option to turn the ads on or off. The ads are set to on by default. They are there to help support the heavy usage the chat server has, but you can easily turn it off if you want.
Fixed a few other small things.

NEW in 2.2:
If you are using the mod in english you can change the chatLanguage from embedded.prm to change the color scheme of the applet to:
    black.prm
    brown.prm
    white.prm

Otherwise chatLanguage represents the following languages:
spanish.prm
dutch.prm
german.prm
turkey.prm
nepal.prm
french.prm
greek.prm
finnish.prm
Thai.prm
italian.prm
port.prm
malaysian.prm
polish.prm

In the future:
  I still need to clean up the code a bit to make it easier to translate and make it xhtml compliant


NOTE: If you are trying to install this mod on a non-default theme, please use this utility: http://www.simplemachines.org/community/index.php?topic=140034 to see what changes you need to make to your theme.
« Last Edit: December 19, 2007, 11:43:06 PM by Goosemoose »

Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Re: Integrated Chat Mod
« Reply #1 on: December 06, 2004, 02:00:48 PM »
Okay, downloaded 16 times so far and no posts. Can I take this to mean that everyone was able to install the mod smoothly?

Offline JayBachatero

  • SMF Friend
  • Simple Machines Super Hero
  • *
  • Posts: 19,535
  • Gender: Male
    • JayBachatero.com
Re: Integrated Chat Mod
« Reply #2 on: December 06, 2004, 02:40:34 PM »
ok now that the rc2 version came out al i have to do it wait for my site to go back up and ill test it out and let you know how it went. ;D

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline ANARCHÂ¥

  • Semi-Newbie
  • *
  • Posts: 80
Re: Integrated Chat Mod
« Reply #3 on: December 06, 2004, 02:52:38 PM »
i downloaded the mod, but i will test it on my next install only, so i havent tested your job. i have yet installed it manualy before you create the mod

Offline Mattitude

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,527
  • Official Cheesecake
Re: Integrated Chat Mod
« Reply #4 on: December 07, 2004, 08:22:43 AM »
What would I edit to be able to use a different server? Also the code:
Code: [Select]
There are currently <script src="http://www.everywherechat.com/users.asp?room=ROOMNAME"></script> people talking in the chat room.
<script src="http://www.everywherechat.com/members.asp?room=ROOMNAME"></script>
does not actually work on it's own by putting it in the template, so I assume that you must have to put
Code: [Select]
echo ' or something somewhere?
Mattitude
SMF Friend
Personal Signature:
IntrepidEntertainment
HHT / UK
FicFan

Offline Powerbob

  • Charter Member
  • Full Member
  • *
  • Posts: 438
  • Gender: Male
    • Pattaya OfBBoard.com
Re: Integrated Chat Mod
« Reply #5 on: December 07, 2004, 11:31:16 AM »
the code:
Code: [Select]
There are currently <script src="http://www.everywherechat.com/users.asp?room=ROOMNAME"></script> people talking in the chat room.
<script src="http://www.everywherechat.com/members.asp?room=ROOMNAME"></script>
does not actually work on it's own by putting it in the template

Same problem here, apart from that chat installed fine and works great though thanks :D

Powerbob

My test Site;http://pplb.net/smf2/index.php
It's nice to be nice :)

Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Re: Integrated Chat Mod
« Reply #6 on: December 07, 2004, 01:41:03 PM »
It depends on where you put it in the template: I put it above:
Code: [Select]
// If we're on a certain board, limit it to this board ;).

so my index.template.php has this in it now:

Code: [Select]

<BR>There are currently <script src="http://www.everywherechat.com/users.asp?room=rfc"></script> people talking in the chat room.<BR>
<script src="http://www.everywherechat.com/members.asp?room=rfc"></script>';

// If we're on a certain board, limit it to this board ;).

So I didn't need an additional echo' because I intersted in inside of an exiting echo. Notice though that the closing '; is at the end, that was there from before too.

Make sure you change roomname to be your room name.

Mattitude: You can't use this with any other server, you are loading a javascript that is stored on the irc servers' server. Brodle has been kind enough to host all of our chat rooms for the past few years.

Offline Midgard

  • Jr. Member
  • **
  • Posts: 347
  • Gender: Male
Re: Integrated Chat Mod
« Reply #7 on: December 07, 2004, 01:54:35 PM »
this is not integrated. that using a java applet. i need a real-time integrated chat mod.

Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Re: Integrated Chat Mod
« Reply #8 on: December 07, 2004, 01:57:08 PM »
What do you mean it's not integrated? It pulls your username from the smf database and logs you into a chat room you create. All the settings are in the admin panel. And the chat sits into your site's scheme.

If you mean you want a php chat, well then good luck. Every php chat I have ever tried sucks up major bandwith. This way you use up none of your bandwith as the java applet is located on another server.

Offline JayBachatero

  • SMF Friend
  • Simple Machines Super Hero
  • *
  • Posts: 19,535
  • Gender: Male
    • JayBachatero.com
Re: Integrated Chat Mod
« Reply #9 on: December 07, 2004, 03:09:37 PM »
Goose i finally ggot it up.  Nice job .  thanks man

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Re: Integrated Chat Mod
« Reply #10 on: December 07, 2004, 05:44:29 PM »
No problem, LiL_J, glad you like it.

Offline Lum-chan

  • Semi-Newbie
  • *
  • Posts: 55
  • Gender: Male
  • Lum-chan is cute!
    • The World of Urusei Yatsura's Lum
Re: Integrated Chat Mod
« Reply #11 on: December 07, 2004, 08:44:50 PM »
No problem to install and get it up and running. I even changed my current default theme to make it look like it was a default option in smfCurve @ http://forum.lum-chan.com

Great addition!
Lum-chan


Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Re: Integrated Chat Mod
« Reply #12 on: December 07, 2004, 09:54:31 PM »
Very nice! I forgot to mention that you could of course change the theme you install it too by changing the package integratedchat21.xml files $themedir to $boarddir/themes/themenamehere , and of course you can upload your own chat pic, just give it the same name.

Offline Jerry

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 2,356
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • Solarian Order
Re: Integrated Chat Mod
« Reply #13 on: December 07, 2004, 10:31:56 PM »
Goosemoose I installed this perfectly (one of the first dloaders :P) I only had a problem with it adding extra <br />'s to the template. I thought this was a good idea =) is there a way you use another irc server then the default? I would put it on my current site to replace my current chat room if that was possible :)
- Jerry
Find me on:
Facebook
Twitter


Offline JayBachatero

  • SMF Friend
  • Simple Machines Super Hero
  • *
  • Posts: 19,535
  • Gender: Male
    • JayBachatero.com
Re: Integrated Chat Mod
« Reply #14 on: December 08, 2004, 12:06:25 AM »
goose i got a question.  how can i make the chat membergroup specific.  like if i only wat moderators to access it sumhin like dat.  thanks

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline oschikhof

  • Semi-Newbie
  • *
  • Posts: 70
  • Gender: Male
    • Owen & Sasha's website
Re: Integrated Chat Mod
« Reply #15 on: December 08, 2004, 05:30:11 AM »
I have problems using the package manager and till now I always manually install things..
At least I get things working but now I have a problem with installing the setting from add_settings...

What SQL statement do I have to run in PHPmyAdmin to complete the installation?
All instructions in the xml file are already done...

Thanx if you can help me out!

Offline oscar2001

  • Jr. Member
  • **
  • Posts: 190
  • Gender: Male
Re: Integrated Chat Mod
« Reply #16 on: December 08, 2004, 08:49:36 AM »
I installed it and it works ok but it doesant mater whos in chat it stilll shows
Quote
There are currently 0 people talking in the chat room.
on the forum index?

Is there something Im missing or am I supposed to add( or edit) something else than the
Quote
<br>There are currently <script src="http://www.everywherechat.com/users.asp?room=ROOMNAME"></script> people talking in the chat room.
<script src="http://www.everywherechat.com/members.asp?room=wc"></script>';

Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Re: Integrated Chat Mod
« Reply #17 on: December 08, 2004, 12:37:35 PM »
Goosemoose I installed this perfectly (one of the first dloaders :P) I only had a problem with it adding extra <br />'s to the template. I thought this was a good idea =) is there a way you use another irc server then the default? I would put it on my current site to replace my current chat room if that was possible :)

Hmm, where was it adding an extra <br /> ? Unfortunately this will only work with brodle's everywherechat.com irc server. Although you can still connect to his server with a mirc client as well, check out http://www.everywherechat.com because of the security. I had the same issue with a java help program I made for the old bbs TradeWars game, there isn't a way to get it to connect to a server the script isn't hosted on.

Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Re: Integrated Chat Mod
« Reply #18 on: December 08, 2004, 12:39:18 PM »
I installed it and it works ok but it doesant mater whos in chat it stilll shows
Quote
There are currently 0 people talking in the chat room.
on the forum index?

Is there something Im missing or am I supposed to add( or edit) something else than the
Quote
<br>There are currently <script src="http://www.everywherechat.com/users.asp?room=ROOMNAME"></script> people talking in the chat room.
<script src="http://www.everywherechat.com/members.asp?room=wc"></script>';

You have to register your room before it will count the number of people in it. Double click on the room once you are logged in and register it. Then add the names of your mods (wait until they have logged in first though). You should also double click on your name to give it a password so no one else can log in as you.

Also, the code you posted above, you left one of the ROOMNAME still in the code, make sure to change it to your room name, which looks like it's wc.
« Last Edit: December 08, 2004, 12:40:50 PM by goosemoose »

Offline Goosemoose

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 1,400
  • Gender: Male
    • Goosemoose.com
Re: Integrated Chat Mod
« Reply #19 on: December 08, 2004, 12:42:16 PM »
I have problems using the package manager and till now I always manually install things..
At least I get things working but now I have a problem with installing the setting from add_settings...

What SQL statement do I have to run in PHPmyAdmin to complete the installation?
All instructions in the xml file are already done...

Thanx if you can help me out!

Hopefully someone else can help you with this, or I can help you when I get home. I don't have access to phpmyadmin from work (have problems with the stupid firewall). Basically you need to create a table and then add the fields in the file.