vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Who's In Chat for FlashChat (https://vborg.vbsupport.ru/showthread.php?t=89796)

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

Quote:

Originally Posted by amykhar
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

Quote:

Originally Posted by Viks
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

Quote:

Originally Posted by xtremeoff-road
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

Quote:

Originally Posted by restless
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

Quote:

Originally Posted by memobug
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

Matt, 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

Quote:

Originally Posted by charlesk
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

Quote:

Originally Posted by oldfan
anyone know how to make the usernames clickable?
thanks


anyone? :D

matthepepe 12-07-2004 07:23 PM

Quote:

Originally Posted by oldfan
anyone? :D

working on it.

oldfan 12-08-2004 11:34 AM

Quote:

Originally Posted by matthepepe
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

Quote:

Originally Posted by matthepepe
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

Quote:

Originally Posted by oldfan
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

Quote:

Originally Posted by oldfan
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

Quote:

Originally Posted by matthepepe
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

Quote:

Originally Posted by oldfan
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

Code:


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

Quote:

Originally Posted by juanchi
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

Quote:

Originally Posted by charlesk
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

Quote:

Originally Posted by charlesk
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 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

Quote:

Originally Posted by BillAlpha (Post 719271)
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.


All times are GMT. The time now is 10:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01260 seconds
  • Memory Usage 1,816KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete