Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Goosemoose on May 02, 2004, 07:52:35 PM

Title: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on May 02, 2004, 07:52:35 PM
Okay, here is the new updated version for Beta 5. Not much else has changed. I did add code in the mod file in the instructions to add the number of people and who they are in chat to your News box. Quite a few people mentioned they liked it at the top like it was in YaBBSE.

Added the chat button which I had forgotted to add the code for before. Cleaned up the code a bit.

If you are just upgrading you do not need to run the dbmod file.

This is an integration to use an IRC room hosting by Brodle at everywherechat for FREE

You can see an example at http://www.goosemoose.com/rfc  I have also added a section in the bottom of the main page that lists the users logged into chat.

Let me know if this works okay for you guys!!

You can download the file at:
Download here (http://www.goosemoose.com/integatedchat_2.0_SMFB5.zip)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 02, 2004, 08:08:32 PM
2.0 for SMG Beta 5 :P?

Here, I've attached an untested package that should work if uploaded the the Packages directory - assuming the proper files are 777.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on May 02, 2004, 08:20:43 PM
If anybody gets a chance, download the version that Unknown posted and save it to your packages directory and then run it from the packages center of your admin panel. Then let us know if it works ;) I can't test it right now because my server is missing the zlib library. Most peoples should have it already installed.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 02, 2004, 10:48:10 PM
Here's a new version that actually works, I got a chance to test it ;).

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Zeke on May 02, 2004, 11:40:14 PM
Um, not it dosn't work... sorry, to say unless I did somthing wrong... oO; But I saved/uploaded to server ( Uploaded to Packages dir [ Was that right? ] ) then went to admin on forums then package section then I have to go to install options give it my username,password, and server type then I hit browse packages then his Apply Mod and I got this...

Quote
Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 520 is not allowed to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp owned by uid 48 in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 574
Warning: opendir(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp): failed to open dir: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 574
Warning: readdir(): supplied argument is not a valid Directory resource in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 576
Warning: closedir(): supplied argument is not a valid Directory resource in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 591
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 520 is not allowed to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp owned by uid 48 in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp/chat.gif): failed to open stream: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 520 is not allowed to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp owned by uid 48 in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp/Chat.php): failed to open stream: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 520 is not allowed to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp owned by uid 48 in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp/Chat.template.php): failed to open stream: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 520 is not allowed to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp owned by uid 48 in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp/chatdb.php): failed to open stream: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 520 is not allowed to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp owned by uid 48 in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp/chatIcon.gif): failed to open stream: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 520 is not allowed to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp owned by uid 48 in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp/integratedChat_2.0.mod): failed to open stream: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 520 is not allowed to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp owned by uid 48 in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: fopen(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp/package-info.xml): failed to open stream: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 837
Warning: file(): Unable to access /home/virtual/site7/fst/var/www/html/AIF/Packages/temp/package-info.xml in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 333
Warning: file(/home/virtual/site7/fst/var/www/html/AIF/Packages/temp/package-info.xml): failed to open stream: Success in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 333
Fatal error: Call to a member function on a non-object in /home/virtual/site7/fst/var/www/html/AIF/Sources/Subs-Package.php on line 362
[/b]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 02, 2004, 11:51:58 PM
The package manager does not currently work on servers using safe mode, and it may not ever. (but I'm working on it.)

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Zeke on May 03, 2004, 12:05:56 AM
o crud... that sucks major... I was hoping on using the mod tongiht  :'(
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 03, 2004, 12:23:35 AM
I get this when I tried to install it  on smf 1.0 beta 5

Quote
Warning: copy(/home/xxxxxxxx/public_html/megacrew/mcforums/Themes/default/images/english/chat.gif): failed to open stream: Permission denied in /home/xxxxxxxx/public_html/megacrew/mcforums/Sources/Subs-Package.php on line 493 Error updating the DB. SQL Error: Duplicate entry 'chatLanguage' for key 1

Warning: fopen(/home/xxxxxxxx/public_html/megacrew/mcforums/Packages/installed.list): failed to open stream: Permission denied in /home/xxxxxxxx/public_html/megacrew/mcforums/Sources/Subs-Package.php on line 315
Warning: fputs(): supplied argument is not a valid stream resource in /home/xxxxxxxx/public_html/megacrew/mcforums/Sources/Subs-Package.php on line 322
Warning: fclose(): supplied argument is not a valid stream resource in /home/xxxxxxxx/public_html/megacrew/mcforums/Sources/Subs-Package.php on line 324

Unfortunately, I have no idea what it means, nothing in my forums was damaged.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 03, 2004, 12:33:59 AM
assuming the proper files are 777.

You will need to have the following 777:
/Packages/installed.list
/Themes/default/images/english

Among others.

o crud... that sucks major... I was hoping on using the mod tongiht  :'(

As I said, I'm working on it... but really, if your host is using safe mode they should also use php suexec, which the package manager works under. (like Lycos, yes it even works there!)

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 03, 2004, 12:39:56 AM
Thanks Unknown, that got the package to load, but I have one last error:

Quote
Error updating the DB. SQL Error: Duplicate entry 'chatLanguage' for key 1

I would not know what to do here either!?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 03, 2004, 12:49:58 AM
Ignore it, it would be using an "upgrade" script but the old version wasn't done with the package manager.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 03, 2004, 12:59:46 AM
Ok, thanks again, now I just gotta figure out where it is. I found the confog stuff in admin, but I can't find the chat program itself! :-X
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on May 03, 2004, 01:00:10 AM
Zeke,
 You might be able to get around the safe mode errors you have by creating a folder called temp with permissions 777 inside of the packages folder. It worked for me ;)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Zeke on May 03, 2004, 01:26:25 AM
