View Full Version : FlashChat : Integration upgrades for vBulletin.
Paul M
01-17-2005, 10:00 PM
This modification is no longer available or supported.
This originally made changes to add new facilities to your FlachChat & vb set-up. However, all the features added are now part of standard Flashchat (4.6.0 and above). This now just supplies the latest vb 3.0 CMS file, which depending on circumstances, may either be the same as, or newer than, the one supplied with Flashchat itself.
To install the latest 3.0 CMS file - unzip it, edit the usergroups access and options as required, and then copy the file to the ../chat/inc/cmses/ folder on your server.
Optionally, you can also edit inc\langs\en.php.
Finding ;
'banned' => "You've been banned",and replacing with ;
'banned' => "You do not have permission to enter the chat",
* Version 1.82 was the last version of the old hack (for Flashchat 4.2.1 upwards).
History of the 3.0 CMS file
* v1.13 - updated vbulletin30CMS.php file for vb 3.0 and Flashchat 4.5.2+ this contains a fix for a cookie security issue.
* v1.14 - Added ability to login direct to a room using ../flashchat.php?username=_int_&room=n
* v1.15 - Alterations to caching code.
* v1.16 - Minor fix to Get User for membergroupids.
* v1.17 - Security (anti-hacking) code added (as supplied by Darren).
* v1.18 - Usergroup settings moved to top of CMS file.
* v1.19 - Fixed error message when accessing chat admin area.
* v1.20 - Default role changed.
* v1.21 - Minor bug fix to Avatar detection, login code changes, tidy up.
wrongful
01-19-2005, 01:41 AM
Works great, thanks for the modifications.
kewl1uk
01-27-2005, 06:34 PM
Thanks. Clicks install.
trainer
02-04-2005, 05:52 PM
how do you allow specific usergroups access? i don't see the option
Paul M
02-04-2005, 06:04 PM
how do you allow specific usergroups access? i don't see the option
Taken from the instructions ;
// Edit the cases below to set permissions for different vBulletin usergroups //
function getRoles($usergroupid) {
switch($usergroupid) {
case 5:
case 6:
return ROLE_ADMIN; // Chat Staff //
case 2:
case 7:
case 8:
return ROLE_USER; // Allowed Users //
default:
return ROLE_NOBODY; // Banned Users (everyone else) //
}
}
Eagle Creek
02-28-2005, 10:54 PM
Stupid question but where can I find the original flash chat? I find modifications, add-ons and hacks everwhere but not the chat itself..
Paul M
02-28-2005, 11:47 PM
www.tufat.com - second in the list. :)
Eagle Creek
02-28-2005, 11:48 PM
www.tufat.com - second in the list. :)
I'll take a look. Thank you!
Edit: I get 404?
SuperGLS
03-04-2005, 10:33 PM
When setting different permissions, is the case number equivalent to the chat room number?
EDIT- And, can I make a room for all mods? Not just the Admin (only me)?
Thanks in advance.
Paul M
03-05-2005, 10:47 AM
When setting different permissions, is the case number equivalent to the chat room number?
EDIT- And, can I make a room for all mods? Not just the Admin (only me)?
Thanks in advance.The case number is the vBulletin usergroup number, not the room - i.e. the permissions in flashchat/vB integration are usergroup based, not room based.
The Permanant Private rooms this hack adds are visible to anyone defined as flashchat staff - in the example I posted above this is usergroups 6 & 5 (Administrators and Supermods). The Moderators group is id 7.
SuperGLS
03-14-2005, 02:13 AM
Ok great. I'll attempt this install tomorrow. Thanks in advance.
emtee
03-22-2005, 09:34 PM
Does it work with Usernames that have SPACE (e.g. Test User) ? Because I know fresh FlashChat 3.9.6.1 doesn't work with vB usernames that have SPACE.
TIA
Treasure Quest
03-24-2005, 08:44 PM
Hi Paul,
Now I really messed things up. My chat asks for login but loads a blank screen.
I tried to edit the connection.php and vbulletinCMS.php for this upgrade but had trouble doing it. Now after I uploaded my backup files the chat will not work.
Paul, I believe you are a member at my forum, could you look and see what its doing and suggestions.
Need help sir,
www.treasurequestxlt.com/community
Greg
Treasure Quest
03-25-2005, 02:42 PM
Couldn't get the upgrade to work, probaBLY MY ERROR.
How come when I re uploaded my two back up files now nothing works.
Paul M
03-26-2005, 12:35 PM
Paul, I believe you are a member at my forum, could you look and see what its doing and suggestions.
Need help sir,
www.treasurequestxlt.com/community
GregI'll look later, I have only just got back from a weeks holiday. :)
Treasure Quest
03-26-2005, 05:21 PM
I'm sorry Paul, I just noticed yesterday that you were on vacation.
Hope you had a good time :)
Greg
Treasure Quest
03-26-2005, 09:24 PM
Hi Paul,
Did I have the upgraded files?
I can still log into the chat via banned user.
If I didn't then thats okay, I won't worry about it :cheeky:
Greg
Paul M
03-26-2005, 09:52 PM
Hi Paul,
Did I have the upgraded files?
I can still log into the chat via banned user.
If I didn't then thats okay, I won't worry about it :cheeky:
GregSorry - I didn't realise you had removed the hacked connections.php - I have uploaded the modified version to your site which should prevent non allowed usergroups logging in. :)
Treasure Quest
03-26-2005, 09:57 PM
Thanks Paul.
I'll give it a try.
Paul's a great person!
Treasure Quest
03-26-2005, 10:02 PM
I have a test user that I have banned.
username:Chip
password: tooty4
I can still log into the chat using the banned username.
I'll try again in a bit,
Greg
Paul M
03-26-2005, 10:29 PM
That's because I used a copy of my cms file, which had a few extra usergroups allowed - one of which must have the same id number as your banned group. Now only groups 5, 6, 7 & 2 are allowed (with 5 & 6 defined as admin).
Treasure Quest
03-26-2005, 10:36 PM
I got to thinking on this Paul and the banned user Chip has my IP address, that may create a problem as well?
Greg
Paul M
03-26-2005, 10:54 PM
I got to thinking on this Paul and the banned user Chip has my IP address, that may create a problem as well?
GregThat user can no longer log into the chat (tested here). There is no ip check in the usergroup checking code (of this hack).
Treasure Quest
03-27-2005, 12:04 AM
Thank you, works great!!!
* Mosh clicks install
I am getting to be a fan of your hacks, I think this is the third one of yours I have used as they are nice and simple to install with no fuss.
Thanks,
jd :)
Paul M
03-28-2005, 08:57 AM
* jdsinclair clicks install
I am getting to be a fan of your hacks, I think this is the third one of yours I have used as they are nice and simple to install with no fuss.Thank you for your comments. :)
camoman
03-30-2005, 09:20 PM
I have a problem with my flash chat since the upgrade to 3.0.7 .. seems everything loads fine but all I get is a blue screen.. I hoped that this would fix it since it says it works on 3.0.7. I tried posting on tufat's forums and they said they have heard of this but don't have time to fix it right now :( .. they are suposidly working on a new release of Flash Chat.
Has anyone see this or know somthing I can try. I have tried the cookie hacks and the domain hacks but they didn;t work either :( I love this chat and my members want it back..
Any help would be GREATLY appreciated!!
you can view it here: www.trackshare.com but you'll have to sign up to see the link:(
these are the erros in my httpd log:
Thu Mar 24 10:58:17 2005] [error] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home2/camoman/public_html/forum/FlashChat/inc/classes/chatServer.php on line 64
[Thu Mar 24 10:58:17 2005] [error] PHP Warning: fflush(): supplied argument is not a valid stream resource in /home2/camoman/public_html/forum/FlashChat/inc/classes/chatServer.php on line 63
[Thu Mar 24 10:58:17 2005] [error] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home2/camoman/public_html/forum/FlashChat/inc/classes/chatServer.php on line 61
[Thu Mar 24 10:58:17 2005] [error] PHP Warning: fopen(./appdata/appTime.txt): failed to open stream: Permission denied in /home2/camoman/public_html/forum/FlashChat/inc/classes/chatServer.php on line 60
[Thu Mar 24 10:58:17 2005] [error] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home2/camoman/public_html/forum/FlashChat/inc/classes/chatServer.php on line 64
[Thu Mar 24 10:58:17 2005] [error] PHP Warning: fflush(): supplied argument is not a valid stream resource in /home2/camoman/public_html/forum/FlashChat/inc/classes/chatServer.php on line 63
[Thu Mar 24 10:58:17 2005] [error] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home2/camoman/public_html/forum/FlashChat/inc/classes/chatServer.php on line 61
Paul M
03-31-2005, 04:24 PM
This appears to be your problem ;
[Thu Mar 24 10:58:17 2005] [error] PHP Warning: fopen(./appdata/appTime.txt): failed to open stream: Permission denied
The /appdata/appTime.txt file needs to be set to universal read/write access (777 in unix) otherwise flashchat will hang on loading (as yours is).
camoman
03-31-2005, 04:25 PM
Thanks got it working :)
Well, I have installed FlashChat 4.01 onto my test server.
From your instructions:
Step 1. Can not be done in its current state as
$this->ip = $_SERVER['REMOTE_ADDR'];has changed to$this->ip = ($args['is_bot'] == null)? $_SERVER['REMOTE_ADDR'] : $args['is_bot'];I am not sure what would need to replace this line.
Step 2 & 3. You need to edit sendLoginInfo.php instead of connection.php
Step 4 & 5. You need to edit vbulletinCMS.php (vB 3.0.3) or vbulletinCMS2.php (vB 3.0.7)
So it is just the Proxy detection that needs fixing as far as I know.
Hope this helps you a bit in changing the instructions for v 4.01
jd.
T3MEDIA
04-25-2005, 12:14 PM
Woah nice. I didnt even know flashchat had a version 4.
BUT this is nice!!!
Paul M
04-25-2005, 12:39 PM
Well, I have installed FlashChat 4.01 onto my test server.
From your instructions:
Step 1. Can not be done in its current state as
$this->ip = $_SERVER['REMOTE_ADDR'];has changed to$this->ip = ($args['is_bot'] == null)? $_SERVER['REMOTE_ADDR'] : $args['is_bot'];I am not sure what would need to replace this line.
Step 2 & 3. You need to edit sendLoginInfo.php instead of connection.php
Step 4 & 5. You need to edit vbulletinCMS.php (vB 3.0.3) or vbulletinCMS2.php (vB 3.0.7)
So it is just the Proxy detection that needs fixing as far as I know.
Hope this helps you a bit in changing the instructions for v 4.01
jd.LOL, Thanks - I have actually already done all the required changes on my test system [last week], I just haven't got round to doing a new set of instructions for upload yet. :)
Cool, I look forward in anticipation for you new install instructions :) I can then upgrade my live server to FlashChat v 4.01
Thanks for your FlashChat hacks, I love them :)
Paul M
04-25-2005, 01:46 PM
Cool, I look forward in anticipation for you new install instructions :) Okay - Version 1.50 uploaded (for FC4.0.1).
Thanks for your FlashChat hacks, I love them :)Thank you. :)
Thanks, have downloaded them and will install later :D
TheHokkaidoCrow
05-01-2005, 06:38 AM
This part smells kind of funny...
// Edit to set user roles for different vB usergroups
function getRoles($usergroupid) {
switch($usergroupid) {
case 5:
case 6:
return ROLE_ADMIN; // Chat Staff //
case 2:
case 7:
case 8:
return ROLE_USER; // Allowed Users //
default:
return ROLE_NOBODY; // Unauthorised Users (i.e. everyone else) //
}
}
On my unhacked 3.0.7 vBulletin system, usergroupid 8 is the banned group. The regular users are all usergroupid 2. Why are you returning a ROLE_USER for case 8?
Paul M
05-01-2005, 08:48 AM
This part smells kind of funny...
On my unhacked 3.0.7 vBulletin system, usergroupid 8 is the banned group. The regular users are all usergroupid 2. Why are you returning a ROLE_USER for case 8?Just because Usergroup 8 is a banned group on your forum, doesn't make it so on every forum.
Like it says "// Edit to set user roles for different vB usergroups ".
..... and if you have installed this, please click on install.
T3MEDIA
05-01-2005, 10:23 AM
Okay - Version 1.50 uploaded (for FC4.0.1).
Thank you. :)question can the vbindex/vbadvanced hack still work or its completely differnt now?
Second question is there a major difference in the chat? I have it but didnt install.
Paul M
05-01-2005, 11:35 AM
question can the vbindex/vbadvanced hack still work or its completely differnt now?Not sure what you mean, please explain.
Second question is there a major difference in the chat? I have it but didnt install.Yes, a number of changes (like bots). However, the vB integration with it (as supplied) is complete pants and is unlikely to work for you - unless you know what you are doing, stay with 3.9.6 atm.
Paul,
This has been up on my live forums for about a week and still working like a charm.
Thanks again,
jd :)
Paul M
05-07-2005, 09:06 PM
Paul,
This has been up on my live forums for about a week and still working like a charm.
Thanks again,
jd :)Thanks for letting me know. :)
vulture
05-10-2005, 02:06 PM
Does the hack only work for primary usergroups?
Paul M
05-10-2005, 03:59 PM
Does the hack only work for primary usergroups?Yes.
vulture
05-10-2005, 04:04 PM
Yes.
Next question: how can you make it work for secondary groups? I have a promotion set where once a user gets to a certain amount of posts, they get access to chat. I can't have them changing their primary usergroup as that will mess up other hacks. Any ideas?
Paul M
05-10-2005, 04:46 PM
Next question: how can you make it work for secondary groups? I have a promotion set where once a user gets to a certain amount of posts, they get access to chat. I can't have them changing their primary usergroup as that will mess up other hacks. Any ideas?In theory it would be possible to make it take note of secondary groups - however it does pose a problem - if one group is not allowed access, and another is, and another is a mod group, what takes priority. Normally a non allowed group would take priority over all others, but you are asking for the opposite (mod/admin would always take priority over user).
vulture
05-10-2005, 07:26 PM
In theory it would be possible to make it take note of secondary groups - however it does pose a problem - if one group is not allowed access, and another is, and another is a mod group, what takes priority. Normally a non allowed group would take priority over all others, but you are asking for the opposite (mod/admin would always take priority over user).
Well, I've hacked the code so it takes care of secondary groups. I created a new role (ROLE_BANNED) so if a mod/admin/user has n secondary groups of which any are classed as banned, then access is denied. Access rights are granted in the following precedence: ROLE_BANNED, ROLE_ADMIN, ROLE_USER, ROLE_NOBODY
Its working fine atm.
Paul M
05-10-2005, 10:14 PM
Nice. :)
speedway
05-12-2005, 12:16 AM
Well, I've hacked the code so it takes care of secondary groups. I created a new role (ROLE_BANNED) so if a mod/admin/user has n secondary groups of which any are classed as banned, then access is denied. Access rights are granted in the following precedence: ROLE_BANNED, ROLE_ADMIN, ROLE_USER, ROLE_NOBODY
Its working fine atm.
Would you mind sharing that mod? Sounds like something I need...
Cheers
Bruce
vulture
05-12-2005, 04:30 PM
Its got some of Paul's code in there (userinrole function), so if paul doesn't mind me posting the changes here ...
Paul M
05-12-2005, 06:13 PM
Its got some of Paul's code in there (userinrole function), so if paul doesn't mind me posting the changes here ...Fine by me. :)
pgowder
05-13-2005, 12:12 PM
Little confused! I'm just starting to install flashchat, do i start with this hack?
Paul M
05-13-2005, 02:27 PM
No, Install flashchat and get it working first, then you can install this hack. :)
pgowder
05-13-2005, 02:37 PM
No, Install flashchat and get it working first, then you can install this hack. :)
Where is Flash Chat hack?? Or download?
Paul M
05-13-2005, 03:19 PM
<a href="http://www.tufat.com" target="_blank">www.tufat.com</a> - it costs $5.
Paul M
05-14-2005, 02:22 AM
Version 1.55 released (for FlashChat 4.0.1 or above).
This adds a 4th new feature - an optional welcome message when a member first joins the chat. :)
snotek
05-16-2005, 09:54 PM
vulture> Are you going to post that addition? I too could use something like that.
Paul M
05-17-2005, 01:13 AM
snotek
Make the following changes to your vbulletinCMS file (whichever one you are using).
Find;
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['tableprefix']}user WHERE userid=?");
Replace with;
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid, membergroupids FROM {$GLOBALS['tableprefix']}user WHERE userid=?");
Find;
$rec['roles'] = $this->getRoles($rec['usergroupid']);
Replace with;
$rec['usergroupid'] .= ",".$rec['membergroupids'] ; //added by Paul M
$rec['roles'] = $this->getRoles($rec['usergroupid']);
Find the getRoles function ;
function getRoles($usergroupid) {
< # current block of code # >
}
Replace it with a new version ;
// Paul M Version - Edit to set user roles for different vB usergroups
function getRoles($usergroupid) {
// Set default access
$userrole = ROLE_NOBODY ;
$groups = explode(',',$usergroupid);
// Set Allowed groups
if (in_array(2,$groups)) $userrole = ROLE_USER;
if (in_array(7,$groups)) $userrole = ROLE_USER;
//Set Staff groups
if (in_array(5,$groups)) $userrole = ROLE_ADMIN;
if (in_array(6,$groups)) $userrole = ROLE_ADMIN;
//Set Banned groups
if (in_array(8,$groups)) $userrole = ROLE_NOBODY;
if (in_array(9,$groups)) $userrole = ROLE_NOBODY;
return $userrole;
}
Edit the above function for your usergroups. This is working fine on my test system.
This version assigns access in the following priority based on both primary and secondary groups.
1. Assign default access (which is set to NO access).
2. If they are a member of an allowed group, grant USER access.
3. If they are a member of a staff group, grant ADMIN access.
4. If they are a member of a banned group, grant NO access.
:)
plateau
05-18-2005, 10:54 AM
well done!
installed clicked!!!
dsboyce8624
05-18-2005, 11:16 AM
It doesn't look like the stuff from post #57 (waste of space to quote it) is included in the instructions, unless I somehow missed it.
Is that on purpose, or just lack of time?
Once bitten twice shy, screwed up things before and don't wanna do it again.
Thanks
Paul M
05-18-2005, 10:27 PM
It doesn't look like the stuff from post #57 (waste of space to quote it) is included in the instructions, unless I somehow missed it.
Is that on purpose, or just lack of time?It will be in the next release when I have time to update the instructions. :)
dsboyce8624
05-19-2005, 05:36 PM
Well, I've already botched up things once, so when you get it all combined in one place I'll go for it, in the meantime I'll subscribe the thread so I don't forget.
Thanks,
Dennis
lifesourcerec
05-20-2005, 06:25 AM
When I use install.php, it hangs at step 5. Says "Could not write to './inc/cmses/defaultUsrExtCMS.php ' file ". It installs with install2.php, but installs for "free for all" version. Can't get it integrated with VB. v3.9.x worked great, but 4.0.6 is a pain.
T3MEDIA
05-20-2005, 01:32 PM
anyone actually got flashchat 4 to work? (intergrate)
Paul M
05-20-2005, 04:05 PM
Yes.
lifesourcerec
05-20-2005, 06:02 PM
I get this error when re-installing it.
Warning: fopen(log.txt): failed to open stream: Permission denied in /public_html/forum/chat/inc/common.php on line 127
Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/forum/chat/inc/common.php on line 128
Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/forum/chat/inc/common.php on line 129
Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/forum/chat/inc/common.php on line 130
Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/forum/chat/inc/common.php on line 140
Paul M
05-20-2005, 09:44 PM
It's trying to write to the log file (probably due to another error) and failing due to lack of permission.
lifesourcerec
05-20-2005, 11:22 PM
On Step 3, there are 2 examples of that code back to back, which one do I replace? (v4.0.6)
Paul M
05-25-2005, 04:15 AM
On Step 3, there are 2 examples of that code back to back, which one do I replace? (v4.0.6)Sorry, I missed this question. I hadn't noticed this double match - I have updated the instructions to make the match unique. The answer is the second set. (It wouldn't harm anything if you did both, the other bit of code is never called in a vB integration).
tteal
05-25-2005, 11:52 AM
Subscribing.......
Paul M
05-25-2005, 08:56 PM
Subscribing.......Subscribing ??
T3MEDIA
05-26-2005, 12:31 PM
Yes.oh thats good to know.
Chadi
05-26-2005, 07:36 PM
Where do I edit what users are entitled to enter?
Paul M
05-26-2005, 08:44 PM
Where do I edit what users are entitled to enter?Your kidding right ?
function getRoles($usergroupid) {
/*
## Paul M Version ##
Edit the code below to set roles for different vB usergroups
This assigns access in the following priority based on all primary and secondary group membership.
1. Assign default access (which is set to NO access below).
2. If they are a member of an allowed group, grant USER access.
3. If they are a member of a staff group, grant ADMIN access.
4. If they are a member of a banned group, grant NO access.
*/
<rest of code>
Chadi
05-26-2005, 08:50 PM
Your kidding right ?
function getRoles($usergroupid) {
/*
## Paul M Version ##
Edit the code below to set roles for different vB usergroups
This assigns access in the following priority based on all primary and secondary group membership.
1. Assign default access (which is set to NO access below).
2. If they are a member of an allowed group, grant USER access.
3. If they are a member of a staff group, grant ADMIN access.
4. If they are a member of a banned group, grant NO access.
*/
<rest of code>
How did you know I was kidding?
Paul M
05-26-2005, 09:00 PM
How did you know I was kidding?I have special powers to detect these things. :)
Chadi
05-26-2005, 09:29 PM
The problem is no one can get into the chat and yet the settings / groups seem right.
My vbulletin has this:
Administrators 6
Banned 8
Unregistered / Not Logged In 1
Registered 2
Super Moderators 5
vbulletincms2.php
$userrole = ROLE_NOBODY ;
$groups = explode(',',$usergroupid);
// Set Allowed groups
if (in_array(2,$groups)) $userrole = ROLE_USER;
if (in_array(7,$groups)) $userrole = ROLE_USER;
//Set Staff groups
if (in_array(5,$groups)) $userrole = ROLE_ADMIN;
if (in_array(6,$groups)) $userrole = ROLE_ADMIN;
//Set Banned groups
if (in_array(8,$groups)) $userrole = ROLE_NOBODY;
if (in_array(9,$groups)) $userrole = ROLE_NOBODY;
What am I missing here?
Paul M
05-26-2005, 11:24 PM
The problem is no one can get into the chat and yet the settings / groups seem right.
What am I missing here?Looks right to me, which suggests that maybe there is another problem - what message do you get - do you have a test user on your site (actually, where is your site).
Chadi
05-26-2005, 11:30 PM
Prompts for login first the tells me permission denied
Chadi
05-26-2005, 11:33 PM
Try user/password "testuser"
www.talkjesus.com
Chadi
05-26-2005, 11:36 PM
btw, that's a "regular" user
Paul M
05-27-2005, 12:51 AM
okay, can you pm me the entire contents of your CMS2 file.
Chadi
05-27-2005, 01:07 AM
See attachment please
Thanks
Note I x'd out the license number on purpose
Paul M
05-28-2005, 12:19 PM
chadi - see your PM's - I located your problem in sendLoginInfo.php (a small editing problem). :)
EricaJoy
06-01-2005, 02:32 PM
*clicks install
Chadi
06-01-2005, 02:35 PM
Paul...thank you very much brother
T3MEDIA
06-08-2005, 12:11 AM
chadi - see your PM's - I located your problem in sendLoginInfo.php (a small editing problem). :)Is it safe to get the latest version of flashchat now paul?
Paul M
06-08-2005, 08:54 AM
Is it safe to get the latest version of flashchat now paul?Well that depends on what you mean by safe. Version 4.0.6 has a few minor bugs, but I believe that if you install it from scratch, following the instructions (using the defaults) then it works fine.
The only new features seem to be the bots and avatars (and more smilies), I believe that it may be slightly more efficient flash code as well. If none of this bothers you then I would question whether it's worth upgrading.
Eagle Creek
06-08-2005, 11:52 AM
Does anybody know if Flashchat will work on the new vB?
Paul M
06-08-2005, 12:30 PM
Does anybody know if Flashchat will work on the new vB?No, but I can think of no reason it wouldn't.
T3MEDIA
06-08-2005, 01:42 PM
Well that depends on what you mean by safe. Version 4.0.6 has a few minor bugs, but I believe that if you install it from scratch, following the instructions (using the defaults) then it works fine.
The only new features seem to be the bots and avatars (and more smilies), I believe that it may be slightly more efficient flash code as well. If none of this bothers you then I would question whether it's worth upgrading.Wow thanks for the heads up on that. I also heard flashchat uses a lot of resource power.
I dont know that to be true though.
Paul M
06-11-2005, 11:13 PM
Does anybody know if Flashchat will work on the new vB?
No, but I can think of no reason it wouldn't.
The answer can now be revealed - yes it will. :)
dave kaye
06-25-2005, 01:04 PM
Hi All
I have just integrated flashchat, latest version and used the integration provided in the install. I have also used Pauls mod re usergroup permissions, but im can not find how to access flashchat user admin within vbulletin.
When I go to the flashchat admin then log in I get this message when clicking on users.
This option is not available when FlashChat is integrated with a custom CMS (content management system).
Please use the user administration tools which come with your system to add, edit, or remove users.
where do I go to get in to admin within vbulletin.
Thanks in advance.
Dave
Paul M
06-25-2005, 01:16 PM
There is no flashchat user admin when integrated - the point of integration is that it uses vB's user list/table. :)
dave kaye
06-25-2005, 01:45 PM
Hi Paul
Thanks, what about the mod the you have done to deny/allow access for usergroups, where is the admin to confiqure this.
Dave
Paul M
06-25-2005, 02:18 PM
Hi Paul
Thanks, what about the mod the you have done to deny/allow access for usergroups, where is the admin to confiqure this.
DaveThere isn't any - you have to edit this section of the CMS file ;
// Set Allowed groups
if (in_array(2,$groups)) $userrole = ROLE_USER;
if (in_array(7,$groups)) $userrole = ROLE_USER;
//Set Staff groups
if (in_array(5,$groups)) $userrole = ROLE_ADMIN;
if (in_array(6,$groups)) $userrole = ROLE_ADMIN;
//Set Banned groups
if (in_array(8,$groups)) $userrole = ROLE_NOBODY;
if (in_array(9,$groups)) $userrole = ROLE_NOBODY;
Each number is the vB usergroup number (i.e. 6 = admin group).
dave kaye
06-25-2005, 02:43 PM
Thanks Paul,
Cant believe I'm so stupid,
In the default user what should it be, I guess also I can add lines for other groups. Also I cant seem to see any rooms or a list of users currently in chat on the right hand side.
Dave
neofootball
07-08-2005, 12:59 PM
I did the changes now all I get is a blank white page, it worked before. So I must have hosed something up any thoughts would be greatly appreciated. :ermm:
Paul M
07-08-2005, 01:18 PM
Well that meas you broke it - as you have no links to your site in your profile I can't look.
One thing - in the flashchat config file, set debug = true, this will help find the error.
neofootball
07-08-2005, 01:54 PM
Paul, ck you PM.
is there anyway to have users auto login
Paul M
07-08-2005, 08:44 PM
is there anyway to have users auto loginStandard vb/flashchat integration already does that - this enhances it.
FYI: Hack updated to 1.75 (for the release of Flashchat 4.0.12).
Paul M
07-08-2005, 10:47 PM
Paul, ck you PM.Your chat is fixed. I recommend you get a better text editor, whatever you used made a mess of your files. :)
Kaelon
07-09-2005, 02:17 AM
Wow thanks for the heads up on that. I also heard flashchat uses a lot of resource power.
I dont know that to be true though.
I have heard this as well - that FlashChat hangs and crashes with more than 20-30 concurrent users, largely because of poor flash-to-file i/o interface (though this last part has not been verified). What is known is that FlashChat tends to lag out and crash with concurrent users numbering 20-30 or so, but I'd like to see some hard data on that. Does anyone know of any FlashChat running with many concurrent users, and report on the type of performance (both in the chat room, as well as to the server)?
Paul M
07-09-2005, 02:50 AM
I would be surprised if it coped well with more than 30. I don't think it would on our server.
Kaelon
07-09-2005, 03:11 AM
I would be surprised if it coped well with more than 30. I don't think it would on our server.
FlashChat, though, is being sold from its site as something that can conceivably host many, many users.
Paul M
07-09-2005, 02:42 PM
FlashChat, though, is being sold from its site as something that can conceivably host many, many users.Then I suggest you take it up with the author. It's not my problem, nor anything to do with this hack. :)
Kaelon
07-09-2005, 05:29 PM
Then I suggest you take it up with the author. It's not my problem, nor anything to do with this hack. :)
Sorry, I didn't mean to ruffle your feathers. I was simply asking if anyone had any data to suggest whether or not FlashChat is stable beyond 20 concurrent users.
I do have the answer, however -- it is not. On a dedicated server solution (Dual Xeon 2.2Ghz, 2 Gigs of RAM, on a 100 Mbps HE/Above backbone), Flashchat experienced flock errors beginning at around 28 users, and at 35 users, it crashed. It's not something that can be mitigated by simply performance; there are inherent flaws with the script. Just something that users might want to know before they decide to use FlashChat as their community chat solution.
cyberxp9
07-14-2005, 06:45 AM
i dont want to upgrade it i want to install it with vb 3, but i cant find a link for a hack here, i need help
Paul M
07-14-2005, 06:57 AM
i dont want to upgrade it i want to install it with vb 3, but i cant find a link for a hack here, i need helpThere isn't one - the instructions come with flashchat when you buy it.
T3MEDIA
07-16-2005, 11:15 AM
Paul check out userplane... I am working with that company to have intergration with vBulletin... Nexia has done a lot of work so far on it. I hired him to do intergration and somehow he jumpped to working with them directly but you should check it out. It is on their servers so all the weight flashchat does is eliminated.
derekivey
07-29-2005, 03:09 PM
Works Great, Thanks Paul!
* derekivey clicks install.
derekivey
07-29-2005, 07:29 PM
For some reason after adding your mod the bots don't come in. Any idea whats wrong?
Paul M
07-29-2005, 08:51 PM
For some reason after adding your mod the bots don't come in. Any idea whats wrong?As I don't use bots, I could not be 100% sure - but at a guess I would say they won't have a valid usergroup (as they are not vb users) and therefore would not be allowed access by the default settings of this hack.
derekivey
07-29-2005, 08:57 PM
Ok, Thanks.
Paul M
07-29-2005, 09:19 PM
FYI, the default access is controlled by this line in the CMS file ;
// Set default access
$userrole = ROLE_NOBODY ;
If you set that to ROLE_USER then they may be able to get in. The problem is that so will any other non banned usergroup (inc possibly guests, I can't test this atm). You *may* want to add lines for usergroups 1, 3 and 4 to the banned groups section (a few lines below the default).
derekivey
07-29-2005, 10:56 PM
Ok, Thanks Paul. I'll try and get it to work.
derekivey
08-03-2005, 07:10 PM
Ok, I took a look and I think it has something to do with this code in inc\classes\sendLoginInfo.php:
// # Paul M # Prevent non allowed members joining .
if(ChatServer::userInRole($this->userid, ROLE_NOBODY))
{
$user = ChatServer::getUser($this->userid);
$this->userid = null;
return $this->sendBack(new Message('lout', null, null, 'banned'));
}
I just can't figure out whats wrong :(
Paul M
08-04-2005, 07:39 AM
Did you change the default to ROLE_USER as per two posts ago ?
derekivey
08-04-2005, 02:53 PM
Yes, and it still didn't work.
Paul M
08-04-2005, 06:52 PM
Change it back to this then, so as not to break anything else.
// Set default access
$userrole = ROLE_NOBODY ;
Having never used bot's I haven't really looked at how they work. I would guess they are being assigned the role of NOBODY and so getting blocked. I'll try and look before I go on Holiday, otherwise it will be towards the end of August before I return.
redtailboa
08-04-2005, 07:21 PM
Same here, none of my bots work :(
derekivey
08-04-2005, 07:44 PM
Ok, Thanks Paul.
Paul M
08-04-2005, 09:20 PM
In sendlogininfo.php - try changing
if(ChatServer::userInRole($this->userid, ROLE_NOBODY))
to
if(ChatServer::userInRole($this->userid, ROLE_NOBODY) && $this->ip != $GLOBALS['fc_config']['bot_ip'])
That should allow bots to enter.
derekivey
08-04-2005, 11:58 PM
Thanks Paul, I'll give that a try :)
derekivey
08-05-2005, 12:08 AM
Thanks Paul it works! :)
Paul M
08-05-2005, 12:09 AM
Thanks Paul it works! :)Ah, good. I'll update the release version then. :)
derekivey
08-05-2005, 12:33 AM
Ok, Cool. Did you add anything else or am I using the newest version?
Paul M
08-05-2005, 12:35 AM
Ok, Cool. Did you add anything else or am I using the newest version?That's the only change.
derekivey
08-24-2005, 05:05 PM
Does this work with FlashChat 4.2.1 (it just came out I think)?
Paul M
08-24-2005, 06:21 PM
Don't know, there isn't even an announcement for 4.2.1 yet - A quick look does not reveal anything that should be a problem - I'll take a proper look later tomorrow.
jsharper
08-24-2005, 06:25 PM
I haven't had a problem applying and using these mods with 4.2.1. I purchased and install 4.2.1 last Friday.
Paul M
08-24-2005, 06:32 PM
I haven't had a problem applying and using these mods with 4.2.1. I purchased and install 4.2.1 last Friday.Ah good, that will save me the trouble then. Thanks. :)
derekivey
08-24-2005, 06:59 PM
Thanks! :)
Paul M
08-26-2005, 04:06 PM
There is actually a minor change in Flashchat 4.2.1 - therefore this hack has been updated to version 1.82.
Bounce
08-26-2005, 11:03 PM
I've made all the changed but running instal give a blank page :squareeyed:
Paul M
08-26-2005, 11:56 PM
Running install ?
You should install Flashchat first and confirm it's working before making these changes. :)
derekivey
08-27-2005, 12:52 AM
Thanks Paul,
It worked fine for me. :)
Tulsa
09-03-2005, 08:08 AM
In the current installation instructions are items #5 and #8 the same thing?
Paul M
09-03-2005, 08:51 AM
In the current installation instructions are items #5 and #8 the same thing?So they are (were), duplicate step removed. Thanks for pointing it out. :)
T3MEDIA
09-03-2005, 02:00 PM
Is there a way you think (anyone) that I could make Flash chat pop up from a users profile so the two can talk or sing in instantly... and doing this for say multiple sites?
If not then just the IM pop idea... thanks
Jeff Dillon
09-13-2005, 04:37 PM
The patch proved very helpful in muzzling an obnoxious troll.
I ran into him during a session inviting users to test FlashChat and he asked to be reinstated from a ban... and he pointed out that as a banned user he could still post in the chat.
Chadi
09-19-2005, 10:35 AM
I have no idea what has happened but the right side column under "Who's in live chat" has disappeared (the $chatwho part).
I did not modify anything at all but it was there the whole time today. Very strange.
Any ideas? I checked the code, still there ($chatwho)
This is the full home page code
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
$headinclude
$dfh_announcement_headercode
</head>
<body>
$header
$navbar<div align="center">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" class="page">
<tr>
<td valign="top" align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" id="table1">
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td class="alt5" style="background: url('/designs/radio_dream/f_31.jpg');" width="100%" >
<div style=" padding-left: 10px; padding-right: 10px; padding-top: 0px; padding-bottom: 0px;">
<strong>Shoutbox: Praise Jesus Christ!</strong></div></td>
<td><img src="/designs/radio_dream/f_32.jpg" alt="" /></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="border-style:solid; border-width:1px; " bgcolor="#F5F5FF" bordercolor="#C0C0C0">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom-style: solid; border-bottom-width: 2px">
<p align="center">
<iframe frameborder="0" width="100%" src="http://cbox.co.za/box/?boxid=439&boxtag=7868&sec=main" marginheight="0" marginwidth="0" scrolling="yes" name="cboxmain" allowtransparency="yes" style="border: #ababab 0px solid" height="200"></iframe></td></tr>
<tr><td>
<p align="center">
<if condition="is_member_of($bbuserinfo,1,3,4,8,11)">
You must be registered and confirmed active account to use the shoutbox
<else />
<iframe frameborder="0" width="100%" height="50" src="http://cbox.co.za/box/?boxid=439&boxtag=7868&sec=form&wname=68&wemail=68&wmsg=175" marginheight="0" marginwidth="0" scrolling="no" name="cboxform" allowtransparency="yes" style="border: #ababab 0px solid; border-top: 0px;"></iframe>
</if>
</td></tr></table></td>
<td align="center" style="padding-left: 5px; padding-right: 5px; padding-top: 0; padding-bottom: 0; border-right-style:solid; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" bordercolor="#C0C0C0" width="300" height="250" bgcolor="#F5F5FF">
<span style="letter-spacing: 10px">
<script type="text/javascript"><!--
google_ad_client = "pub-8760716273241411";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "666666";
google_color_url = "302EAD";
google_color_text = "545454";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" id="table2">
<tr>
<td><img src="/designs/radio_dream/f_40.jpg" alt="" /></td>
<td style="background: url('/designs/radio_dream/f_41.jpg');" width="100%"></td>
<td><img src="/designs/radio_dream/f_42.jpg" alt="" /></td>
</tr>
</table>
$forumbits
<!-- /main -->
<br><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td class="alt5" style="background: url('/designs/radio_dream/f_31.jpg');" width="100%" >
<div style=" padding-left: 10px; padding-right: 10px; padding-top: 0px; padding-bottom: 0px;">
<strong>$vbphrase[whats_going_on]</strong></div></td>
<td><img src="/designs/radio_dream/f_32.jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr>
<td style="background: url('/designs/radio_dream/f_35.jpg');" width="4"></td>
<td>
<!-- what's going on box -->
<table cellpadding="6" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" bgcolor="#B9B9B7" >
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
Members currently in the Chat: $totalchatters
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="members chatting" border="0" /></td>
<td class="alt1" width="100%"><div class="smallfont">$chatters</div></td>
</tr>
</tbody>
<!-- end who's in flashchat -->
<p align="left">$todayloggedinusers
</if>
</p>
</table></td>
<td style="background: url('/designs/radio_dream/f_37.jpg');" width="5"></td>
</tr>
</tbody>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/radio_dream/f_40.jpg" alt="" /></td>
<td style="background: url('/designs/radio_dream/f_41.jpg');" width="100%"></td>
<td><img src="/designs/radio_dream/f_42.jpg" alt="" /></td>
</tr>
</table>
<br />
<!-- end what's going on box -->
<table cellpadding="4" cellspacing="2" border="0" width="100%">
<tr>
<td class="page" ><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
</strong></div></td>
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>
</tr>
</table>
<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td>
<table class="tborder" cellpadding="2" cellspacing="1" border="0" width="100%">
<tr>
<td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="alt1"> <div class="smallfont">$vbphrase[forum_contains_new_posts]</div></td>
<td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="alt1"> <div class="smallfont">$vbphrase[forum_contains_no_new_posts]</div></td>
<td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="alt1"> <div class="smallfont">$vbphrase[forum_is_closed_for_posting]</div></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / icons and login code -->
</td>
<td width="150" valign="top">
<!-- what's going on box -->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<thead><if condition="$show['guest']">
<!-- guest welcome message -->
<!-- / guest welcome message -->
</if>
<tr>
<td colspan="3">
<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0">
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td width="100%" background="/designs/radio_dream/f_31.jpg"><div class="smallfont"><font color="#FFFFFF">
Support Talk Jesus</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; " height="80" align="center">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="http://talkjesus.com/images/donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" style="border: 1px solid #C0C0C0">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHbwYJKoZIhvcNAQcEoIIHYDCCB1wCAQExggEwMIIBLAIBAD CBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD VQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW 5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2 ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQ AwDQYJKoZIhvcNAQEBBQAEgYA2eX5MgJzHRJpEytWfihxV08U8 g1pli3FFx0/LcWOmEnXf9MHwsIOemiH/FRd9ZuSVEeEpbHKyluSsmsd1U3VdY4rJXOAZxMP30Y6faGHUa+ oJMRWW8C1vnYJWvdJVSAA10zYZCxsf9JyVavCOAfpLUSzR42gG EHt+lOkp1ygNTjELMAkGBSsOAwIaBQAwgewGCSqGSIb3DQEHAT AUBggqhkiG9w0DBwQICV/bZK+opo6AgcgZ0NFbKOV0Z2l0ad6Q4gT9A52EkBeOez/hy+NYJtEuSX/zip6zNVHwwjrqB6L//GEb33UJ3V8DEAAJ1N15jz32WhEQs46VNWOtGPBs8Qh6ERPrC7x igVsL4ZETkM0nCRp42qWIJOmvFhebPej0sj5zkFoBewAyTHzw0 HMwoPSqZQC1pqZNgR+p/Bhq86W9OOV6X4s5H46qgtfUNjR27UMkAxBbjId/v4cijUJHBGLohElFnlCsjnACLirwjrJTTc2h6jcUxhfwSqCCA4 cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQsw CQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW 50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYD VQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMB oGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbTAeFw0wNDAyMTMx MDEzMTVaFw0zNTAyMTMxMDEzMTVaMIGOMQswCQYDVQQGEwJVUz ELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcx FDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2 NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJ ARYNcmVAcGF5cGFsLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQ AwgYkCgYEAwUdO3fxEzEtcnI7ZKZL412XvZPugoni7i7D7prCe 0AtaHTc97CYgm7NsAtJyxNLixmhLV8pyIEaiHXWAh8fPKW+R01 7+EmXrr9EaquPmsVvTywAAE1PMNOKqo2kl4Gxiz9zZqIajOm1f ZGWcGS0f5JQ2kBqNbvbg2/Za+GJ/qwUCAwEAAaOB7jCB6zAdBgNVHQ4EFgQUlp98u8ZvF71ZP1LXCh vsENZklGswgbsGA1UdIwSBszCBsIAUlp98u8ZvF71ZP1LXChvs ENZklGuhgZSkgZEwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEw JDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChML UGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBg NVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlw YWwuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQ ADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yR Ir/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2 JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBe lUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCV VMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV 3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2Z V9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0 BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGC SqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8 XDTA1MDgxMTAxMzUwNlowIwYJKoZIhvcNAQkEMRYEFNELpuUUS MdZ1kiortD0jqosvbA0MA0GCSqGSIb3DQEBAQUABIGALUPofFc OxZpdTP5nq2uwhjUlcBL+hzrmLMFHzRl8hzejax/JOXK9qQLzbIRkJXCswed6jUFcMTBPjNENFVK5FO2Zqx6Zz7Yo9 crWaCh/i/KFn16xT0ynZ+IHKtMbw5r9GkmIEBOYXE1Ic3Upe/EpdNw9JuB4YAGXkFJ+RLxZpUc=-----END PKCS7-----
">
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">GFA: Free Book!</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" height="80" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; padding-left: 5px">
<div class="smallfont">
<p align="center">
<a target="_blank" href="http://www.gfa.org/freebook">
<img border="0" src="http://talkjesus.com/images/gfa.gif" width="120" height="60"></a></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Sponsor a Child</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" height="80" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; padding-left: 5px">
<p align="center">
<a target="_blank" href="http://www.children.org?kc=K;VV">
<img src="http://www.children.org/logo/ci_banner1.gif" border="0" height="60" width="120" alt="Click here to help a child"></a></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Free Book of the Month</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" height="100" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; padding-left: 5px">
<p align="center">
<a target="_blank" href="https://www.billygraham.org/freeoffer.asp?f=0&">
<img src="http://talkjesus.com/images/freemonth.jpg" border="0" height="76" width="62" alt="Click here to help a child" style="border: 1px solid #C0C0C0"></a></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Who's in Live Chat?</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left:1px solid #CFCBCA; border-right:1px solid #CFCBCA; padding-top: 5px; padding-bottom: 5px">
<div class="smallfont">
<p align="center">$chatwho</td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Bible Search</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="padding:5px; border-left:1px solid #CFCBCA; border-right:1px solid #CFCBCA; " bgcolor="#FFFFFF">
<div class="smallfont">
<form target="_blank" action="http://www.biblegateway.com/quicksearch/" method="POST" style="background-color: #F5F5FF">
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" id="table3">
<tr><td style="background-color: #F5F5FF; text-align: center; padding-left:10px; padding-right:10px; padding-top:0; padding-bottom:0">
<p style="margin-bottom: 0;">
<input type="text" name="quicksearch" style="color: #C7C7C7; font-family: Arial; font-size: 10pt; border: 1px solid #C7C7C7; background-color: #FFFFFF" size="12" /><br>
<font face="Arial" color="#B9B9B7"><span style="font-size: 8pt">...</span></font><br />
<input type="submit" value="search" style="color: #C0C0C0; font-family: Arial; font-size: 10pt; font-weight: bold; border: 1px solid #C7C7C7; background-color: #FFFFFF" /><br>
<font face="Arial" color="#B9B9B7"><span style="font-size: 8pt">...</span></font></p>
<a href="http://www.biblegateway.com/" title="The Bible in multiple languages, versions, and formats">
<img src="http://talkjesus.com/images/bg.gif" width="102" height="33" alt="BibleGateway.com" border="0" style="border: 1px solid #B9B9B7" /></a></td></tr>
</table>
</div>
</form> </div></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
</tbody><if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Verse of the Day</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="padding:5px; border-left:1px solid #CFCBCA; border-right:1px solid #CFCBCA; ">
<div class="smallfont">
<p align="center">
<script language="JavaScript" src="http://www.biblegateway.com/usage/votd/votd2html.php?version=31&jscript=1&newtarget=1">
</script>
<!-- alternative for no javascript -->
<noscript>
<a href="http://www.biblegateway.com/usage/votd/votd2html.php?version=31&jscript=0&newtarget=1">View Verse of the Day</a>
</noscript>
</td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">$vbphrase[todays_birthdays]</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="padding:5px; border-left:1px solid #CFCBCA; border-right:1px solid #CFCBCA; ">
<div class="smallfont">$birthdays</div></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Today's Events</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="padding:5px; border-left:1px solid #CFCBCA; border-right:1px solid #CFCBCA; ">
<div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if><if condition="$show['upcomingevents']">
<tbody>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
</tbody></if>
<tbody>
</tbody>
<tbody>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Random Gallery</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td width="100%" colspan="3" height="80" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; ">
<table align="center" border="0" width="100%">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gallery_random')">
<img id="collapseimg_forumhome_gallery_random" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0"/></a>
<tr>$randomimagebits</tr>
</table></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Christian Resources</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; padding-left: 5px; padding-top: 5px; padding-bottom: 5px" align="left">
<div class="smallfont">
<a target="_blank" href="http://www.biblegateway.com">
<span style="text-decoration: none">Bible Gateway</span></a><br>
<a target="_blank" href="http://bibleonline.com"><span style="text-decoration: none">Bible
Online</span></a><br>
<a target="_blank" href="http://www.christiancourses.com/">
<span style="text-decoration: none">Christian Courses</span></a><br>
<a target="_blank" href="http://www.crosssearch.com">
<span style="text-decoration: none">Cross Search</span></a><br>
<a target="_blank" href="http://crosswalk.com"><span style="text-decoration: none">Crosswalk</span></a><br>
<a target="_blank" href="http://www.gotquestions.org">
<span style="text-decoration: none">Got Questions?</span></a><br>
<a target="_blank" href="http://www.livingwaters.com">
<span style="text-decoration: none">Living Waters</span></a><br>
<a target="_blank" href="http://www.lwf.org"><span style="text-decoration: none">Love Worth
Finding</span></a><br><a target="_blank" href="http://oneplace.com">
<span style="text-decoration: none">One Place</span></a><br>
<a target="_blank" href="http://praize.com"><span style="text-decoration: none">Praize</span></a><br>
<a target="_blank" href="http://studylight.org"><span style="text-decoration: none">Study
Light</span></a><br>
<a target="_blank" href="http://the-case-for-christ.com">
<span style="text-decoration: none">The Case for Christ</span></a><br>
<a target="_blank" href="http://thewayofthemaster.com">
<span style="text-decoration: none">The Way of the Master</span></a></div>
</td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Christian Marketplace</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; padding-left: 5px; padding-top: 5px; padding-bottom: 5px" align="left">
<div class="smallfont"><a target="_blank" href="http://botcw.com">
<span style="text-decoration: none">BOTCW</span></a><br>
<a target="_blank" href="http://christianityfreebies.com">
<span style="text-decoration: none">Christianity Freebies</span></a><br>
<a target="_blank" href="http://crossdaily.com"><span style="text-decoration: none">Cross Daily</span></a><br>
<a target="_blank" href="http://crossguide.com"><span style="text-decoration: none">Cross Guide</span></a></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Kids & Teens</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; padding-left: 5px; padding-top: 5px; padding-bottom: 5px" align="left">
<div class="smallfont">
<a target="_blank" href="http://kidsfortruth.com">
<span style="text-decoration: none">Kids 4
Truth</span></a><br><a target="_blank" href="http://passageway.org">
<span style="text-decoration: none">Passageway</span></a><br>
<a target="_blank" href="http://intouch.org"><span style="text-decoration: none">Teen
Connection</span></a></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<font color="#FFFFFF">Online Radio</font></td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; padding-left: 5px; padding-top: 5px; padding-bottom: 5px" align="left">
<div class="smallfont">
<a target="_blank" href="http://crosswalk.com">
<span style="text-decoration: none">Crosswalk</span></a><br>
<span style="text-decoration: none">
<a target="_blank" href="http://lwf.org">
<span style="text-decoration: none">Love Worth
Finding</span></a></span><br><span style="text-decoration: none">
<a target="_blank" href="http://oneplace.com"><span style="text-decoration: none">One Place</span></a></span></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Christian Charities</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA; padding-left: 5px; padding-top: 5px; padding-bottom: 5px" align="left">
<div class="smallfont">
<a target="_blank" href="http://billygraham.org">
<span style="text-decoration: none">Billy
Graham</span></a><br><span style="text-decoration: none">
<a target="_blank" href="http://christianchildrensfund.org">
<span style="text-decoration: none">Children's Fund</span></a></span><br>
<span style="text-decoration: none">
<a target="_blank" href="http://children.org">
<span style="text-decoration: none">Children International</span></a></span><br>
<span style="text-decoration: none">
<a target="_blank" href="http://gfa.org">
<span style="text-decoration: none">Gospel for Asia</span></a></span><br>
<a target="_blank" href="http://lifeoutreach.org"><span style="text-decoration: none">Life
Outreach</span></a><br><a target="_blank" href="http://worldvision.org">
<span style="text-decoration: none">World
Vision</span></a></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Vote for Talk Jesus!</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA" height="300">
<p align="center">
<a target="_blank" href="http://sites.truebm.org/in.php?id=268">
<img src="http://sites.truebm.org/button.php?id=268" border="0" /></a><br>
<br>
<a href="http://www.jcsm.org/top500/in.php?id=112">
<img src="http://www.jcsm.org/top500/button.php?id=112" border="0" style="border: 1px solid #C0C0C0" />
</a><br>
<br><a target="_blank" href="http://www.fishthe.net/top1000/in.php?id=528">
<img src="http://www.fishthe.net/top1000/button.php?id=528" border="0" width="75" height="36" style="border: 1px solid #C0C0C0; " /></a><p align="center">
<!-- Christian Top 1000 code starts here -->
<A HREF="http://www.christiantop1000.com/cgi-bin/1000/show.cgi?id=talkjesus" target=_blank>
<IMG SRC="http://www.christiantop1000.com/cgi-bin/1000/counter.cgi?id=talkjesus" BORDER=0></A>
<!-- Christian Top 1000 code ends here -->
<p align="center">
<a target="_blank" href="http://www.topfamilysites.com/topsites/in.php?id=1224">
<img src="http://www.topfamilysites.com/topsites/button.php?id=1224" border="0" /></a><a href="http://www.topfamilysites.com/topsites/in.php?id=1224">
</a>
<p align="center">
<a href="http://chart.crossmap.com">
<img src="http://chart.crossmap.com/count.php?website_id=290" border=0 alt="Christian Website Rankings" style="border: 1px solid #C0C0C0"></a></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Sponsors</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA">
<div class="smallfont">
<script type="text/javascript"><!--
google_ad_client = "pub-8760716273241411";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel ="";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "666666";
google_color_url = "302EAD";
google_color_text = "545454";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Christian Hosting</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-left: 1px solid #CFCBCA; border-right: 1px solid #CFCBCA" height="110">
<div class="smallfont">
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj5" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="150" height="90">
<param name="movie" value="http://talkjesus.com/images/forums.swf">
<param name="quality" value="High">
<embed src="http://talkjesus.com/images/forums.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj5" width="150" height="90" quality="High"></object>
</td>
</tr>
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td background="/designs/radio_dream/f_31.jpg" width="100%" style="padding-left: 5px">
<div class="smallfont"><font color="#FFFFFF">Christian Music</font></div>
</td>
<td><img src="/designs/radio_dream/f_301.jpg" alt="" /></td>
</tr>
<tr>
<td class="alt1" width="100%" colspan="3" style="border-bottom:1px solid #CFCBCA; border-left:1px solid #CFCBCA; border-right:1px solid #CFCBCA; " height="155">
<div class="smallfont">
<p align="center">
<a href="http://www.talkjesus.com/announcement.php?f=13">
<img border="1" src="http://talkjesus.com/images/cd.gif" width="120" height="122" style="border: 1px solid #909090"></a><br>$6.95 Free Shipping</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
$footer
offline
09-29-2005, 06:33 PM
I've made all the changed but running instal give a blank page :squareeyed:
You probably made the same mistake I did in this section of code...
Replace with ;
function getRoles($usergroupid) {
/*
## Paul M Version ##
Edit the code below to set roles for different vB usergroups
This assigns access in the following priority based on all primary and secondary group membership.
1. Assign default access (which is set to NO access below).
2. If they are a member of an allowed group, grant USER access.
3. If they are a member of a staff group, grant ADMIN access.
4. If they are a member of a banned group, grant NO access.
*/
// Set default access
$userrole = ROLE_NOBODY ;
$groups = explode(',',$usergroupid);
// Set Allowed groups
if (in_array(2,$groups)) $userrole = ROLE_USER;
if (in_array(7,$groups)) $userrole = ROLE_USER;
//Set Staff groups
if (in_array(5,$groups)) $userrole = ROLE_ADMIN;
if (in_array(6,$groups)) $userrole = ROLE_ADMIN;
//Set Banned groups
if (in_array(8,$groups)) $userrole = ROLE_NOBODY;
if (in_array(9,$groups)) $userrole = ROLE_NOBODY;
return $userrole;
}
I did not cut and paste the top line "function getRoles($usergroupid) { "... I guess becuase its above the comments I did not notice it. It will give you a blank page with no errors. Hope that helps.
oldengine
10-01-2005, 02:00 PM
On a dedicated server solution (Dual Xeon 2.2Ghz, 2 Gigs of RAM, on a 100 Mbps HE/Above backbone), Flashchat experienced flock errors beginning at around 28 users, and at 35 users, it crashed. It's not something that can be mitigated by simply performance; there are inherent flaws with the script. Just something that users might want to know before they decide to use FlashChat as their community chat solution.
I have the same server setup and I'm migrating from vBChat to Flashchat (because of vB-3.5) and wondering if I'm heading in the right direction. I have over 500 active users and 3500 signed up. I'm curious if vBChat had this 35 crash limitation. We have used it for a few months and knew it was buggy, but it worked and served a purpose. No one appears to have approached the subject of rating chat room add-ons for vBulletin.
oldengine
10-01-2005, 02:10 PM
Installation Mistake: vBulletin 3.0.8 - Version 1.82
Instructions: Step 3. in inc\classes\sendLoginInfo.php
Find ;
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NOT NULL AND ispermanent IS NULL ORDER BY created");
if($rs = $stmt->process()) {
while($rec = $rs->next()) {
$this->sendBack(new Message('adr', null, $rec['id'], $rec['name']));
if( $rec['password'] != '' ) $this->sendBack(new Message('srl', null, $rec['id'], 'true'));
$rooms[$rec['id']] = 0;
}
}
}
What I find in the unmodified code is:
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NOT NULL AND ispermanent IS NOT NULL ORDER BY ispermanent");
if($rs = $stmt->process()) {
while($rec = $rs->next()) {
$this->sendBack(new Message('adr', null, $rec['id'], $rec['name']));
if( $rec['password'] != '' ) $this->sendBack(new Message('srl', null, $rec['id'], 'true'));
$rooms[$rec['id']] = 0;
}
}
Notice that there is one less } in the unmodified code.
Replace with ;
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NOT NULL AND ispermanent IS NULL ORDER BY created");
if($rs = $stmt->process()) {
while($rec = $rs->next()) {
$this->sendBack(new Message('adr', null, $rec['id'], $rec['name']));
if( $rec['password'] != '' ) $this->sendBack(new Message('srl', null, $rec['id'], 'true'));
$rooms[$rec['id']] = 0;
}
}
// # Paul M # load permanant private rooms if Admin.
if(ChatServer::userInRole($this->userid, ROLE_ADMIN)) {
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NULL AND ispermanent IS NOT NULL ORDER BY created");
if($rs = $stmt->process()) {
while($rec = $rs->next()) {
$this->sendBack(new Message('adr', null, $rec['id'], $rec['name']));
$rooms[$rec['id']] = 0;
}
}
}
}
What happens is the flashchat hangs on the blue background screen after login. If I put this code back to original, flashchat functions. If I mess with taking out a } after the modded code, it also functions, but I'm just not completely sure what to do now except dig in further.
My final code:
//
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NOT NULL AND ispermanent IS NULL ORDER BY created");
if($rs = $stmt->process()) {
while($rec = $rs->next()) {
$this->sendBack(new Message('adr', null, $rec['id'], $rec['name']));
if( $rec['password'] != '' ) $this->sendBack(new Message('srl', null, $rec['id'], 'true'));
$rooms[$rec['id']] = 0;
}
}
// # Paul M # load permanant private rooms if Admin.
if(ChatServer::userInRole($this->userid, ROLE_ADMIN)) {
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NULL AND ispermanent IS NOT NULL ORDER BY created");
if($rs = $stmt->process()) {
while($rec = $rs->next()) {
$this->sendBack(new Message('adr', null, $rec['id'], $rec['name']));
$rooms[$rec['id']] = 0;
}
}
}
//
Notice that I took out the last } (there were four there.)
Paul M
10-01-2005, 05:21 PM
Sorry but you are mistaken, a mistake that several seem to make.
If you look carefully at the instructions you will find that the sql ends with "ORDER BY created" , while the section of code you have highlighted as found ends with "ORDER BY ispermanent".
The correct section of code is in fact the next few lines below what you have listed, and has three brackets at the end - the replacement code has four brackets. The instructions are correct. :)
oldengine
10-01-2005, 06:30 PM
Thank you for the correction. One can be overwhelmed during a 2AM installation. :o
Although the chat worked with my erroneous mod as shown, it trashed the room list in the right hand panel. Take that as a tip-off for repeat offenders.
Without removing the } as I did, the result is a blank screen showing the background.
Also, I have run into a potential open door, which I will PM to you.
Paul M
10-01-2005, 06:43 PM
I have run into a potential open door, which I will PM to you.I know about the problem you mention, you will get a login screen in some circumstances - but just to be clear - it is a Flashchat problem and I have no connection with Tufat or Darren (who writes it). Personally I bypass the problem by renaming the affected folder. :)
korny
10-05-2005, 11:48 PM
Hello Paul, where is the original code for the first install of this, not the upgrade.
Thanks
Mike Bedford
10-14-2005, 10:24 AM
How do i allow custom usergroups access to chat.
Id does not transfer the login information either, prob somthing stupid ive not done
oldengine
10-14-2005, 01:41 PM
How do i allow custom usergroups access to chat.
http://www.tufat.com/phpBB2/viewtopic.php?t=8990
In inc/common.php define your new user ROLE.
In inc/layouts copy user.php into newuser.php
Edit newuser.php with the settings for that user.
In inc\cmses\vbulletinCMS2.php define your new ROLE and its groups.
Your mileage may vary. I am a hacker, not a coder.
mustang_lex
03-10-2006, 05:49 PM
I installed Flashchat 4.5.4
And i tried to do the first step find
$this->ip = ($args['ip'] == null)? $_SERVER['REMOTE_ADDR'] : $args['ip'];
in connection.php
But its not there :(
HELP
mustang_lex
03-11-2006, 01:32 PM
Can we restrict certain usergroups from using installed modules as well such as video/audio??
Paul M
03-13-2006, 09:53 PM
I installed Flashchat 4.5.4
And i tried to do the first step find
$this->ip = ($args['ip'] == null)? $_SERVER['REMOTE_ADDR'] : $args['ip'];
in connection.php
But its not there :(
HELPWell it does say this version is no longer actively supported. :)
The instructions are way out of date, since most of the stuff has now been added into the native flashchat files by Darren. I'll give them a quick going over and edit out the bits no longer needed (which is actually most of it).
Onkel_Tom
03-14-2006, 12:46 PM
Hi,
I installed flashchat 4.5.5 in my vB 3.0.5 and all works fine.
Only the autologin feature is not working for me.
vb is in domain.tld/forum
flashchat is in domain.tld/forum/flashchat
But when going into the chat all users must login again. It is indepented of logged-in status in vb.
any idea what is wrong?
Whiterook
03-24-2006, 10:09 AM
I have the same problem Tom. Can anyone give us an answer.
I've installed the latest update, and like Onkel Tom states.... All is working fine except that all the users need to log in again, but whats worse is they can use any name they want. Also the chat is accessable via the path from outside the site, by just adding any name and password.
Thanks in advance for any help offered,
WR
icare
03-31-2006, 02:46 AM
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/.avalanche/icare/www.mysite.com/chat/chat/lib/database/mysql.lib.php3 on line 26
Database error: Link_ID == false, connect failed
MySQL error: 0 ()
Session halted.
i have uploade flash chat to chat folder in forum root.. i am getting this message...
could anybody please help me....?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.