PDA

View Full Version : Who's In Chat for FlashChat


amykhar
09-14-2004, 10:00 PM
This is a mod for use with FlashChat - a $5 chat script that is worth WAY more than $5.

FlashChat can be purchased at http://www.tufat.com (http://www.tufat.com/)

Out of the box, FlashChat works with Vbulletin 3.

fiber1
09-17-2004, 01:24 AM
Screen shot?

memobug
09-17-2004, 04:01 AM
Amy thanks for this, and for pointing out Flashchat.

Am I correct in assuming that this link assumes that Flashchat is installed in a folder that is a sibling of the vb forum, and it's called "FlashChat?"

require("./FlashChat/info.php");

fiber1
09-17-2004, 04:25 AM
fixed

amykhar
09-17-2004, 06:47 PM
Amy thanks for this, and for pointing out Flashchat.

Am I correct in assuming that this link assumes that Flashchat is installed in a folder that is a sibling of the vb forum, and it's called "FlashChat?"
Not a sibling - a child, but the directions indicate you should change that if you installed elsewhere.

I'll attach a screenshot in a second.

memobug
09-19-2004, 05:05 AM
Hmmmm.. I get the output but after a group of four warnings displayed first:

Warning: fopen(./appdata/appTime.txt): failed to open stream: No such file or directory in /home/bonsai/public_html/forum/chat/inc/classes/chatServer.php on line 60

Warning: fwrite(): supplied argument is not a valid stream resource in /home/bonsai/public_html/forum/chat/inc/classes/chatServer.php on line 61

Warning: fflush(): supplied argument is not a valid stream resource in /home/bonsai/public_html/forum/chat/inc/classes/chatServer.php on line 63

Warning: fclose(): supplied argument is not a valid stream resource in /home/bonsai/public_html/forum/chat/inc/classes/chatServer.php on line 64
User1, Ducky, memoBug


Maybe it's a permissions problem?
Regards,

Matt

amykhar
09-19-2004, 02:29 PM
Matt, try doing a chdir before the include and then chdir back afterward.

Flexo
09-30-2004, 09:34 PM
What does this mod do? As you say, Flashchat already works with vB out of the box.

Better put: how does it look without the mod?

imported_BillAlpha
10-01-2004, 04:03 PM
Just installed this mod - cheers :)

Flexo - it adds an extra table row under the "Currently Active Users" box in the "What's Going On" section on the Forum Home Page, and it lists the IDs of members who are in the Chat Room - handy for users who want to know who's in the room before going in themselves!

Bill ;)

imported_BillAlpha
10-02-2004, 02:03 PM
At the minute, when there's nobody in the chat room the "Who's in Chat?" is blank (see attachment).

I was wondering if it would be possible to add something to this mod that would add a line of text saying something like "There are no users currently in chat" when the room is empty?

If so - how could it be done and can anyone do this?!! Cheers :)

amykhar
10-04-2004, 03:20 AM
Do it as a template conditional. Check to see if $chatwho exists or not. If it doesn't, print your "Nobody's in chat" phrase.

memobug
10-04-2004, 03:43 AM
I had to do this in the php template

@require("./FlashChat/info.php");

instead of

require("./FlashChat/info.php");

To avoid getting the errors I mentioned above.

Regards,

Matt

imported_pmay68
10-05-2004, 12:10 AM
i noticed that when I use this hack it messes up the arcade.. the who's in chat works great but this is the error it gives me when I try to access the arcade, any suggestions??

It has something to do with the phpinclude_start file because when i delete the entry all works fine accept for the who's in chat then... go figure... can you help me??

Fatal error: Cannot redeclare getmicrotime() (previously declared in /www/a/adventurers/htdocs/forums/FlashChat/inc/common.php:123) in /www/a/adventurers/htdocs/forums/includes/functions_arcade.php on line 3

imported_pmay68
10-05-2004, 10:30 PM
fixed it nevermind :)

imported_BillAlpha
10-06-2004, 07:53 AM
Thanks for the reply Amykhar.

I'd already thought about a conditional but as a noob it's not something I know how to do just yet! I did however adjust the info.php file to show a text line of "Users currently in chat:" which displays a zero when nobody is in the room and then the number of people who are in when it's being used - with their ID underneath as usual.

Cheers :)

Debbi
10-09-2004, 05:22 AM
Do it as a template conditional. Check to see if $chatwho exists or not. If it doesn't, print your "Nobody's in chat" phrase.
I'm a little new to the vB code. If it's not too much trouble could someone please elaborate on this some? :confused: Thanks!