No, that dosn't work either... you just run into more errors! I tryed already...
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 03, 2004, 01:10:49 PM
Ok, I give up...I installed the chat, but cannot find it.  I see no links or references to it, except in the admin.  Where could it have gone?  I hate sneaky chat!
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Room11 on May 03, 2004, 02:47:28 PM
Ahh - this chat is a headache to install :-[
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 03, 2004, 04:15:14 PM
Anybody know how I can link to or better yet even find the chat that I have just installed?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Owdy on May 03, 2004, 04:45:59 PM
Ahh - this chat is a headache to install :-[
Just couple clicks, not so hard ;)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on May 03, 2004, 05:11:27 PM
Anybody know how I can link to or better yet even find the chat that I have just installed?

Did you use the package or the zip file to do the install? If you used the zip file make sure you did all the steps in the mod. The mod file has the edit for the index.template.php which has the chat button in it.

Owdy did you get the package to work or did you use the zipped mod?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Owdy on May 03, 2004, 05:16:02 PM
I used attached. Just upload it to your "Packages" dir and
chmod 777:
/Packages/installed.list
/Themes/default/images/english
Then just install it with package manager. That CHMOD thang is very important!

test it : http://www.halko.net/smf/index.php
user:test
pass:test
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 03, 2004, 06:39:26 PM
If you don't see any buttons anywhere, there's a high chance you didn't chmod things writable except the sources.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 03, 2004, 07:23:28 PM
I used attached. Just upload it to your "Packages" dir and
chmod 777:
/Packages/installed.list
/Themes/default/images/english
Then just install it with package manager. That CHMOD thang is very important!

test it : http://www.halko.net/smf/index.php
user:test
pass:test


Yes CHMOD is very important on *nix system. Once you understand what files need what permission you should be able to install and type of script.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 03, 2004, 07:36:31 PM
Parse error: parse error in /home/xxxxxxxxx/public_html/megacrew/mcforums/Themes/default/languages/Help.english.php on line 358

I have this error in my admin center now when I go into Edit Features and Options.
It IS chmod properly also!

Plus I guess from multiple attempts to install, I now have like 6 chat bars all with the same options in the Edit Features and Options.

I am a little confused?

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 03, 2004, 08:38:37 PM
There was an error in the mod (a missing slash before a single quote!) that was posted, but I corrected it and all was well.... try the most recent version I posted. (you will have to uninstall/upload clean files.)

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 04, 2004, 10:53:57 AM
Here is a mirrored link to the latest file Uknown worked up.

http://www.everywherechat.com/integratedChat_2_1_1.0.tar.gz

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Room11 on May 04, 2004, 02:17:14 PM
WOW - It actually works :o ;D
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: DeadlyDemon on May 04, 2004, 05:25:12 PM
 (i think)  i've managed to get the mod installed but i've done somefing that made two chat buttons come on the navigation bar and there are two settings for the chat in the "Edit Features and Options " part of the admin controle center. How do i remove the extra ones?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 04, 2004, 05:50:31 PM
Try simply uninstalling it....

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 05, 2004, 12:06:05 AM
I still get the mysql error after running the install, and then I get this message when I ignore it and go to settings:

Parse error: parse error in /home/xxxxxxxx/public_html/xxxxxxxx/mcforums/Themes/default/languages/Help.english.php on line 359

Here is line 359:

$helptxt['chatRoomName'] = 'This is the name of your chat room name. Make sure it doesn't exist on the server first. Then once you have gone in the room double click on it to register yourself and your other mods.';

Same error I got before, and I just redownloaded this and tried to install again. I even dleted all references to chat , including the ones in the modded files that did not disappear after I uninstalled it.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on May 05, 2004, 12:17:58 AM
Hyperflo are you running SMF Beta 5 or 4.1?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 05, 2004, 12:18:55 AM
I am running beta5
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: smacktalk on May 05, 2004, 01:30:06 AM
I get this:

Warning: copy(/home/marco/public_html/forum/index.php~): failed to open stream: Permission denied in /home/marco/public_html/forum/Sources/Subs-Package.php on line 674

then this:

Parse error: parse error in /home/marco/public_html/forum/Themes/default/languages/Help.english.php on line 358
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 05, 2004, 01:49:52 AM
Here is a mirrored link to the latest file Uknown worked up.

http://www.everywherechat.com/integratedChat_2_1_1.0.tar.gz

That file still has the typo in it.  Find:

Code: [Select]
$helptxt['chatRoomName'] = ' This is the name of your chat room name. Make sure it doesn't exist on the server first. Then once you have gone in the room double click on it to register yourself and your other mods.';



Replace:
Code: [Select]
$helptxt['chatRoomName'] = 'This is the name of your chat room name. Make sure it doesn\'t exist on the server first. Then once you have gone in the room double click on it to register yourself and your other mods.';



I get this:

Warning: copy(/home/marco/public_html/forum/index.php~): failed to open stream: Permission denied in /home/marco/public_html/forum/Sources/Subs-Package.php on line 674

then this:

Parse error: parse error in /home/marco/public_html/forum/Themes/default/languages/Help.english.php on line 358


Same Help problem, and /home/marco/public_html/forum is not writable (777).

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: smacktalk on May 05, 2004, 02:25:07 AM
I got it to work thanks. One other thing, when I click on the chat button, the chat sign on appears where you have to add your name and room name. I though it would log you in automatically.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ms_ukyankee on May 05, 2004, 05:36:42 AM
I got it to work thanks. One other thing, when I click on the chat button, the chat sign on appears where you have to add your name and room name. I though it would log you in automatically.

It should, you probably need to set it up in the Admin area, Edit Features and Options, near the bottom.

I've installed this mod manually, after getting frustrated with the Package errors. Though this version was not manual install friendly, I had to do some splicing of chatdb with the 1.1 chatdb to get that to work.

Thank you for your work on this, and updating it so quickly. :)

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: smacktalk on May 05, 2004, 01:15:04 PM
I got it to work thanks. One other thing, when I click on the chat button, the chat sign on appears where you have to add your name and room name. I though it would log you in automatically.

It should, you probably need to set it up in the Admin area, Edit Features and Options, near the bottom.

It is set up.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 05, 2004, 02:09:40 PM

Unknown,

did I upload the wrong package? Thought this was the latest one you said was all fixed. If not let me know where it is and Ill replace the file.



Here is a mirrored link to the latest file Uknown worked up.

http://www.everywherechat.com/integratedChat_2_1_1.0.tar.gz

That file still has the typo in it.  Find:

Code: [Select]
$helptxt['chatRoomName'] = ' This is the name of your chat room name. Make sure it doesn't exist on the server first. Then once you have gone in the room double click on it to register yourself and your other mods.';



Replace:
Code: [Select]
$helptxt['chatRoomName'] = 'This is the name of your chat room name. Make sure it doesn\'t exist on the server first. Then once you have gone in the room double click on it to register yourself and your other mods.';



I get this:

Warning: copy(/home/marco/public_html/forum/index.php~): failed to open stream: Permission denied in /home/marco/public_html/forum/Sources/Subs-Package.php on line 674

then this:

Parse error: parse error in /home/marco/public_html/forum/Themes/default/languages/Help.english.php on line 358


Same Help problem, and /home/marco/public_html/forum is not writable (777).

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on May 05, 2004, 03:50:05 PM
Quote
It should, you probably need to set it up in the Admin area, Edit Features and Options, near the bottom.

I've installed this mod manually, after getting frustrated with the Package errors. Though this version was not manual install friendly, I had to do some splicing of chatdb with the 1.1 chatdb to get that to work.

Thank you for your work on this, and updating it so quickly. :)

The chatdb in 2.0 is the exact same file as in 1.1, in fact you shouldn't have to run it again since the tables don't change at all from 1.1. What was the problem you were having?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 05, 2004, 06:01:50 PM
The package I made up is for installation not upgrade..... it probably will throw errors if you use it to upgrade.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Hyperflo on May 05, 2004, 06:03:09 PM
Just want to thank you all for the assistance...i got it to work.  Now that i have it working, I am not too fond of it, i find it slow and laggy, I also would want to have so people could chat AND browse my site.  My forums are starting to become very active, and I want both available at the same time.

If you are curious about the laggy, maybe it is just me, but I started a guest account so you could see the chat; 

Login:  test
Pass   test

You will need to log in to see the chat.

www.megacrew.com/mcforums/
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 05, 2004, 06:08:00 PM
Java is ALWAYS slow :P.  It wasn't that laggy for me, but I'm on DSL.

/me is not a Java-ite.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 05, 2004, 08:43:00 PM
Just want to thank you all for the assistance...i got it to work.  Now that i have it working, I am not too fond of it, i find it slow and laggy, I also would want to have so people could chat AND browse my site.  My forums are starting to become very active, and I want both available at the same time.

If you are curious about the laggy, maybe it is just me, but I started a guest account so you could see the chat; 

Login:  test
Pass   test

You will need to log in to see the chat.

www.megacrew.com/mcforums/

Took me 15 seconds to download and intialized the applet.  Dont think you could get any faster then that. Also you could make the chat link load in a new browser by adding target="_blank" to the url tag.

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ms_ukyankee on May 06, 2004, 11:16:29 AM
Quote
It should, you probably need to set it up in the Admin area, Edit Features and Options, near the bottom.

I've installed this mod manually, after getting frustrated with the Package errors. Though this version was not manual install friendly, I had to do some splicing of chatdb with the 1.1 chatdb to get that to work.

Thank you for your work on this, and updating it so quickly. :)

The chatdb in 2.0 is the exact same file as in 1.1, in fact you shouldn't have to run it again since the tables don't change at all from 1.1. What was the problem you were having?

The reason I had to run it again was that I had only installed it on a test board, not the live board, so I did need to do an install for that one.

1.1 chatdb.php
Code: [Select]
<?php
/*****************************************************************************/
/* dbmod.php                                                                  */
/*****************************************************************************/
/* YaBB: Yet another Bulletin Board                                          */
/* Open-Source Project started by Zef Hemel (zef@zefnet.com)                 */
/* Software Version: YaBB SE                                                 */
/* ========================================================================= */
/* Software Distributed by:    http://www.yabb.info                          */
/* Support, News, Updates at:  http://www.yabb.info/community                */
/*                             http://yabb.xnull.com/community               */
/* ========================================================================= */
/* Copyright (c) 2001-2002 Lewis Media - All Rights Reserved                 */
/* Software by: The YaBB Development Team                                    */
/*****************************************************************************/
/* This program is free software; you can redistribute it and/or modify it   */
/* under the terms of the GNU General Public License as published by the     */
/* Free Software Foundation; either version 2 of the License, or (at your    */
/* option) any later version.                                                */
/*                                                                           */
/* This program is distributed in the hope that it will be useful, but       */
/* WITHOUT ANY WARRANTY; without even the implied warranty of                */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General */
/* Public License for more details.                                          */
/*                                                                           */
/* The GNU GPL can be found in gpl.txt in this directory                     */
/*****************************************************************************/
?>

<html>
<head>
<title>SMF</title>
<style>
<!--
body {
font-family : Verdana;
font-size : 10pt;
}
td {
font-size : 10pt;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<center><table border=0 cellspacing=1 cellpadding=4 bgcolor="#000000" width=90%>
<tr>
<th bgcolor="#34699E"><font color="#FFFFFF">SMF DB Editor</font></th>
</tr>
<tr>
 <td bgcolor="#FFFFFF">
<?

include_once ("Settings.php");

$error=0;
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name);

/* ### DB QUERIES START ### */

