![]() |
BTW, not related, but just reading your forum I noticed you had changed the refresh time from 3 secs to 0.1 secs - this is a very bad idea - 2 seconds is about the minimum you should consider. Basically you are telling every user to poll the server every 0.1 seconds - using large amounts of bandwidth and eventully if quite a few join, collapsing the whole thing. (Imagine trying to refresh a normal page 10 times a second !!).
|
thanks for telling that.
Actually i did that as a test to see if it fixes lag. Right now all were complaining of some 7 to 30 secs lag. I tried to test the chat with high refresh to see if it did anything. It hasn't. Ar best its now variable with some users getting it way too high and some low. Anyway i will make it back to 2secs. the problem is caused only on 1. Index.php edited, Forumhome not changed. (or even if i change forumhome, and don't edit the index.php its allright. Its only on index.php file edit that it occurs.) btw i just sent you some details via pm(index file and test user details.) |
I am trying to use this code in collaboration with AdColumns so that it has a Whos in chat display on a side column. I put this code in a template being called by AdColumns but it doesn't appear to work this way. The template is being called on ForumHome, is there anything you can think of that would fix this problem so the code can function as part of a template that is being called?
|
I don't know much about adcolumns - and am not really sure what you are saying doesn't work. Can you be more specific, or link to your site.
|
Sleazy - thanks for the PM - I have replied with what should be the answer for you.
|
hey paul should I bother with flash chat?
|
Quote:
I have it, and this hack installed. Both running smoothly. |
Quote:
If so then yes, FC does the job (as do others I might add, but I, and many others chose this one). |
Hey Paul,
I'm running VB3.03 and the latest FlashChat.... For some reason I'm getting this error. It's adding an extra vb3_ it seems when doing the queries.... I'm still too new to figure this out I guess..... Any help would be appreciated..... Database error in vBulletin 3.0.3: Invalid SQL: SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, connections.start, user.usergroupid, user.displaygroupid, user.options, user.username, groupa.opentag as opentaga, groupa.closetag as closetaga, groupb.opentag as opentagb, groupb.closetag as closetagb FROM vb3_vb3__fc_connections as connections LEFT JOIN vb3_vb3__fc_rooms as rooms ON(connections.roomid = rooms.id) LEFT JOIN vb3_user as user ON(connections.userid = user.userid) LEFT JOIN vb3_usergroup as groupa ON(user.usergroupid = groupa.usergroupid) LEFT JOIN vb3_usergroup as groupb ON(user.displaygroupid = groupb.usergroupid) WHERE connections.userid IS NOT NULL ORDER BY start mysql error: Table 'vb.vb3_vb3__fc_connections' doesn't exist mysql error number: 1146 |
Romeos Tune,
I am getting the exact same error. Still trying to figure out what it is. |
Quote:
The 'vb3_' is your vB table prefix, because it assumes the flashchat tables were also created with this prefix. On top of this there is also a flashchat prefix which was added in 4.0.x which has complicated matters. Does your chat actually work ? What are you flashchat tables actually called ? What prefix (pref) is defined in your flashchat config.srv.php ? |
Quote:
Whos chatting Hack 2.16 Quote:
Quote:
|
Okay, looks like flashchat 4.0.x now ignores the vB prefix (except at install ?) and just uses it's own internal one.
Try replacing the code in index.php with this 2.17 version and let me know how it goes. PHP Code:
|
Thanks Paul! Works like a charm.
|
Quote:
|
Thanks Paul! That fixed my problem too.... Awesome! :)
|
Just wanted to say thanks for the mod, works perfectly and so easy to install! Thanks! :up:
|
good job!
install clicked!!! |
Running vb 3.0.7 and flash chat 4.0.6
Works great!! :) No errors at all, only bug I noticed is that it counts bots as being in the room(bad), but doesn't list them in the Who's In Chat(good). We have 1 bot in our chat so unfortunately it never thinks noone is in chat thought it will have a blank area where the names list heh. |
the inthechat.php is missing the code to grab the template..
Find Code:
?> And Add ABOVE it: Code:
eval('$home[$onlineid][\'content\'] = "' . fetch_template('adv_portal_ts') . '";'); Has the same problem as the forumhome section in counting bots though. |
Quote:
Updated and re-uploaded. :) |
Okay Paul, I debugged the rest for ya :)
Here's the other things you'll need to add to correct the module to work. For the forumhome hack so that it doesn't pick up the bots, also find this code in the inthechat.php file to fix it for the module. Replace this: Code:
$chatlist = $DB_site->query("SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, connections.start, Code:
$chatlist = $DB_site->query("SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, connections.start, The last fix for the module is open inthechat.php and find: Code:
<? Code:
foreach ($modules AS $omods) flashchat That'll fix all the quirks :) Awesome work Paul, thank you so much, I never could have coded this myself :), I can tweak code like crazy, but I can't write a damn thing from scratch LOL! |
Quote:
As regards the bots - these are a new feature of FlashChat 4.0.x - you are the first person to ask about not displaying them. I personally don't use them anyway. The code you have added will technically work if you haven't changed the bot ip address in the f/c config file - but if I add this to the hack then I will make sure it reads the configured ip, and also make it optional as some people my want the bots listed. Thanks for your post. :) |
Ah bugger, I did make a typo in my first post.
Here is the attached editted inthechat.php file with the changes I made. |
Cheers - I have written v2.20 which includes the option to not show bots - but I can't test it until tomorrow. If it works then I will upload it and a new corrected module as well. Thanks for you help with the CPMS bit. :)
|
Happy to help :)
|
I can't get my forum page to open. :( I'm getting this error:
Quote:
require_once("./" . $fcfolder . "/inc/common.php"); |
did you change to show your correct chat directory?
$fcfolder = 'chat'; // The folder name where your flashchat installation is located // |
Quote:
|
Quote:
|
From the information you PM'd me, it looks like your chat is a folder level up from your forum (I would have thought you must have had to alter some paths in flashchat when you installed it) ?
Try ; Code:
$fcfolder = '../chat'; // The folder name where your flashchat installation is located // |
No I didn't have to alter anything. I just installed the newest version and from the way the install directions read I thought that's where it was supposed to go. Everything worked correctly with Flashchat itself so I didn't think anything was out of the ordinary. I'll try your fix and let you know if it works. Thanks. :)
|
That fixed it Paul. Thanks a lot. :) :)
|
*clicks install
|
Hi Paul,
is there anyway to Block Usergroups from the Chat? |
Quote:
|
Quote:
if i moved a user in a Group called moderate, they don?t use the chat and they don?t displayed too. 2. i asekd you, about to display most chatters an the day, a few weeks ago :) Uyou insert the code in your new hack, wich contains who?s online,who?s chatting. can i used the Part of the Code as standalone wich this one? |
Quote:
1. Are you saying you want to ban a group from using the chat ? If so then you need to install my Flashchat upgrades hack. 2. Most chatters is possible by installing all, or part, of my Most Ever Users/Members/Guests/Chatters hack. HTH. |
Quote:
|
Quote:
|
All times are GMT. The time now is 03:03 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|