Loxias
10-10-2004, 03:19 PM
Just curious if anyone else is having any issues in Firefox. The Enter key no longer sends the message it returns a line and the background doesn't display properly. Everything works fine in IE though.

GatorLCA
10-14-2004, 01:03 AM
For some reason my text has become larger when I have the who's in chat activated. I like it with a smaller font, I'll post pics of what I am talking about

One on the left is what it does when activated, the one on the right is the way it's always been.

Debbi
10-14-2004, 02:15 AM
I had the same problem and it involved the HTML from the FlashChat info.php. I removed the HTML from mine but you may be able to close the tags somehow instead. I have no use for displaying that file any longer now that it shows in the who's online. Someone else may know a lot more than I do but that's where I tracked it to.

oldfan
10-15-2004, 01:48 AM
* oldfan clicks install :)

I got a couple of questions

1 - how to a get it to say "No one in Chatroom" when the chat is empty?
2 - how can I get on the display the usernames like it does in the who's online?
3 - Can this be added to vBadvanced as a block?


thanks

GatorLCA
10-15-2004, 03:27 AM
Got my issue resolved...just took out the HTML in the info.php

dieselpowered
10-15-2004, 07:17 AM
Help, I am obviously putting the information in the wrong location on the FORUMHOME template, however, I cannot seem to figure out where it goes :mad:

Here is a pic, could someone help?

GatorLCA
10-15-2004, 03:58 PM
Ok, another problem, my co-admin recently upgraded to the newest version and now the Who's in Chat isn't working, I don't see how it wouldn't since I put back the info.php file from this thread into there and when I type in the URL my name shows up but it doesn't show up in the ForumHome even though I haven't changed the templates

EDIT: I fixed it

thatmusicdude
10-18-2004, 08:54 PM
i noticed that when I use this hack it messes up the arcade.. the who's in chat works great but this is the error it gives me when I try to access the arcade, any suggestions??

It has something to do with the phpinclude_start file because when i delete the entry all works fine accept for the who's in chat then... go figure... can you help me??

Fatal error: Cannot redeclare getmicrotime() (previously declared in /www/a/adventurers/htdocs/forums/FlashChat/inc/common.php:123) in /www/a/adventurers/htdocs/forums/includes/functions_arcade.php on line 3

oldfan
10-19-2004, 02:59 AM
I had to do this in the php template

@require("./FlashChat/info.php");

instead of

require("./FlashChat/info.php");

To avoid getting the errors I mentioned above.

Regards,

Matt


try this thatmusicdude

rex_b
10-20-2004, 07:01 PM
How did you guys fix the arcade problem. I'm having the same problem...

NuclioN
11-03-2004, 10:35 AM
The username on forumhome is to large, how can i get it smaller? It does not work when i set it between font tags.


How did you guys fix the arcade problem. I'm having the same problem...
I've deleted the first function (with getmicrotime) out of the functions_arcade.php

indie
11-04-2004, 09:18 AM
Anyone having logout from vbulletin issues after being in the chatroom? I found others with this too. Looking for correct fix. thanks

indie
11-05-2004, 04:04 AM
...........

dieselpowered
11-05-2004, 04:48 AM
Could someone be so kind as to tell me where I should place the code on the ForumHome template...Seems that I am not doing it right and it is not looking as it should. Thank you everyone!!!

dieselpowered
11-09-2004, 04:12 AM
Anyone? I would really like to get this up and running and it is not working....

mholtum
11-09-2004, 04:21 AM
I got it installed. Easy $$.. The info that is placed in the Forum Home is at the bottom.. Doesnt look very good. I am probably going to remove it.

dieselpowered
11-09-2004, 04:30 AM
Ya I got that part, what I do not understand is why it always shows me in the chat?

dieselpowered
11-09-2004, 04:46 AM
Alright, problem solved, restored database and got rid of this hack. It does not work properly and has too many bugs.....No support (which I can understand, people are busy)

Hack should probably be put in a beta stage and tested some more.

Viks
11-10-2004, 12:04 AM
Warning: fopen(./appdata/appTime.txt) [function.fopen]: failed to create stream: No such file or directory in /hsphere/local/home/vikrem/thelfom.com/forums/flashchat/inc/classes/chatServer.php on line 60

Warning: fwrite(): supplied argument is not a valid stream resource in /hsphere/local/home/vikrem/thelfom.com/forums/flashchat/inc/classes/chatServer.php on line 61

Warning: fflush(): supplied argument is not a valid stream resource in /hsphere/local/home/vikrem/thelfom.com/forums/flashchat/inc/classes/chatServer.php on line 63

Warning: fclose(): supplied argument is not a valid stream resource in /hsphere/local/home/vikrem/thelfom.com/forums/flashchat/inc/classes/chatServer.php on line 64

-- error after installing hack!! HELP!

dieselpowered
11-10-2004, 01:59 AM
Viks, hack does not work properly...try this though:

Do this in the php template

@require("./FlashChat/info.php");

instead of

require("./FlashChat/info.php");

restless
11-16-2004, 07:50 PM
I've deleted the first function (with getmicrotime) out of the functions_arcade.php
what effect does this have on the arcade?

restless
11-17-2004, 06:38 PM
well, i found out what removing that function in functions_arcade.php does.

it stops several games that depend on that function from writing any new scores. nobody should remove that function if they want their arcade to work. i think i'd rather have a functioning arcade than be able to see who'd online in the chat.

is there any way to get this working for a forum that has an arcade?

SupraT
11-17-2004, 09:56 PM
Sorry if has been asked, but I have found it anywhere.

Can this srcipt be integrated with VB, whereas it loads within it? LIke a hack I guess.

TwinsForMe
11-18-2004, 03:11 AM
I took out the html tags in the info.php but my forumhome is still in larger text. Has anyone resolved this issue?

dieselpowered
11-18-2004, 03:49 AM
Unfortunately, the only way I was able to fix it was to delete it from my server. I really do wish it would work properly though, would have been a great tool!!

Viks
11-18-2004, 03:51 PM
Do it as a template conditional. Check to see if $chatwho exists or not. If it doesn't, print your "Nobody's in chat" phrase.

yeah. this will be a great mini mod.

can someone tell this ignorant.. non-programmer.. how to do this using above mod.

thanks

outlaw621
11-18-2004, 07:44 PM
yeah. this will be a great mini mod.

can someone tell this ignorant.. non-programmer.. how to do this using above mod.

thanks

I would also like to know how to implement the conditional. I am new to this and would love to learn.
Thank you in advance for your help.

restless
11-19-2004, 02:40 AM
Unfortunately, the only way I was able to fix it was to delete it from my server. I really do wish it would work properly though, would have been a great tool!!don't take out the html... just take out the css.

TwinsForMe
11-20-2004, 04:23 AM
don't take out the html... just take out the css.

What does that mean? :confused:

restless
11-23-2004, 03:01 AM
remove this code from info.php:

<style type="text/css">
<!--
.normal {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
}
A {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0000FF;
}
A:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
-->
</style>

i'd like to reiterate that this hack will NOT work if you the arcade installed. if you take that code out of the arcade file, your arcade ceases to work properly.

TwinsForMe
11-23-2004, 04:08 PM
Instead of taking that out of the info.php, I just changed the size from 12px to 11px.

http://twinteresting.com/forums/index.php?

imported_1yesfan
11-28-2004, 11:36 PM
I msut say for 5 bucks this is a great addition to my site. Seems to be workign pretty good.

charlesk
12-05-2004, 03:23 PM
Could anyone possibly suggest a simple modification to the sample info.php to return just the number of users in chat (all rooms combined)? I might be able to figure it out, but I'm afraid I will mess it up. :) Thanks

Edit: Never mind, I think I figured it out. It was a bit confusing because I found there was already an info.php in my FlashChat directory and it had the code I needed..

Charles

charlesk
12-05-2004, 03:56 PM
Okay, looks like I can't get this to work after all.

I modified info.php and got it so when I run it directly it spits out the correct HTML. But whenever I try to put a reference to $chatwho in one of my templates, I get this...

Warning: fopen(./appdata/appTime.txt): failed to open stream: No such file or directory in <my home dir>/vb/FlashChat/inc/classes/chatServer.php on line 60

Warning: fwrite(): supplied argument is not a valid stream resource in <my home dir>/vb/FlashChat/inc/classes/chatServer.php on line 61

Warning: fflush(): supplied argument is not a valid stream resource in <my home dir>/vb/FlashChat/inc/classes/chatServer.php on line 63

Warning: fclose(): supplied argument is not a valid stream resource in <my home dir>/vb/FlashChat/inc/classes/chatServer.php on line 64

Any thoughts on this much appreciated.

Charles

charlesk
12-05-2004, 07:56 PM
For anyone else who might run into this, I fixed it by changing config.sys to have an absolute path to appTime.txt rather than a relative one.

Charles

NYI Fan
12-05-2004, 08:20 PM
I had to do this in the php template

@require("./FlashChat/info.php");

instead of

require("./FlashChat/info.php");

To avoid getting the errors I mentioned above.