$result = mysql_query("
INSERT INTO {$db_prefix}settings
(variable, value)
VALUES ('chatLanguage', 'embedded'),
('chatRoomName', 'roomName'),
('chatWidth', '700'),
('chatHeight', '500'),
('chatAppend', '_abbrv'),
('chatRoomsTab', 'FALSE'),
('chatPassword', 'NULL')");

if ($result === false)
    echo '
<font color="red">Error updating the DB. SQL Error: ', mysql_error(), '</font><br />';

/* ### DB QUERIES END ### */

echo "</td></tr></table>";
if($error==0)
 echo "<P>Upgrade of SQL was successfull.";
elseif ($error==1)
 echo "<P>There was <B>1</B> error when upgrading your SQL.";
elseif ($error>1)
 echo "<P>There were <B>$error</B> errors when upgrading your SQL.";
?>

2.0 chatdb.php

Code: [Select]
<?php

$result 
mysql_query("
INSERT INTO 
{$db_prefix}settings
(variable, value)
VALUES (&#39;chatLanguage&#39;, &#39;embedded&#39;),
(&#39;chatRoomName&#39;, &#39;roomName&#39;),
(&#39;chatWidth&#39;, &#39;700&#39;),
(&#39;chatHeight&#39;, &#39;500&#39;),
(&#39;chatAppend&#39;, &#39;_abbrv&#39;),
(&#39;chatRoomsTab&#39;, &#39;FALSE&#39;),
(&#39;chatPassword&#39;, &#39;NULL&#39;)"
);

if (
$result === false)
    echo &#39;
<font color="red">Error updating the DBSQL Error: &#39;, mysql_error(), &#39;</font><br />&#39;;

?>

That might have worked in the Package install, but not for a manual install, which I did in the end, ran out of patience with the Package. :-/ I don't mean to complain, just pointing it out. Maybe I downloaded the wrong file, could have been my fault. (That might not be the exact 1.1 file either, I pasted the 2.0 code into a file and have lost track of whether that's the absolute original.)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: smacktalk on May 06, 2004, 01:17:15 PM
I got it to work thanks. One other thing, when I click on the chat button, the chat sign on appears where you have to add your name and room name. I though it would log you in automatically.

any info on my problem. I did have it installed on my YABBSE board and it worked fine.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 06, 2004, 01:27:02 PM
I got it to work thanks. One other thing, when I click on the chat button, the chat sign on appears where you have to add your name and room name. I though it would log you in automatically.

any info on my problem. I did have it installed on my YABBSE board and it worked fine.

I got it to work thanks. One other thing, when I click on the chat button, the chat sign on appears where you have to add your name and room name. I though it would log you in automatically.

I assume you have the config all setup? With what room name to use and abbrv to use for your users? if not check your admin panel.

One could also overide those setting editing I beleive chat.php.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 06, 2004, 02:19:43 PM
The reason I had to run it again was that I had only installed it on a test board, not the live board, so I did need to do an install for that one.

1.1 chatdb.php
[ ... stuff ... ]
2.0 chatdb.php

[ ... shorter stuff ... ]

That might have worked in the Package install, but not for a manual install, which I did in the end, ran out of patience with the Package. :-/ I don't mean to complain, just pointing it out. Maybe I downloaded the wrong file, could have been my fault. (That might not be the exact 1.1 file either, I pasted the 2.0 code into a file and have lost track of whether that's the absolute original.)

Yes, that is for the package... I redid it because it was first long, and second reconnecting to the database. (inefficient!)

It will need to connect to the database if not from the package manager.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on May 10, 2004, 01:41:53 AM
For those of you having problems using the package you can use the mod I posted in the first post and apply it manually by following the directions in the .mod file.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: smacktalk on May 12, 2004, 03:17:02 AM
For those of you having problems using the package you can use the mod I posted in the first post and apply it manually by following the directions in the .mod file.

I have tried the manual and package installation and I still get the same problem, the login name and room name is blank, see attached.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Oldiesmann on May 13, 2004, 03:05:25 PM
There should be a chat button or link in the menu assuming the mod was installed properly..
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ms_ukyankee on May 13, 2004, 04:12:16 PM
I don't know if this will help, but here's the difference between your page source and mine, at least for the applet parameters.

yours:
Code: [Select]
<script language="JavaScript" src="http://irc.everywherechat.com:8000/Java/e.js?room=roomname&roomstab=false&width=600&height=400&nick=__mab&keypass=&paramfilename=English.prm"></script>
mine:
Code: [Select]
<script language="JavaScript" src="http://irc.everywherechat.com:8000/Java/e.js?room=roomname&roomstab=FALSE&width=500&height=350&nick=nickname_ext&keypass=&paramfilename=embedded.prm">
Could the english/embedded paramfilename language thingy cause it? it looks like the only difference.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: oer on May 14, 2004, 11:20:09 AM
I have tried the manual and package installation and I still get the same problem, the login name and room name is blank, see attached.

I'm getting the same problems as well. Login name and roomname are blank and chat data section is not telling how many users and their names are in the chatroom. 

I get the following error:

Error updating the DB. SQL Error: Duplicate entry 'chatLanguage' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatRoomName' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatWidth' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatHeight' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatAppend' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatRoomsTab' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatPassword' for key 1

Sounds like I'm doing something dumb  :-[ . Any help would be very much appreciated.

Cheers and thanks in advance,

      oer.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 14, 2004, 11:57:26 PM
Oer, you can successfully ignore those problems.  An INSERT IGNORE should probably be used for those keys, by the way, Goosemoose.

But, it should work ever with those.  Just edit the settings in Features Settings and Options under Chat.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: smacktalk on May 15, 2004, 03:10:43 AM
I just removed it for now.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: mcalan2001 on May 15, 2004, 06:09:26 AM
But, it should work ever with those.  Just edit the settings in Features Settings and Options under Chat.

Ah! I loaded the Chat Room on my test system and everything seemed to be working. Until I went to Features Settings and Options and got the following:

Parse error: parse error, unexpected T_STRING in /home/sites/site8/web/yabbse/Themes/default/languages/Help.english.php on line 358

Just when it was all going so well.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on May 15, 2004, 12:34:21 PM
Might look earlier in this topic, that's been covered ;).

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: oer on May 19, 2004, 12:03:58 PM
Oer, you can successfully ignore those problems.  An INSERT IGNORE should probably be used for those keys, by the way, Goosemoose.

But, it should work ever with those.  Just edit the settings in Features Settings and Options under Chat.

-[Unknown]

Thanks [Unknown]. The problem was I had a two word name for my chatroom...Doh!  :-[ Once I joined them with an underscore it worked perfectly. I had another prob with "chat.gif" image not coming up but dopey me forgot to add the chat code to the file index_template.php in my new theme directory instead of the default directory. Anyway works a treat now. Thanks goosemoose and [Unknown] for coming up with the mod  :)

Cheers,

         oer.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 24, 2004, 09:49:04 PM
Some people have requested different color chat applets for this mod. In order to do this there are about 21  images that make up the skin of the applet. So this means you need to use adobe or some other image program to change the skin. If anyone would like to change the skin color the files are at http://www.everywherechat.com/skins.zip

You can email  me the change files back in a zip to brodle@everywherechat.com and I can work up the code to make it use them.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: PlayGroundFor.us on May 24, 2004, 10:25:23 PM
This is a great script/mod thank you for taking the time to put it together. I was wondering if I could get some adivise on how to fix a small problem.  On the index page where it shows the "chat stats" it always says that "there are people talking in the chat room." even when know one is there. I am sure this is do to the problems I had during the install where I installed an uninstalled a couple of times. I have gone through the manual process and everything seems to be done correctly. So if someone could please help.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 24, 2004, 10:39:16 PM
I changed the script on my end to display 0 if no one is in the room rather then being blank.  The actual wording is in the php page.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 24, 2004, 10:40:51 PM
I don't know if this will help, but here's the difference between your page source and mine, at least for the applet parameters.

yours:
Code: [Select]
<script language="JavaScript" src="http://irc.everywherechat.com:8000/Java/e.js?room=roomname&roomstab=false&width=600&height=400&nick=__mab&keypass=&paramfilename=English.prm"></script>
mine:
Code: [Select]
<script language="JavaScript" src="http://irc.everywherechat.com:8000/Java/e.js?room=roomname&roomstab=FALSE&width=500&height=350&nick=nickname_ext&keypass=&paramfilename=embedded.prm">
Could the english/embedded paramfilename language thingy cause it? it looks like the only difference.

it should be embedded.prm  for english translation.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: PlayGroundFor.us on May 24, 2004, 10:43:41 PM
Thanks I just fixed it.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ms_ukyankee on May 25, 2004, 03:15:57 AM
I changed the script on my end to display 0 if no one is in the room rather then being blank.  The actual wording is in the php page.

Worth noting that it's only blank when the chatroom is unregistered.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on May 25, 2004, 10:10:44 AM
Yes good point.

The stats are pulled form an SQL database and only work if you register your room.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Wiz on June 08, 2004, 01:55:00 PM
ok folks, forgive me but I've lost the plot!  Can someone please give me a definiitive link to the definitive (English) version?  ;D
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on June 10, 2004, 11:36:06 AM
Out of the box the chat defaults to english and you choose another language if you want.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Rhysie on June 12, 2004, 10:38:58 AM
This sucks. I must be the only not to have it working :(
Anything that I do doesn't seem to have any effect on my board whatsoever. The chatdb.php file seemed to work, but then that was it. Where exactly do I put each other the files in the package? And where do I link to then from the main site?

This has probably all been covered previously, but I must have missed it. Perhaps some final overall instructions are in order?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on June 12, 2004, 02:54:08 PM
Make sure you read the step by step instructions in the .mod file in my first posts zip file. There are two ways to install this, the way in my post and the way in unknowns. Both work. Mine is manual and unknowns is automatic.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: PlayGroundFor.us on June 15, 2004, 07:59:07 PM
Does anyone know what change for this in BATA 6
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: cdmvirt on June 25, 2004, 11:40:13 AM
ok, I get  it installed and workin but when I switch to my country language I losse the ICON and get an erro msg:

8: Undefined index: chatAlt
Ficheiro: /home/httpd/vhosts/cdmvirtual.com/httpdocs/smf/Themes/default/index.template.php
Linha: 419

wierd..
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on July 01, 2004, 02:36:18 PM
ok, I get  it installed and workin but when I switch to my country language I losse the ICON and get an erro msg:

8: Undefined index: chatAlt
Ficheiro: /home/httpd/vhosts/cdmvirtual.com/httpdocs/smf/Themes/default/index.template.php
Linha: 419

wierd..

Okay, when you switch to another language you need to edit your language file to have the same lines as I added to the english file. If you look at the .mod file you can see what changes I made and then add those to your language file.

What is needed to make this wirk with Beta 6?

I tried that file, and it says:

Quote
Package Manager - Install Actions
Install Actions for archive integratedChat_2_1_1.0.tar.gz:
There are no install actions defined! 


I haven't installed beta 6 yet but I am going to try to get it done in the next few days. After that I can tell you what has changed. If anyone else has already made the changes let me know what they were.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: bulliedog on July 02, 2004, 05:14:46 PM
I've got the mod working and my room is registered.  I still get the "There are currently people talking in the chat room." message, but no number of people no matter what (even if there are people in the room). 

I may have missed something in the above thread but what can I do to correct this?

Thanks.

James
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: robo47 on July 03, 2004, 11:51:31 AM
show page, probably it's just a browser-problem and the script isn't included to show it
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: madfiddler on July 07, 2004, 07:12:55 PM
I've had problems with the "user chatting" bit before with everywherechat... Isn't it a problem server side, rather than a problem with the code? Did they stop supporting it cos of additional bandwidth or something?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on July 25, 2004, 08:27:03 PM
You need to make sure to register your chat room by double clicking on the room when you are in it. Then the names will appear.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on July 28, 2004, 04:00:14 PM
I've had problems with the "user chatting" bit before with everywherechat... Isn't it a problem server side, rather than a problem with the code? Did they stop supporting it cos of additional bandwidth or something?

Just make sure your room is registered and it will work fine. We didnt take it down many site use the script.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on July 28, 2004, 04:00:57 PM
I've got the mod working and my room is registered.  I still get the "There are currently people talking in the chat room." message, but no number of people no matter what (even if there are people in the room). 

I may have missed something in the above thread but what can I do to correct this?

Thanks.

James

emial me the name fo your room brodle@everywherechat.com
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: † ÐëepÇuT¹ † on July 28, 2004, 05:10:08 PM
Can I get a screenshot?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on July 28, 2004, 06:06:53 PM
Can I get a screenshot?

Of what the chat window looks like? Just check out http://www.everywherechat.com or see the forum live at http://www.goosemoose.com/rfc

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ms_ukyankee on August 05, 2004, 09:27:06 AM
I've just spent some time on this for Beta 6, and it appears to me that only change is the removal of the second step in the mod file, no longer needed in ModSettings.php. Everything else was as before. Again, I've done this manually, as I'm not yet familiar with the whole Package process. ;)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Senkusha on August 05, 2004, 10:31:19 AM
Wow!  this is cool!  First mod I've installed.  I didn't even have to create a new Chat button to match my theme!
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on August 05, 2004, 11:25:17 AM
Wow!  this is cool!  First mod I've installed.  I didn't even have to create a new Chat button to match my theme!

Great to hear!
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: mtxpert on August 11, 2004, 01:08:42 AM
Damn I had chat for 4 minutes until I upgrade to RC1.0
:(
Mike
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Senkusha on August 11, 2004, 08:08:42 AM
LOL, I guess this mod isn't ready for RC1 yet?  :)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: rainier6 on August 11, 2004, 07:27:17 PM
Any idea if this mod is/will be compatible with RC1?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ms_ukyankee on August 12, 2004, 08:47:12 AM
It will be, I'm sure they'll update the package to RC1 as soon as they can. :)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: stevej on August 12, 2004, 10:25:10 AM
Damn I had chat for 4 minutes until I upgrade to RC1.0
:(
Mike

Did you guys get this error?

Notice: Undefined index: chatAlt in E:\steve\woopig\php\Sources\Load.php(1090) : eval()'d code on line 419
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ms_ukyankee on August 12, 2004, 10:30:21 AM
Once you upgrade, the chat texts are no longer in the language files. That means it's missing the chat text entries.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on August 18, 2004, 12:45:53 PM
Someone updated the mod file for RC 1,

Ive attached it.

http://www.everywherechat.com/rc1_integratedchat.mod
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: mtxpert on August 18, 2004, 01:02:31 PM
Linky no worky...
:(
Mike
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on August 18, 2004, 01:55:55 PM
Does now... Sorry I posted it before I uploaded it and there was some flashy lights outside. Got distracted :)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: mtxpert on August 19, 2004, 04:39:34 PM
That worked great!
Thanks man!
:)
Mike
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Elijah Bliss on August 20, 2004, 09:53:21 PM
there is a rendering problem in Safari:
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: breed_beyond on August 23, 2004, 03:08:56 AM
                 Im having a bit of a problem installing chat, I unloaded the package but the chat icon doesn't appear, I also tried to d/l unknowns package but it said that I am not allowed to d/l files on this board any help would be appreciated, btw i'm a noobie so go easy.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on August 23, 2004, 11:17:14 AM
there is a rendering problem in Safari:


I will look into this. Is this the latest version of Safari or a beta version?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Chadgqx on August 28, 2004, 03:19:45 PM
I get this error??

Notice: Undefined index: DOCUMENT_ROOT in C:\Inetpub\vhosts\discusasahobby.com\httpdocs\forum\Sources\Packages.php on line 711
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: decibel on August 30, 2004, 01:47:16 PM
Hello folks,
I have also installed this chatroom manualy and it works good! :D

Only, how can ik come back to my forum, on the moment i have to push the return button when i go out the chatroom, mabay its bether with a script?

When i in the chatroom and look at my forum chat stats, there stood no 0 chatusers?
where can i fix it, i am a registerd user !

Further a tip,
I'm Dutch, if you installed rc1 and next de dutch version, you must also change all the dutch files  with the same name like the english name!

Like: Themes/langua/index.english.php  then make also change to
 Themes/langua/index.dutch.php
grtx
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF Rc1
Post by: roboter88 on September 13, 2004, 02:09:00 PM
Hi,

i have problems...

the chat version 2.0 comes with the Rc1
But when i go to the package manger their is no packages i could view or install.

Also where is a readme.txt for a manuel install?
I downloaded a version which is just the *.mod file.

Also currently i use this chat solution:
http://beatboxbattle.org/cgi-bin/cgiirc-0.5.4/irc.cgi
Its CGI:IRC a sourceforge project http://cgiirc.sourceforge.net/

Any ideas of how activating the package chat_mod_2.0(manuel or with the packagemanger) ?
I chmoded all fils as written in this topic.

ALso a message telling me it want work cause of SAFE MODE restriction would be good.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on September 13, 2004, 02:18:13 PM


When i in the chatroom and look at my forum chat stats, there stood no 0 chatusers?
where can i fix it, i am a registerd user !

When you go into the room make sure you register it, then your number of chat users will appear. To register it double click on the room once you are logged in an put your info in.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on September 13, 2004, 02:19:43 PM
Has anyone used the updated mod for RC1 yet that brodle tested? Did it work for you?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF Rc1
Post by: Goosemoose on September 13, 2004, 02:20:42 PM
Hi,

i have problems...

the chat version 2.0 comes with the Rc1
But when i go to the package manger their is no packages i could view or install.

Also where is a readme.txt for a manuel install?
I downloaded a version which is just the *.mod file.

Also currently i use this chat solution:
http://beatboxbattle.org/cgi-bin/cgiirc-0.5.4/irc.cgi
Its CGI:IRC a sourceforge project http://cgiirc.sourceforge.net/

Any ideas of how activating the package chat_mod_2.0(manuel or with the packagemanger) ?
I chmoded all fils as written in this topic.

ALso a message telling me it want work cause of SAFE MODE restriction would be good.

Read the instructions in the .mod file :)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: roboter88 on September 13, 2004, 02:23:49 PM
thx,

but the Rc1 included package chat_mod_2.0.mod and the 1 i downloaded here i think it was brodels?

Didnt contain any relevant  instalation instructions, how to activate the package....


If you can past it here i would much appriciate :)

Also the package contains no readme or any kind of instructions accept 1 inside the *.xml
1. Go into your admin panel and edit the chat settings under mod settings.
Well i have no "MOD settings" panel....and inside the package manager he just tells me "No packages yet."


When i try accessing via the FTP feature i get ...undefiend index: pack_username...in packages.php line 704 .and i used the right1

cheers
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: decibel on September 15, 2004, 12:42:15 PM


When i in the chatroom and look at my forum chat stats, there stood no 0 chatusers?
where can i fix it, i am a registerd user !

When you go into the room make sure you register it, then your number of chat users will appear. To register it double click on the room once you are logged in an put your info in.
Ok, i have register  the room, but no number of chat users?
I use the dutch template can  that be  the probs?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 15, 2004, 01:58:46 PM
Can someone direct me to the appropriate upgrade file for the Integrated Chat mod for RC1. We had it on our YabbSE site and our members loved it. I have installed/converted the newly released RC1 version and it is working fine. Very impressive upgrade.

A short tutorial on just how to install the upgrade file that I will be directed to would be very helpful.

Thank you in advance of your assistance in this matter.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: madandy007 on September 20, 2004, 07:40:51 PM
I don't know if this is the correct way to error trap a guest, but I've added:

global $user_info;


if ($user_info['is_guest'])
   fatal_lang_error('138');

to the top of chat.php - someone (actually, one of my moderators - they love to find all the glitches) got in via the icon right at the bottom of the board index as a guest and I figured it would be better to trap it here.

Is there a better way to trap  this?

Andy
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on September 20, 2004, 08:46:23 PM
Is there a better way to trap  this?

No, that's a pretty good way (depending on where you're putting it...)  I would change it like so, though:

global $user_info;
if ($user_info['is_guest'])
   fatal_lang_error(138, false);

The only difference here is that it won't write the error message to the error log, which I at least would prefer - I only want things logged I should look at.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 23, 2004, 06:03:40 PM
I am getting the following error codes when running chatdb.php:

Error updating the DB. SQL Error: Duplicate entry 'chatLanguage' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatRoomName' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatWidth' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatHeight' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatAppend' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatRoomsTab' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatPassword' for key 1

Any help appreciated...
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on September 23, 2004, 06:23:18 PM
Do you have the proper permissions to update the database?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 23, 2004, 06:47:02 PM
Brodle,

Not sure - please explain?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on September 23, 2004, 06:53:26 PM
I am getting the following error codes when running chatdb.php:

Error updating the DB. SQL Error: Duplicate entry 'chatLanguage' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatRoomName' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatWidth' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatHeight' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatAppend' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatRoomsTab' for key 1
Error updating the DB. SQL Error: Duplicate entry 'chatPassword' for key 1

Any help appreciated...

You should be able to ignore those errors.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 23, 2004, 07:00:32 PM
Unknown,

Allright - I see no indication the mod has been installed. After the errors I got nothing. Any help appreciated.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on September 23, 2004, 07:54:21 PM
Did it ask you for FTP information?  Did you enter it?

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 23, 2004, 07:56:40 PM
It did not ask for FTP info
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on September 23, 2004, 07:57:43 PM
Hmm... okay, which version are you using, on which version of SMF, and how are you installing it?

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Elijah Bliss on September 23, 2004, 08:02:01 PM
there is a rendering problem in Safari:


I will look into this. Is this the latest version of Safari or a beta version?


Latest version of Safari.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 23, 2004, 08:18:04 PM
Hmm... okay, which version are you using, on which version of SMF, and how are you installing it?

-[Unknown]

rc1 and FTP the files

integatedchat_2.0_SMFB5
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 24, 2004, 12:25:52 PM
Finally I have it working. One small problem.

It does not recognize how many peeps are in the chat room and display the number - all I get is "There are currently 0 people talking in the chat room."

Any help on this appreciated...
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on September 24, 2004, 12:36:36 PM
Finally I have it working. One small problem.

It does not recognize how many peeps are in the chat room and display the number - all I get is "There are currently 0 people talking in the chat room."

Any help on this appreciated...



Register the room. Register your name first by double clicking on you name int he right hand list, then click the room options button or double click int he middle of the room to open the options and register your room.

That should make it work, also make sure you roomname doe snot contain spaces.

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 24, 2004, 12:47:47 PM
Brodle,

I registered my name but it won't let me register the room.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on September 24, 2004, 12:50:13 PM
Brodle,

I registered my name but it won't let me register the room.

Whats the name of the room and your nickname?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: searanch on September 24, 2004, 12:52:21 PM
Brodle,

I got it - I kicked everybody out and logged back in - got the gold shield and the naked woman. It's now registered.

Thanx for your help - very much appreciated...
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on September 24, 2004, 01:16:47 PM
Brodle,

I got it - I kicked everybody out and logged back in - got the gold shield and the naked woman. It's now registered.

Thanx for your help - very much appreciated...


You are welcome..
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: marcnyc on October 06, 2004, 01:41:41 PM
I have uploaded Unknown's second corrected gz file with the chat mode but when I go to the Package Manager of my newly installed SMF 1.0 RC1 (which I have successfully used to install and uninstall another package already) I simply don't see the APPLY link at all, althought I see the LIST FILES and the DELETE MOD links. Can somebody explain me why please?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: decibel on October 06, 2004, 02:43:47 PM


When i in the chatroom and look at my forum chat stats, there stood no 0 chatusers?
where can i fix it, i am a registerd user !

When you go into the room make sure you register it, then your number of chat users will appear. To register it double click on the room once you are logged in an put your info in.

Hello Goosemoose,
I'll had registered mij room, thats ok, i have working at this time, this i have changed,
---
<edit file>
$themedir/BoardIndex.template.php
</edit file>
<search for>
   // "Users online" - in order of activity.
</search for>

<add before>

   // Chat Stats
   echo '
   <tr>
      <td class="catbg" colspan="2">', $txt['chatStats'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
      <a href="', $scripturl, '?action=chat">
            <img src="', $settings['images_url'], '/chatIcon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <BR>There are currently <script src="http://www.everywherechat.com/users.asp?room=', $modSettings['chatRoomName'], '"></script> people talking in the chat room.<BR>
         <script src="http://www.everywherechat.com/members.asp?room=', $modSettings['chatRoomName'], '"></script>
         <span class="smalltext">';

</add before>

replace with this

// Chat Stats
   echo '
   <tr>
      <td class="catbg" colspan="2">', $txt['chatStats'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
      <a href="', $scripturl, '?action=chat">
            <img src="', $settings['images_url'], '/chatIcon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <BR><b>Op dit moment heeft er <script src="http://www.everywherechat.com/users.asp?room=your room name"></script> babbels over jou in de ChatBoX even checken dus!</b><BR>
         <script src="http://www.everywherechat.com/members.asp?room=yor room name"></script>
         <span class="smalltext">';

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: marcnyc on October 08, 2004, 12:21:34 PM
Okay, here is the new updated version for Beta 5. Not much else has changed. I did add code in the mod file in the instructions to add the number of people and who they are in chat to your News box. Quite a few people mentioned they liked it at the top like it was in YaBBSE.

Added the chat button which I had forgotted to add the code for before. Cleaned up the code a bit.

If you are just upgrading you do not need to run the dbmod file.

This is an integration to use an IRC room hosting by Brodle at everywherechat for FREE

You can see an example at http://www.goosemoose.com/rfc  I have also added a section in the bottom of the main page that lists the users logged into chat.

Let me know if this works okay for you guys!!

You can download the file at:
Download here (http://www.goosemoose.com/integatedchat_2.0_SMFB5.zip)

Hi goosemose, I looked at your chat. I am using a different chat but what I liked about yours so much is the way it "sits" inside the forum's template. I was wondering if you'd be so kind and post instructions as to where one should place the chate code to make it come up between the header of the forum tamplate and the footer/credits. Also how did you make it so that page is accessed when the URL is index.php?action=chat ?
Thanks
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on October 08, 2004, 05:01:39 PM
The package posted by my, long back, will not work for anything above Beta 5.

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: marcnyc on October 09, 2004, 05:12:35 AM
I wasn't talking about the chat itself, but just where to place the code to make it come up between the usual SMF header and footer...
I have edited index.php to add an action so that the url action=chat would work, but where do I do the include for the actual chat file so that I don't have to look at the chat in a new window that doesn't have the SMF template around it?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: marcnyc on October 09, 2004, 07:27:55 AM
Nevermind Unkown, I have figured it out myself and in an attempt to give back something to this community who has always helped me in a great way when I was in trouble, I have taken the liberty to write a small tutorial. In case somebody is interested in a beautiful PHP/Flash chat that integrates with SMF beautifully (read: same user database, same page design/layout/theme), you can find my small tutorial to integrate FlashChat in SMF 1.0 as if it was PART of a page instead of a new page in a new window at: http://www.simplemachines.org/community/index.php?topic=17856.0

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on December 04, 2004, 10:01:02 PM
I'm almost done redoing this for SMF RC2
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: [Unknown] on December 04, 2004, 10:27:58 PM
I'm almost done redoing this for SMF RC2

Check this for information on creating a package:

http://www.simplemachines.org/community/index.php?topic=20319.0

-[Unknown]
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on December 06, 2004, 10:02:25 PM
New mod for RC2 has been posted. Please see the mod section for more details.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: brodle on February 02, 2005, 12:56:00 PM
To disable the ads along the bottom of the chat you can add ads=false to the applet code. We will add this to the next release of the mod as an admin panel config. OFC we would appreciate if you would leave the ads as it will help us manage our resources but its not required to run them.

brodle

Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: OvermindDL1 on February 04, 2005, 11:15:51 AM
*clip*
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on February 05, 2005, 07:10:19 PM
I have to say that I find it pretty testeless to hijack somebody elses mod thread to advertise your own mod, especially one you haven't even created. You say you have never even looked at my mod, which is one of the number one downloaded mods there is, and works awsome. Did I mention it has more options that PJIRC?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: desistyle on December 04, 2005, 10:48:49 PM
hi i am running smf 1.05 and i try to install this it says The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on December 05, 2005, 12:12:39 AM
Ok, this is a REALLY old thread.  Find the newer one :) It's on page 1.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Johno69 on October 13, 2006, 09:34:05 PM
I know this is old but can someone point me to an upto date version please.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on October 14, 2006, 03:47:58 AM
Hehe, old is an understatement! Here is a link to the mod and there is a link to the thread as well.

http://mods.simplemachines.org/index.php?mod=60
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: DHC on November 06, 2006, 09:53:20 PM
Hehe, old is an understatement! Here is a link to the mod and there is a link to the thread as well.

http://mods.simplemachines.org/index.php?mod=60

Do you suppose there is ANY chance of integrating (or updating) phpOpenChat to work with the user tables in SMF?

It appears that phpOpenChat  (http://phpopenchat.org/index.php)had been integrated into YABB at one time, so perhaps it would only need to be upgraded to work with SMF?

TIA
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ardd on July 04, 2007, 02:31:54 PM
 I am a little new at this (read: greener than spring grass in a cow field) I installed the SMF forum about 7/2/07

Here's what it says about the version:
Version Information:
Forum version: SMF 1.1.2
Current SMF version: SMF 1.1.3

 I tried to download the chat module and got a "this is incompatable with this version" error

 Any suggestions on how I may get this to work? Of course keeping in mind the "grass in the cow field"

 Thanks for any help you may give and any patience I may try while experience operator error :)
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: Goosemoose on July 04, 2007, 03:02:23 PM
You need to download the new version of the mod, this thread lists a REALLY old version.
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ardd on July 04, 2007, 06:21:59 PM
Thanks I will go to the mod section and give it a shot with the newest available version and get back to you with the result! I have not installed anything except a theme so far so I will cross the fingers that aren't in my nose :)

 regards
 Ardd    Hypercrites.org
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ardd on July 04, 2007, 06:40:54 PM
OK I gave it another go and still no luck. Is 2.8 the latest version?

 I have a feeling I am probably missing something small and stupid yet significant. If there is any other info I can include that would be helpful just ask and I will get right on it!!

 Thanks again for your efforts.
 Ardd
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: ardd on July 06, 2007, 09:26:29 PM
Still no luck..... Anyone have any ideas?
Title: Re: [BETA] Integrated Chat Mod 2.0 for SMF BETA 5
Post by: gosu on July 18, 2007, 07:14:32 AM
Hy I tried to install the "Integrated Chat 2.8" on my SMF 1.1.3.
It fails with "Error in Package Installation"
I didnt try to press the "install now" button, cause I don't understand the errors...

On the screenshot below you can see which errors excactly.
I am not really sure what to do right now. Documentation is rare, and so I ask you!
thanx for help

http://www.ifk51.de/temp/integratedchaterrors_engl.gif