Regards,

MattMatt, im getting the exact same errors you suggested this fix for but putting @ in front of the require isnt fixing it - any other suggestions?
Thanks!

oldfan
12-06-2004, 04:19 AM
anyone know how to make the usernames clickable?
thanks

matthepepe
12-06-2004, 03:34 PM
For anyone else who might run into this, I fixed it by changing config.sys to have an absolute path to appTime.txt rather than a relative one.

Charles
This is the way I had to fix the errors that were occuring,

@require("./FlashChat/info.php");

was not enough to fix it.

oldfan
12-07-2004, 01:16 PM
anyone know how to make the usernames clickable?
thanks


anyone? :D

matthepepe
12-07-2004, 07:23 PM
anyone? :D
working on it.

oldfan
12-08-2004, 11:34 AM
working on it.

thank you :D

matthepepe
12-09-2004, 05:10 PM
The only thing that you have to do is edit your info.php

I've atached my info.php file.

oldfan
12-10-2004, 06:05 PM
The only thing that you have to do is edit your info.php

I've atached my info.php file.


thanks I'll try it and let you know what happened :D

oldfan
12-11-2004, 01:27 AM
thanks I'll try it and let you know what happened :D

worked like a charm, thanks :D

matthepepe
12-11-2004, 11:06 PM
worked like a charm, thanks :D
no problem, the only other thing I was trying to do was figure out the colored usernames but I'm not sure how vb pulls that info.

oldfan
12-12-2004, 04:56 AM
no problem, the only other thing I was trying to do was figure out the colored usernames but I'm not sure how vb pulls that info.

you got me :confused:

matthepepe
12-13-2004, 04:49 AM
you got me :confused:
I found a way to do it but it probably would have added a ton of queries everytime the page was loaded.

juanchi
12-30-2004, 01:55 PM
Anyones knows how can this be added as a block in the index page of vbadvanced CMPS, thanks

amykhar
12-31-2004, 12:29 AM
I am not sure why some of you had problems with the arcade. I never did, with either of the arcades that I used.

PixelFx
01-09-2005, 10:14 PM
To get this working on vb3.0.5 I add to change the phpinclude_start to



ob_start();
include('./flashchat/info.php');
$your_code = ob_get_contents();
ob_end_clean();



Rather than use Require. I hope that helps.

Demo Link: http://www.orbsydia.org/index.php?id=chat
http://www.orbsydia.org/forum/index.php

Viks
01-09-2005, 10:51 PM
nice hack.. installed.

imported_TCB
01-13-2005, 07:11 AM
Anyones knows how can this be added as a block in the index page of vbadvanced CMPS, thanks


Yes, that would be fantastic :D

TRR
01-22-2005, 02:55 AM
For anyone else who might run into this, I fixed it by changing config.sys to have an absolute path to appTime.txt rather than a relative one.

Charles


Did you mean the config.php file? I can't find a config.sys file, and I am having the same problem. I have also tried changing from "required" to "include", and that didn't work either. I have done a chmod with smartftp on my txt file (777), so I am out of ideas. :(

memobug
04-26-2005, 09:09 AM
For anyone else who might run into this, I fixed it by changing config.sys to have an absolute path to appTime.txt rather than a relative one.

Charles

For what it's worth the file that needs updated in Flashchat 4.0.1 to clear this problem is config.php now. You need absolute paths for both the
'appdata_path' ( for appTime.txt) and
'botsdata_path' (for bots.txt)

However, that isn't all of it. I am still getting an error in info.php. The line number probably differs from your installation but the error reads

Fatal error: Call to a member function on a non-object in /home/domain/public_html/chat/info.php on line 79

(This is line 79)

while($rec = $rs->next()) $list[] = $rec;

I don't get that error when I run info.php from the command line, only when I try to bring it in through vbulletin.

Regards,

Matt

zetetic
04-26-2005, 08:18 PM
I don't know if amykhar is still around supporting this or not, but Paul M. released a hack (https://vborg.vbsupport.ru/showthread.php?t=73042) for this over at vB.org. His uses a query he appears to have written himself instead of info.php, and it seems to work fine with vb 3.0.6 and Flashchat 4.0.1.

Hades-1
04-25-2007, 03:36 PM
At the minute, when there's nobody in the chat room the "Who's in Chat?" is blank (see attachment).

I was wondering if it would be possible to add something to this mod that would add a line of text saying something like "There are no users currently in chat" when the room is empty?

If so - how could it be done and can anyone do this?!! Cheers :)

i need help too, im having the same problem here except there are 5 people in the room right now, no matter what i do its blank.