PDA

View Full Version : Integration with vBulletin - Flashchat Integration for vB 3.5


Pages : [1] 2 3 4

Paul M
06-28-2005, 10:00 PM
This modification is no longer available or supported.

Flashchat integration with vBulletin 3.5

Note:
The latest versions of Flashchat include my integration as part of the standard Tufat supplied files - including the vBulletin 3.5 CMS file.


vB 3.5 integration allows ;

* Authorised members to be automatically logged in.
* All non authorised members are locked out (both are based on usergroup membership).
* If enabled, the users location is now displayed in WOL (use the plugin to avoid "Unknown Location").
* The CMS file no longer requires your vb licence code to be entered.
* Automatic login now works even if a member has not ticked "remember me".

Also ;

* Real ip detection when a proxy server is used (only if the proxy server passes on the details).
* Permanant, Private Rooms are loaded by Admins (and moderators in 4.5.0) (allows for Staff Rooms).


More notes:

* This integration is for Flashchat versions 4.7.0 upwards, support for versions prior to this has been withdrawn.
* If you use non standard usergroups you will need to edit the CMS file to give them permission to enter the chat.

The CMS file assumes that you are installing Flashchat in your forum root folder - this is the same folder as your usercp.php file and includes folder. Installation will fail if you do not do this.

Support: Please check any file edits carefully, and make sure you have uploaded any edited files to the correct location - the vast majority of problems reported are due to an error made in editing [or uploading] a file. If you are still stuck and want me to take a look then feel free to PM me your site address, an admin user, and ftp access details, without these I cannot help you. I will then look as soon as I have time.

Finally, I am not Tufat.com (http://www.tufat.com) nor anything to do with the Flashchat (http://www.tufat.com/s_flash_chat_chatroom.htm) product - if you have questions about Flashchat in general, their forums are here (http://www.tufat.com/forum/index.php).


History:

2.53 - Support for customer role added.
2.54 - GetUser caching added.
2.55 - Lastactivity update added, caching altered to match main flashchat code.
2.56 - Support for 4.5.x photo feature added with choice of avatar or profile picture.
2.57 - Changes for local language translations. Session cookie cleared on logout.
2.58 - Security fix: Integrated login code altered to cut out the use of insecure userid cookie.
2.59 - GetUser caching re-enabled, Port fix added for pre 3.5 RC3 versions of config.php
2.60 - Added the ability to login direct to a room using ../chat/flashchat.php?username=_int_&room=n
2.61 - Changes to User and Role Caching.
2.62 - Minor fix to Get User for membergroupids.
2.63 - Security (anti-hacking) code added (as supplied by Darren).
2.64 - Usergroup settings moved to top of CMS file.
2.65 - Fixed error message when accessing chat admin area.
2.66 - Default role changed.
2.67 - Minor bug fix to Avatar detection, login code changes, tidy up.

Alzeimer
06-29-2005, 01:51 AM
ThereĀ“s a new version of Flashchat, is this compatible with the new version?
Thanks

waza
06-29-2005, 06:10 AM
I think so, as there are only some small bug fixes in the 4.0.10.

Allan
06-29-2005, 07:10 AM
screen please :)

Paul M
06-29-2005, 10:23 AM
There?s a new version of Flashchat, is this compatible with the new version?
Thanks

Sorry, but I don't understand why you ask this - how much clearer can I make it ?

This makes the changes to integrate the current Flashchat (4.0.10) with vB 3.5.0 Beta
Note 2: This integration is for Flashchat versions 4.0.9 onwards

Khent
06-29-2005, 03:00 PM
Question.

My integration with FlashChat doesn't seem to be working, and I think it might be because of the variable name changes in vBulletin 3.5's config file. So I'm wondering, did you make any changes to FlashChat's vbulletinCMS2.php file besides just entering a license number in?

The problem that I'm experiencing is when I try to load FlashChat, the loading screen does appear to load successfully, but when it redirects to the actual chatroom, nothing but a background shows up.

Paul M
06-29-2005, 03:10 PM
Question.

My integration with FlashChat doesn't seem to be working, and I think it might be because of the variable name changes in vBulletin 3.5's config file. So I'm wondering, did you make any changes to FlashChat's vbulletinCMS2.php file besides just entering a license number in?Yes, the CMS2 file will fail - might I suggest you download and read/implement the instructions. :)

Khent
06-29-2005, 03:38 PM
Doh! My apologies. I'm usually not as ditsy as that.

Update:
Bravo! The integration instructions were flawless. Thanks.

Roxie
06-30-2005, 07:16 PM
Works great except I can't get it to recognize admin or mods. The groups are set correctly in the CMS file...hmmm

Paul M
06-30-2005, 10:35 PM
Works great except I can't get it to recognize admin or mods. The groups are set correctly in the CMS file...hmmmThat's because it hasn't worked. :)

Make sure you have done all the file edits, to the correct Flashchat files, and uploaded them (it's amazing how many people edit the files locally, and never transfer them .....).

One more thing - which I must add to the instructions - remember to put your vb licence number in the vbulletin35CMS file.

.Tim
07-01-2005, 12:39 AM
I tried to install this and was unable to get passed stepped two and after reading the flashchat board and site I started to wonder, if it would work if my forum is installed in the root of my site. I posted at the flashchat board but their site appears to not be working last time I checked. So, I guess I'll ask here, if my forum is at www.mysite.com and flashchat is installed in www.mysite.com/chat/ will that work?

Paul M
07-01-2005, 01:32 AM
Sorry, I don't follow why you cannot get past Step 2 - the first five steps are file edits, steps 2 & 3 edit the same file !

FYI : It doesn't really matter where the chat is installed, relative to the forum, as long as the [relative] path to the vB config file is set correctly in the CMS file. By default, it assumes that the /chat folder is in the same parent folder as /includes /admincp etc, which it appears to be in your case.

.Tim
07-01-2005, 01:54 AM
Sorry, I don't follow why you cannot get past Step 2 - the first five steps are file edits, steps 2 & 3 edit the same file !

FYI : It doesn't really matter where the chat is installed, relative to the forum, as long as the [relative] path to the vB config file is set correctly in the CMS file. By default, it assumes that the /chat folder is in the same parent folder as /includes /admincp etc, which it appears to be in your case.

Oh sorry, I meant step 2 of the actual flashchat install. Not the hack install.

Oh okay, well I guess I'll mess around with it some more. Thanks.

Paul M
07-01-2005, 02:03 AM
Oh sorry, I meant step 2 of the actual flashchat install. Not the hack install.Oh, okay. :) I have no idea what the install steps are off the top of my head. The tufat site appears to be off the air atm ....

TUFaT.com (Darren's $5 Script Archive) is temporarily down due to a serious hardware failure (the primary hard drive had bad sectors). It's being fixed now and should be up by morning of July 1, 2005 eeek !

Roxie
07-01-2005, 02:13 AM
That's because it hasn't worked. :)

Make sure you have done all the file edits, to the correct Flashchat files, and uploaded them (it's amazing how many people edit the files locally, and never transfer them .....).

One more thing - which I must add to the instructions - remember to put your vb licence number in the vbulletin35CMS file.


*sigh* I don't know then. I've done the edits 3 different times. :( (and uploaded..lol)

Roxie
07-01-2005, 02:14 AM
Oh sorry, I meant step 2 of the actual flashchat install. Not the hack install.

Oh okay, well I guess I'll mess around with it some more. Thanks.Step 2 is where you pick which CMS you are going to install. I suppose you should pick vbulletin 3.07..but I've got my own issues...sooo....lol :ermm:

.Tim
07-01-2005, 03:19 AM
Step 2 is where you pick which CMS you are going to install. I suppose you should pick vbulletin 3.07..but I've got my own issues...sooo....lol :ermm:

I do that and then it tells me there's no license number in the vbulletincms2.php file. But I put it in there and it doesn't work. :ermm:

Paul M
07-01-2005, 04:45 AM
*sigh* I don't know then. I've done the edits 3 different times. :( (and uploaded..lol)Then I can't help you further without access to your server to see what is happening.

Paul M
07-01-2005, 04:56 AM
I do that and then it tells me there's no license number in the vbulletincms2.php file. But I put it in there and it doesn't work. :ermm:There is no code to check this, perhaps you are mis-interpreting the note to remind you to add your licence number ...

vBulletin 3.0.7 NOTE: Requires input of license number in /inc/cmses/vbulletinCMS2.php

Roxie
07-01-2005, 02:14 PM
Then I can't help you further without access to your server to see what is happening.

Guess I'll just keep trying. There hasn't been a working hack that I haven't been able to install..lol. :ermm:

.Tim
07-01-2005, 08:01 PM
There is no code to check this, perhaps you are mis-interpreting the note to remind you to add your licence number ...

Here's the message I get:

FlashChat 4.0.11 Installer
Step 2: Database Configuration
The FlashChat installer needs some information about your database to finish the installation. If you do not know this information, then please contact your website host or administrator. Please note that this is probably NOT the same as your FTP login information!

You have indicated that you wish to integrate FlashChat with vBulletin 3.0.7 NOTE: Requires input of license number in /inc/cmses/vbulletinCMS2.php. Please refer to the full integration instructions located in the TUFaT.com Wiki. There are additional steps to complete after this installer is finished.

Configuration Error!

FlashChat was unable to detect your MySQL login setting from the vBulletin 3.0.7 NOTE: Requires input of license number in /inc/cmses/vbulletinCMS2.php configuration file. You must correct this before FlashChat can finish its installation. Please refer to the integration Instructions in the TUFaT.com Wiki to ensure that the FlashChat files were correctly uploaded to your server.

Possible Reasons for this error may include:

1) FlashChat was uploaded to an incorrect server location.
2) The CMS system that you are using is unsupported by FlashChat.
3) Your server has incompatible settings which may have been undetected in Step 1 of the FlashChat installer. For example, specific security restrictions which are not typical of most PHP/MySQL setups.

Roxie
07-01-2005, 08:04 PM
Check to make sure the CMS is in the config file.

.Tim
07-01-2005, 08:55 PM
Check to make sure the CMS is in the config file.

You mean this?

//your CMS system
'CMSsystem' => 'vbulletinCMS2',// defaultCMS - default CMS, blank - stateless CMS


If so it's already there.

Paul M
07-01-2005, 10:26 PM
Here's the message I get:That message is a load of bull, The licence code is only required for checking users passwords as they login.

What it actually means is it can't find your vbulletin config.php file to get the mysql details.


At the top of the CMS2 file is this ;

require_once $vbpath . '/includes/config.php';
Change it to this for a moment and see what path is displayed ;

echo $vbpath; exit;

.Tim
07-03-2005, 04:04 PM
That message is a load of bull, The licence code is only required for checking users passwords as they login.

What it actually means is it can't find your vbulletin config.php file to get the mysql details.


At the top of the CMS2 file is this ;

require_once $vbpath . '/includes/config.php';
Change it to this for a moment and see what path is displayed ;

echo $vbpath; exit;

I forgot to check this thread again and I came up with another fix, I just copied everything from the vbulletin35CMS to the vbulletinCMS2 and was able to install and now it's working just fine. Thanks for your help though. :D

Paul M
07-03-2005, 06:59 PM
I forgot to check this thread again and I came up with another fix, I just copied everything from the vbulletin35CMS to the vbulletinCMS2 and was able to install and now it's working just fine. Thanks for your help though. :DDid you do step 5 of the installation instructions. :)

.Tim
07-03-2005, 07:27 PM
Yeah, it's all working good now.

Paul M
07-03-2005, 09:37 PM
Yeah, it's all working good now.Good. :)

euca
07-05-2005, 05:36 AM
I'm using UTF8 version of vbb3.5, and if userid is non-English (i.e. Chinese),
the id cannot be displayed correctly.

After I marked out line 91 & 92:

// else
// $rec['login'] = utf8_encode($rec['login']);

The non-English user names display correctly.
For your references. ;)

Paul M
07-08-2005, 08:54 PM
I'm using UTF8 version of vbb3.5, and if userid is non-English (i.e. Chinese),
the id cannot be displayed correctly.

After I marked out line 91 & 92:

// else
// $rec['login'] = utf8_encode($rec['login']);

The non-English user names display correctly.
For your references. ;)Thank you (this is in the CMS file for anyone who needs it).


FYI: Hack updated to 2.05 (for the release of Flashchat 4.0.12).

paul41598
07-13-2005, 11:04 AM
does anyone know why that if your in flashchat, your board runs sloooow. Its like you cant be in flashchat and on your forums at the same time, otherwise your internet seems like a 56k or something. Then once you log out of flashchat, your forums fly when you maneuver around them? Weird...

Roxie
07-13-2005, 11:15 PM
I still can't figure out my issue. :(

Paul M
07-14-2005, 01:29 AM
I still can't figure out my issue. :(If you would like me to look then I will, but as I said, I will need ftp & admin access. Otherwise there is nothing I can do to help you. Feel free to PM me. I have sorted a number of people here in the past.

Paul M
07-14-2005, 07:50 AM
There were two problems - a bug in the 3.5 CMS file which only affected people using table prefixes (now fixed and uploaded) - and a typing error when you edited the flashchat config file. You should now be working. :)

tomjinx1
07-15-2005, 06:54 PM
I've got flashchat install and the Integration hack here installed. However, when I go to sign in on the admin page or in flashchat itself, I get a error saying that I do not have permissions (chatting). On the admin page it acts like it's not looking in my forum member in the database. Can someone help? I'm using 3.5 beta 4

Paul M
07-15-2005, 09:37 PM
I don't really understand what you mean - please provide a link, and test user, so I can see your problem.

Loki12
07-17-2005, 03:31 PM
I forgot to check this thread again and I came up with another fix, I just copied everything from the vbulletin35CMS to the vbulletinCMS2 and was able to install and now it's working just fine. Thanks for your help though. :D

Hahaha, good one... I had exactly the same problem as you. I did as you did, and now working perfectly. :)

Paul M
07-21-2005, 06:07 PM
Hahaha, good one... I had exactly the same problem as you. I did as you did, and now working perfectly. :)I have changed the instructions - to now add vB 3.5.0 beta to the CMS choice menu in the flashchat installation process - so hopefully you should no loger have to do this copy workaround.

MMiz
07-21-2005, 11:55 PM
I hate to post for help, but I've tried without success for a few hours and I'm still stuck.

I've made the changes as suggested, uploaded the files (even vbulletin35CMS.php with the correct license info), and I still get a blank chat page with a background when I try to load.

Any suggestions? I appreciate the help!

Paul M
07-22-2005, 12:10 AM
Sure, but first ;

1. Set debug = true in the flashchat config file.

2. What is your site - your profile links to an invision board.

MMiz
07-22-2005, 12:24 AM
Sure, but first ;

1. Set debug = true in the flashchat config file.

2. What is your site - your profile links to an invision board.

Paul,

1. Set, and my error logs are showing:

[Thu Jul 21 21:21:26 2005] [error] PHP Parse error: parse error, unexpected $ in /home/emtlife/public_html/newforum/chat/inc/classes/sendLoginInfo.php on line 156

2. Sorry about that, my profile it outdated. The site is here (http://www.emtlife.com/newforum/)

Thanks, I sincerely appreciate your help!

Paul M
07-22-2005, 12:39 AM
[Thu Jul 21 21:21:26 2005] [error] PHP Parse error: parse error, unexpected $ in /home/emtlife/public_html/newforum/chat/inc/classes/sendLoginInfo.php on line 156

You have made an editing error in sendLoginInfo.php - most likely in step 4 - be very careful with this step as there is another close bracket below the code to be replaced - In other words, there should be four close brackets above this line;

//Send user list to user
If you have accidently deleted the forth one then you will get this error as there will be an unclosed IF statement.

MMiz
07-22-2005, 12:56 AM
Paul,

That did it, thanks! Great plugin, great support, thanks again :)

b6gm6n
07-24-2005, 01:23 AM
whatever i do or try i cannot get passed step 2 of the install... i've looked on this forum and the official forums and i'm getting nowhere...

what ever i try i see my vb path as /public_html/forums/chat/inc/cmses
i can add and remove trees, nothing... do i need to edit my config? i've already added the default cmses, copied all from CMS3 to 2...why the bugger doesn't this work i wonder... i'll keep trying

EDIT : ah haaaa... i added : $vbpath = realpath(dirname(__FILE__) . '/../../../') . '/'; (in bold) and it worked

-=b6

Loki12
07-24-2005, 08:30 AM
I have one problem I can't seem to get past... I have even re-installed everything correct as per instruction, but... the rooms don't show correctly, and the users in them. When I log into the chat, it does not take me to the default roomid as specified, but just dumps me into "null"... that's the case with everybody. Hence, we can't even see a list of users in the chatroom. Can someone please help? :ermm:

Paul M
07-24-2005, 10:12 AM
I have one problem I can't seem to get past... I have even re-installed everything correct as per instruction, but... the rooms don't show correctly, and the users in them. When I log into the chat, it does not take me to the default roomid as specified, but just dumps me into "null"... that's the case with everybody. Hence, we can't even see a list of users in the chatroom. Can someone please help? :ermm:
Please PM me a copy of your sendLoginInfo.php.

Ky Kiske
07-24-2005, 10:58 AM
Where can I get FlashChat? I have been searching for it.

Loki12
07-24-2005, 11:09 AM
Where can I get FlashChat? I have been searching for it.


http://www.tufat.com/script2.htm

The software is not free - it costs $5.

Ky Kiske
07-24-2005, 11:14 AM
Thank you I just bought it. XD

b6gm6n
07-24-2005, 11:54 AM
I have one problem I can't seem to get past... I have even re-installed everything correct as per instruction, but... the rooms don't show correctly, and the users in them. When I log into the chat, it does not take me to the default roomid as specified, but just dumps me into "null"... that's the case with everybody. Hence, we can't even see a list of users in the chatroom. Can someone please help? :ermm:


hey same here... i cannot see a bot...but it talks, i enter with a [null] might be something in the config files, i'm gonna check this out

-b6

Paul M
07-24-2005, 02:50 PM
Loki12, having looked at your file, you have made an error with step 4. The wrong piece of code has been replaced. I'm not really sure why, I've triple checked the instructions and they are correct. The code between //Send room list to user and //Send user list to user should look like this ;

//Send room list to user
$rooms = array();
if(ChatServer::userInRole($this->userid, ROLE_CUSTOMER)) {
$this->roomid = $this->doCreateRoom("Support Room for {$user['login']}", true);

$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE id=?");
if(($rs = $stmt->process()) && ($rec = $rs->next($this->roomid))) {
$this->sendBack(new Message('adr', null, $rec['id'], $rec['name']));
$rooms[$rec['id']] = 0;
}
} else {
$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']));
$rooms[$rec['id']] = 0;
}
}

$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']));
$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;
}
}
}
}

//Send user list to user

Anyone with room errors should check this carefully.

b6gm6n
07-24-2005, 05:17 PM
Thanx, that sorted it...

-b6

b6gm6n
07-24-2005, 05:32 PM
Plz ignore, problem solved.

-b6

Loki12
07-24-2005, 06:19 PM
Loki12, having looked at your file, you have made an error with step 4. The wrong piece of code has been replaced. I'm not really sure why, I've triple checked the instructions and they are correct. The code between //Send room list to user and //Send user list to user should look like this ;

Anyone with room errors should check this carefully.


Paul... if you were any nearer, I'd kiss you. :nervous:

Thanks! It solved my problem! Thanks a lot... my users are very happy and grateful.

Michael2
07-27-2005, 08:50 PM
I had trouble getting past step 2 and then realized I hadn't uploaded chat into the forum directory. Thought I'd mention it just in case.

Installed and seems to work great. Thanks! :)

ATN
07-28-2005, 12:38 AM
Hi

I've just downloaded your mod and am trying to install flashchat. I cant get passed step two of the actuall flashchat install... When i select VB3.5beta and then click next it just shows a blank page, i've checked paths and all seem correct...

echo $vbpath; exit; >>> /home/virtual/site1/fst/var/www/html/chat/inc/cmses

so i set the path to full as >> /home/virtual/site1/fst/var/www/html/forum/includes/config.php

which is the correct full path to my config file...

Any ideas about this?

Cheers

Paul M
07-28-2005, 01:02 AM
Actually - looking at those paths I can see why it failed - you are not installing the chat in the forum folder, but a level up in the [root] html folder. Flashchat/vb integration assumes the former. The best bet is to edit nothing and install it in the forum folder.

If you really want it a level up then edit the CMS file (line 8) to this;

require_once $vbpath . '/../../forum/includes/config.php';

ATN
07-28-2005, 02:26 AM
Thanks, it would only work if i moved it in ot the forum dir..

anyhow its all great, so thanks a lot!

Paul M
07-28-2005, 02:46 AM
Okay. I have added a note about where this needs to be installed to the first post. :)

ATN
07-28-2005, 02:53 AM
me again, sorry... if i log in as admin it shows a little 'A' next to my name which is cool, and i have options to kick etc... but if i log in as a Mod it does not give me these option, i've looked and cat see where to correct this, as i would like mods to be able to kick... i bet its right in front of me aye??

thanks!

Paul M
07-28-2005, 03:38 AM
me again, sorry... if i log in as admin it shows a little 'A' next to my name which is cool, and i have options to kick etc... but if i log in as a Mod it does not give me these option, i've looked and cat see where to correct this, as i would like mods to be able to kick... i bet its right in front of me aye??

thanks!Yep, it's right in front of you ;)

By default, only Admins and Supermods (usergroups 6 & 5) are chat admins.

To add standard moderators (i.e. usergroup 7) you need 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;
Move & change the definition for usergroup 7.

ATN
07-28-2005, 11:16 PM
oh so it is lol!

thanks again, working well!

:D

cmiller1014
07-30-2005, 03:45 AM
Hi Paul,

I registered on your site, logged in, and clicked on chat. I was then asked to log in again to the chat.

is there anyway to just let users go straight into the chat if they are already logged in, or kick out a standard vbulelltin error if they dont have access?

Paul M
07-30-2005, 05:19 AM
Erm... all [fully] registered users on our site go straight into the chat, did you try this before you confirmed yourself via e-mail. Users awaiting confirmation are not permitted access. Flashchat cannot output vbulletin errors, you would have got a message something like "you are not permitted access". BTW - our live site is not vB 3.5.0 ;)

cmiller1014
07-30-2005, 03:52 PM
Nope im fully registered and confirmed. Still asks me to login....

Cant you simply wrap the flash chat in a vbulletin page like the vbchat hack so that the user get the no permission error? I am going to need a way to restrict access to usergroups with this.....

Paul M
07-30-2005, 04:41 PM
Nope im fully registered and confirmed. Still asks me to login....I can't really see how that's possible. It works for everyone else, and you were showing up in the chat earlier. FYI, usergroups are restricted by this integration.

EasyTarget
08-03-2005, 07:29 AM
Hi paul, I was wondering if you could help me to execute the flashchat program inside of a forum template page.

I have the template and the php page already, but I just don't know how to call the flashchat program inside of it. Any help would be appreciated.

Paul M
08-03-2005, 11:16 AM
There is an example in the flashchat root folder of how to do this - I can't tell you any more than this as I'm away from home on a training course this week (until Friday).

LunaTech
08-05-2005, 07:46 AM
I've noticed that if a regular user goes to admin.php they can change settings. How can we secure this?

It seems strange that this is allowed, but I can't find a real setting to control it. Does anyone know?

What I've done for now is change line 5 of /chat/admin/index.php to:

if(!isset($_SESSION['userid']) or $_SESSION['userid'] != 1) {

That will only give userid #1 access.

EasyTarget
08-05-2005, 08:50 AM
the ban and kick functions do not appear to work for me. I try to kick/ban someone and enter the message and nothing happens.

also, were there any changes.. says updated today.

Paul M
08-05-2005, 01:35 PM
the ban and kick functions do not appear to work for me. I try to kick/ban someone and enter the message and nothing happens.This does not touch the ban/kick functions.

also, were there any changes.. says updated today.Yes, a bug fix was carried over from the 3.0.8 version - to allow flashchat bots to enter the chat.

Janiv
08-05-2005, 02:53 PM
Hi Paul,

I registered on your site, logged in, and clicked on chat. I was then asked to log in again to the chat.

is there anyway to just let users go straight into the chat if they are already logged in, or kick out a standard vbulelltin error if they dont have access?I was able to reproduce this on my own site. It seems to happen to users that login without clicking on the remember me checkbox.

A user that does this will go to the flashchat page and have to relogin. A user that does click the remember me checkbox though, does not have to login.

Thanks for the hack though. Excellent help!

EasyTarget
08-05-2005, 03:13 PM
so if we already had this installed what steps do we need to take to apply the bug fix?

Paul M
08-05-2005, 05:22 PM
so if we already had this installed what steps do we need to take to apply the bug fix?Well unless you use flashchat bots, you don't need to worry - but the details of the change are in this post (https://vborg.vbsupport.ru/showpost.php?p=749533). :)

Paul M
08-05-2005, 05:24 PM
I was able to reproduce this on my own site. It seems to happen to users that login without clicking on the remember me checkbox.Automatic login relies on the cookie, so yes, you must have the 'remember me' box ticked.

southernlady
08-06-2005, 12:20 AM
Well, I've installed it but it's not working the way it should. It's not intergrated but as a stand alone. And I'm having to add users. I'd much rather it be intergrated.

So if you could help me out, Paul, I would appreciate it. I'll be glad to give you whatever access you need. Liz

hotrod1
08-06-2005, 06:21 PM
Great hack, thanks alot!!!!

dreamer81
08-07-2005, 10:53 AM
There is a bug with the flashchat....
I log in to vb, then I click on chat, and I am directed to the chatpage, no problems there, i chat a little, that's great. Then i close the chat, and then i try to log out from vb, but i can't!!!!

Then i wait 10 min, but i still can't log out from VB... how do I fix this?

dreamer81
08-11-2005, 03:00 PM
great with some support

dreamer81
08-12-2005, 12:40 PM
why is no one answering? i can't belive i wasted my money on this!

southernlady
08-12-2005, 12:43 PM
Paul is on vacation until the 20th, that's why he isn't answering.

Did you install it as a PRODUCT and not as a plugin? Liz

plateau
08-14-2005, 01:54 AM
is this hack for RC2? thanks.

hotrod1
08-14-2005, 11:39 AM
I can confirm that it works perfectly with RC2.

Injektilo
08-15-2005, 01:56 PM
can someone please tell me how to put a link on my navbar that will open the popup chat window?

EasyTarget
08-15-2005, 03:57 PM
<a href="http:blah.com/flashchat.php" target="_blank">FlashChat</a>
I think that will open the program in a new window.

Injektilo
08-15-2005, 04:22 PM
thanks EasyTarget! :)

JirQUEST
08-16-2005, 08:13 AM
fully registered with "remember me" ticked. still asked to log in + logged out on forum when i am in the chat.

SkyShadow
08-16-2005, 04:46 PM
On my vBulletin it does not work at all. The users can't login to the chat.

Injektilo
08-16-2005, 05:12 PM
i have a problem with flashchat... users can login ok after integration, but the cannot see eachother in the chat! any ideas why?

JirQUEST
08-18-2005, 09:19 AM
i have a problem with flashchat... users can login ok after integration, but the cannot see eachother in the chat! any ideas why?

i have no idea why, but this piece of code fixed it up for me. backtrack ur changes and do the necessary adjustments for this one.

https://vborg.vbsupport.ru/showpost.php?p=741033&postcount=51

JirQUEST
08-18-2005, 09:20 AM
On my vBulletin it does not work at all. The users can't login to the chat.

custom usergroups? happened to me as well.

SkyShadow
08-18-2005, 02:32 PM
All usergroups can't access

edit: The file was broken. Now I can confirm that custom usergroups can't login to the chat.

Please fix

BuRNZau
08-20-2005, 12:58 AM
Thanks Paul M works great! :)

Any idea how I can make the FlashChat on my navbar open in a new tab in Firefox?

I know you can right click open link in new tab but can you set it so left click automatically does it in a new tab?

Paul M
08-20-2005, 06:53 PM
All usergroups can't access

edit: The file was broken. Now I can confirm that custom usergroups can't login to the chat.

Please fixFix what exactly ? It's up to you to edit the CMS file for what usergroups you want to give access to.

Paul M
08-20-2005, 06:54 PM
why is no one answering? i can't belive i wasted my money on this!This hack is free so I have no idea what you are going on about.

memdy
08-21-2005, 02:48 AM
When I launch flashchat I am "auto" logged in and I see the status loading page, then I get a pretty blue background but no rooms or chat. I have rooms setup and specified as the default in the config.php for flashchat. Am I missing something simple? I've been pouring over the install instructions and don't see any errors in my edits. I've checked here and the tufat forums but can find anything similar.

http://www.1and1faq.com/forums - Click the flashchat link on the far right of the navbar

Paul M
08-21-2005, 09:43 AM
(as per flashchat forums ?) - please provide a test user login on your forum.

memdy
08-21-2005, 11:46 AM
URL: http://www.1and1faq.com/forums

userid:vborg
passwd:vborg

Paul M
08-21-2005, 12:26 PM
Thanks.

Sadly, even in debug mode the messages are not very helpful - please e-mail your connection.php & sendLoginInfo.php to me and I will take a look at them (the e-mail address is in the hack instructions). Also - have you edited the CMS file at all - if so, send that as well.

memdy
08-21-2005, 01:32 PM
Email sent

Paul M
08-21-2005, 03:49 PM
Email sentReceived them okay. You appear to have made the error mentioned in this post ;

https://vborg.vbsupport.ru/showthread.php?p=739785&highlight=brackets#post739785

i.e. you have a bracket missing.

memdy
08-21-2005, 07:09 PM
Paul you are correct. Problem resolved. Since I got the pretty blue background in a new window, I would have thought it was a parse error or syntax problem last.

For future reference, the problem was in /inc/classes/sendLoginInfo.php on line 90 (at least for me) I was missing a single curly brace character to close the function properly. The install went fine and the page would launch but there was absolutely no functionality other than a pretty blue background.

dreamer81
08-23-2005, 04:25 PM
This hack is free so I have no idea what you are going on about.

well flashchat isn't free is it...
that's what im going on about

Paul M
08-23-2005, 06:08 PM
well flashchat isn't free is it...
that's what im going on aboutThe price of flashchat (all $5 of it ....) is not relevant to this hack.

remlle
08-26-2005, 12:17 AM
when my users log into the site then click chat they go into a null room and can not see the rooms Ive created. the users show as if they are in a room but they are not.
any help aSAP would be appreciated.

Paul M
08-26-2005, 01:23 AM
See the previous few posts - I suspect the same problem again ;

https://vborg.vbsupport.ru/showthread.php?p=739785#post739785

Alternatively - check this ;

https://vborg.vbsupport.ru/showthread.php?p=741033#post741033

:)

remlle
08-26-2005, 02:02 AM
paul.
Ive checked this. Ive also completely reinstalled the system following the directions to a T or so I thought. is there a way I could send you my files and you can see what ive done wrong. now the chat window opens but to a black blue page. I love this chat but I dont know whats up with it now.
I can send you the files or give you access to the ftp what ever you need tohelp me. thanks so much

Paul M
08-26-2005, 02:52 AM
Sure - PM me some ftp details and I'll take a look this evening (which is about 12/14 hours from now for me).

BS5
08-26-2005, 04:46 AM
Greetings,

So, I should have a DigiShat to make this edits!!

BS5

Paul M
08-26-2005, 07:05 AM
Huh ?

Paul M
08-26-2005, 04:08 PM
paul.
Ive checked this. Ive also completely reinstalled the system following the directions to a T or so I thought. is there a way I could send you my files and you can see what ive done wrong. now the chat window opens but to a black blue page. I love this chat but I dont know whats up with it now.
I can send you the files or give you access to the ftp what ever you need tohelp me. thanks so muchYou actually had one of the problems I listed above (the missing 4th bracket). I have updated your file for you so you should be working now.

Paul M
08-26-2005, 04:10 PM
There is actually a minor change in Flashchat 4.2.1 - therefore this hack has been updated to version 2.25 - this change involved the area causing the confusion above so I have altered the instructions slightly to try and overcome the editing errors that people seem to make with step 4..

remlle
08-26-2005, 04:48 PM
Dude you rock thats awsome. thanks so much for the help and getting us working. I really appreciate it.

Loki12
08-27-2005, 07:55 PM
My webhost has upgraded to PHP 5.0.4, and now FlashChat is no longer working. :( (it just shows a blank blue screen)

Paul M
08-27-2005, 08:38 PM
I would suggest you ask on the Tufat site if it's been tested on 5.0.4 - I would have thought so myself.

ryuuchida
09-01-2005, 11:25 AM
Very nice hack, Paul. Thanks a lot! Installed with little effort.

The only glitch was step 4. I was doing a search and replace and my text editor said it couldn't find the code to replace in step 4. So I checked it manually, confirmed the code, and went on without any problem. (Probably just a difference in formatting?)

Thanks for this great hack!

Neutral Singh
09-05-2005, 09:01 AM
Thanks !! Installed without issues!!

utw-Mephisto
09-05-2005, 09:22 AM
I followed the instruction, modified the cms file and started the actuall installation, I end up with a white screen !
Does the chat has to be in the forum root ?!?

Neutral Singh
09-05-2005, 09:42 AM
Yes It got to be in forum root!! ;)

utw-Mephisto
09-05-2005, 09:49 AM
That'll be then :) Thanks ..
I was almost sure I remembered something like this from Tufat, but wasn;t sure I could not find it anymore ..

Paul M
09-05-2005, 06:39 PM
Read the first post ;)

utw-Mephisto
09-05-2005, 10:43 PM
Maybe I cannot read :D

No serious, all working and I thank you for that :D :D

thenetbox
09-13-2005, 05:36 PM
thank you! very nice hack!

southernlady
09-14-2005, 01:56 AM
I installed this successfully once before. Then I moved servers. Now I can't get it reinstalled to save my neck. I get to the point of a *pretty blue screen* after I start flashchat. I've read thru the flashchat forum and found out that it could be the /inc/classes/sendLoginInfo.php, a curly cue out of place. So I've checked and rechecked. Loaded that file 4 times, thought I was as careful as could be but I still can not get it to work.

HELP! Also, I still need help with the who's in flashcat install as well...I just put that on hold til I finished my move. Liz

Paul M
09-14-2005, 03:03 AM
If you PM me your url, an admin login, and ftp details, I can look at both for you later today or tonight.

Paul M
09-14-2005, 07:25 AM
Got your PM, you should be all fixed now. :)

southernlady
09-14-2005, 08:46 AM
It is, thank you VERY much. Can you tell me what I was doing wrong this time? Liz

Paul M
09-14-2005, 03:49 PM
In the chat - basically step 4 - the wrong bit of code had been replaced. :)

For the 'who's chatting' - nothing - you simply hadn't installed it, so I did this for you.

southernlady
09-16-2005, 04:19 PM
I had tried to the who's in chat prior to my move, Paul but not after, you are correct. I figured if I couldn't get the intergation working, the Who is in chat wasn't my first priority. So I waited on it.

So you are right, it wasn't even installed when you went in this time but if you check that thread, you will see that I had attempted it at one point.

And thank you for your help, it's working great. I don't know what I did wrong in step 4 but I will be more careful IF I ever have to move it again. Liz

hotrod1
09-23-2005, 11:42 PM
Hmm, I installed the mod again when I upgraded to 4.3.2 and now when I try to enter my chatroom it says "You do not have permission to enter the chat." Any fix for this? Thanks alot!

Paul M
09-23-2005, 11:46 PM
I haven't seen or used FC 4.3.2 yet so I don't know if any changes have been made to affect this integration. I may get chance over the weekend.

Paul M
09-24-2005, 04:58 PM
Nope works fine with 4.3.2 - have you given your usergroup permision to use the chat in the CMS file ?

hotrod1
09-24-2005, 10:10 PM
Hmm here is the code for the user permissions, is it right?

// ## Paul M Version for vB 3.5.0 ##
function getRoles($usergroupid) {
$groups = explode(',',$usergroupid);
/*
Edit the code below to set roles for different vB usergroups
Access is assigned 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_USER ;

// 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;
}

Paul M
09-24-2005, 10:52 PM
That's almost the default that goes with default vb (you appear to have changed the default access to ROLE_USER).

Do you have custom usergroups ? what is your usergroup number ?

hotrod1
09-24-2005, 10:54 PM
Yes I did and I am in #6 although I want anyone in #7, 2, and 3 to access the chatroom as well.

hotrod1
09-26-2005, 07:42 PM
Anybody?

Paul M
09-26-2005, 09:27 PM
Yes I did and I am in #6 although I want anyone in #7, 2, and 3 to access the chatroom as well.The file as it stands will allow any usergroup except 8 or 9 permission to enter - personally I think you would be better setting the default back to ROLE_NOBODY and adding a line for usergroup 3 below the group 2 & 7 lines.

hotrod1
09-26-2005, 09:49 PM
Unfortunely still no luck :(

Paul M
09-26-2005, 10:20 PM
Unfortunely still no luck :(There is nothing else I can do without access to your site. If you want me to have a look then I need ftp access and an admin account on your forum. You can PM me the details and I will take a look sometime in the next 24 hours.

theArchitect
09-27-2005, 10:29 AM
I am experiancing something strange. The only change to my board I have made in the last 5 days is to install Flash chat with your integration modification.

Since doing this I have to keep logging back in (if I am idle for a shortish period of time). But in the past the forum would keep me logged (on my machine) unless I logged out.

Do you have any thoughts as to what may be causing this? I realise that your hack should not affect this but it is the only variable which has changed.

Paul M
09-27-2005, 09:13 PM
Have you entered your vb licence code into the flashchat CMS file correctly ?

theArchitect
09-27-2005, 11:07 PM
Have you entered your vb licence code into the flashchat CMS file correctly ?

I believe so. When I go to flashchat I am automatically logged into the forum. So I assume that section is working fine.

Though, I am running RC2, so that may be causing some problems.

And (though I doubt it is relevent) when I go to the forum, although I am logged out my usernare and password get automatically entered. I told my browser to remember my details but in the past the only it remembered was my username. The password box was always blank.

Paul M
09-27-2005, 11:19 PM
I believe so. When I go to flashchat I am automatically logged into the forum. So I assume that section is working fine.Actually, no, you can happily login even if the licence code is wrong, but it will screw up your cookie, thus affecting your forum login status.

theArchitect
09-27-2005, 11:28 PM
Actually, no, you can happily login even if the license code is wrong, but it will screw up your cookie, thus affecting your forum login status.Right.

According to my vbulletin35CMS.php code it looks like this:

$GLOBALS['fc_config']['db']['vblicence'] = 1,2,3,4'; // Change to your vbulletin license number //

I have changed 1,2,3,4 to what I believed to be my license number, but I am either editing the wrong code or have imputed the wrong liscence number.

Paul M
09-28-2005, 12:07 AM
I have changed 1,2,3,4 to what I believed to be my license number, but I am either editing the wrong code or have imputed the wrong liscence number.That is the correct area to change.

Your licence number is 8 charecters and in the comments at the top of most vbulletin files ;

/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.5.0 Beta 3 - Licence Number xxxxxxxx
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2005 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

theArchitect
09-28-2005, 12:11 AM
That is the correct area to change.

Your licence number is 8 charecters and in the comments at the top of most vbulletin files ;

/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.5.0 Beta 3 - Licence Number xxxxxxxx
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2005 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

Well, that was the number I was using.

In which case I can only put it down to a forum anomaly and hope it corrects itself when I upgrade from RC2 to RC3.

Paul M
09-28-2005, 12:27 AM
Actually, I have just remembered there is a login bug in RC3 (and previous versions) causing people to be logged out after a period of time - see Bug 1258 (http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1258).

theArchitect
09-28-2005, 12:30 AM
Actually, I have just remembered there is a login bug in RC3 (and previous versions) causing people to be logged out after a period of time - see Bug 1258 (http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1258).

Thanks. I thought there may be.

Hopefully vB will go gold soon and then I can tick all of the bugs off the list. :-)

theArchitect
09-28-2005, 12:52 AM
Quick question about auto-log out. I notice that if I log into flash chat and then navigate to a new url and don't return to chat then I stay logged in.

Is there a way to get flash chat to log users out after a certain period of inactivity? Or is this something that will fix itself once the vB team fix the log-in bugs?

Paul M
09-28-2005, 01:13 AM
Do you use firefox by any chance ?

When you leave flashchat it attempts to run a popup to log you out, generally IE will run this ok, while firefox blocks the popup by default.

theArchitect
09-28-2005, 01:25 AM
Do you use firefox by any chance ?

When you leave flashchat it attempts to run a popup to log you out, generally IE will run this ok, while firefox blocks the popup by default.

Spot on. I run FireFox.

Out of interest, if I enable pop-ups for my site in Firefox will the chat auto-log out work? Or does FireFox block all pop-ups of this kind?

Paul M
09-28-2005, 02:01 AM
Spot on. I run FireFox.

Out of interest, if I enable pop-ups for my site in Firefox will the chat auto-log out work? Or does FireFox block all pop-ups of this kind?Enable pop-ups for your own site and it should be fine (assuming the option is set correctly in the flashchat config, I think it is 'on' by default).

southernlady
09-29-2005, 01:57 PM
Upgraded to Gold last night, and this works just fine. Liz

Annie^.^
09-29-2005, 07:47 PM
Hi
I am unable to select the current version when I try to install flash chat.
I can see these version but not 3.5.0

vBulletin 3.0.3 NOTE: Requires input of license number in /inc/cmses/vbulletinCMS.php
vBulletin 3.0.7 NOTE: Requires input of license number in /inc/cmses/vbulletinCMS2.php

hotrod1
09-29-2005, 08:04 PM
Look at Step 1 in the readme and make sure that you applied that edit.

Paul M
09-29-2005, 09:11 PM
Look at Step 1 in the readme and make sure that you applied that edit.Yep, you can drop the "(beta)" bit from the edit now as well. I'll update that when I next get chance.

Ncturnal
09-29-2005, 10:51 PM
This worked very well. I'm having some problems with FlashChat itself and rooms not showing up, and other active users not showing up in the userlist from within FlashChat, but Paul's mod worked like a champ.

Paul M
09-30-2005, 12:29 AM
This worked very well. I'm having some problems with FlashChat itself and rooms not showing up, and other active users not showing up in the userlist from within FlashChat, but Paul's mod worked like a champ.FYI, that can be a symptom of not doing step 4 of the hack correctly, check the change carefully.

remlle
09-30-2005, 12:36 AM
Paul Ive looked again and I cant find what Ive missed. could you look at my setup and let me know Ive sent you my connection info to your username at the the flashchat board I can send it here as well if you need me to. thanks in advance.

remlle
09-30-2005, 12:40 AM
cancel that last message. you were right I missed a bracket. the one I downloaded from flashchat was incorrect and was missing a 4th bracket at the end. I looked at the one from this thread and it was there. thanks

fortnox
10-02-2005, 09:37 PM
Hi!

I have installed flashchat today with vb3.5

Now if i want to login only i see a blue background.

Can me anybody help please?

Paul M
10-02-2005, 09:47 PM
Have you actually installed this integration ?

remlle
10-02-2005, 10:29 PM
You'll need to use the integration instructions listed at the top of this tread provided by the master Paul m. after you do that it will work I assure you. It worked for me just follow the directions to the letter.

fortnox
10-03-2005, 09:55 AM
Hi!

Yes i have make this.

First i download the file from flashchatforum + integration. No chance.

Yesterday evening i download Integrtion from hier and also i have a blue background. :ermm:

nine45
10-03-2005, 12:00 PM
Working and installed on 3.5 Gold, latest version of FlashChat.

I just have one niggling little problem, when a member leaves FlashChat they still remain in the FlashChat list and on the Who's in Chat on the forums, any ideas or settings I may need to change?

Paul M
10-03-2005, 01:10 PM
This is because they don't log out properly, but just close the browser. It mainly affects non IE users (see posts 150 & 151).

nine45
10-03-2005, 01:16 PM
Thanks for that, sorry I should have looked closer at the posts, the user in question is indeed running firefox.

fortnox
10-03-2005, 03:20 PM
Working and installed on 3.5 Gold, latest version of FlashChat.

I just have one niggling little problem, when a member leaves FlashChat they still remain in the FlashChat list and on the Who's in Chat on the forums, any ideas or settings I may need to change?

Hi Nine 45!?

Can you tell me please wich Version of Flashchat and vb3.5 integration you have taken?

Thanks,

nine45
10-03-2005, 03:51 PM
Hi Nine 45!?

Can you tell me please wich Version of Flashchat and vb3.5 integration you have taken?

Thanks,

Sure, I am running VB 3.5 Gold and Flashchat 4.3.3

fortnox
10-03-2005, 07:01 PM
Hi!

I don`t know, whre i have made the mistake, but now it runs with fresh install.

Thanks for help :up:

Xtrato
10-03-2005, 07:33 PM
Ok when i login to the flash chat (im admin) I get a message saying that i have no permission to enter the room. I was wondering if someone knows why. It was working fine for the 2 days i have had it installed....

dsotmoon
10-03-2005, 10:12 PM
install, thanks, works great

pbjunkie
10-04-2005, 03:22 PM
install.. Thanks Paul...

Annie^.^
10-04-2005, 07:17 PM
Hi Thanks I made tiny mistake and works great.

Is there a way to invite users to chat from who is online list?

mpikounis
10-05-2005, 06:13 AM
Installed! May I suggest you include the server port in the config file so that it works for those of us who don't use the standard mysql port?

Paul M
10-05-2005, 07:23 AM
Hmm, yes, it's not actually the config file that needs this - when integrated it uses vb's config file. However, Jelsoft split the port out into a seperate variable in the final version, so the CMS file needs to take this into account.

I think I'll remove the cookie setting feature in the CMS file as well - this is just troublesome and doesn't really seem to achieve much. I'll update the CMS file and post the new version later today.

tcs
10-05-2005, 08:46 PM
I tried to install this and was unable to get passed stepped two and after reading the flashchat board and site I started to wonder, if it would work if my forum is installed in the root of my site. I posted at the flashchat board but their site appears to not be working last time I checked. So, I guess I'll ask here, if my forum is at www.mysite.com and flashchat is installed in www.mysite.com/chat/ will that work?

Hi, I am Chuck at tufat. I will look at step 2 but you should have no problem installing it this way you described.

belindaj
10-06-2005, 09:23 PM
I know I'm going to feel silly when I find out how obvious this answer is....

I have installed flashchat correctly, and it works fine.

I did the integration steps (flawlessly I think - brilliant instructions!)

Yes, I put the vB license in the CMS file

I cannot for the life of me figure out how to actually pull up the administration of it within the vB admincp.

I don't see an xml file to import as a product or a plugin....

If I go to ../chat/admin.php - it tells me to do administration within the integrated CMS.... which I assume would be the admin CP of vBulletin, right?

What perfectly obvious step am I missing?????

Paul M
10-06-2005, 09:41 PM
What are you expecting to administrate ?

dsotmoon
10-07-2005, 03:01 AM
What are you expecting to administrate ?

hes talking about when you sign into the admin section of the flashchat, and say click on users, you get this message....

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.

ryozzo
10-07-2005, 10:36 AM
have I installed your changes Paul but at the end when I load the chat I have this result, can you help me?

http://img387.imageshack.us/img387/6400/chat8iu.jpg

belindaj
10-07-2005, 01:29 PM
Anything and everything connected to the chat. New rooms, order of rooms, moderators, etc.

As dsotmoon said - When you sign into the admin section of the flashchat, and say click on users, you get this message....

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.

I installed the vbChat module last year - and it had a section IN the vb admincp where chat configuration was done.

I guess I just wondered if I should expect to see that with flashchat as well - due to "integration" with vb 3.5 - or is "integration" literally the fact that it uses the same user database? (Which is AWESOME - I'm just figuring out if I missed a step somewhere to FURTHER integrgate flashchat into the actual admincp of vbulletin.

Am I just assuming too much LOL? (I already know vbchat and flashchat are apples and oranges COMPLETELY - wow flashchat is amazing).

Thanks -

Paul M
10-07-2005, 03:33 PM
Integration means that it uses the vb database for users (part of which determines their moderator status) and thus allows members to use the chat without the need to login seperately. It does not touch the flashchat admin area at all.

(btw, please click install as you appear to have installed it).

belindaj
10-07-2005, 03:48 PM
I definately will click install Paul - it's awesome - and thanks for the quick response.

Yes I opened it up to the users this morning and they are bonkers over it :)

Thanks a million -

(I always wait until I have a hack installed AND working before I come back and click install LOL)

Rebecca217
10-08-2005, 12:15 AM
Thanks so much for all your hard work, Paul! *clicks install*

TripleOx
10-08-2005, 08:59 AM
Great job, Paul. Installed like a dream! :) Now for the presence system...

Cornolio
10-08-2005, 11:29 AM
got a problem:
choose: "vBulletin 3.5.0 - NOTE: Requires input of your license number in the CMS file"
click on "Continue >>"
opens a blank page... (url: /install.php?step=2&forcms=vbulletin35CMS )

yes, i've putted the license number
yes, it's in the forum root

Paul M
10-08-2005, 05:43 PM
Have you uploaded the CMS file ?

ryozzo
10-08-2005, 06:29 PM
have I installed your changes Paul but at the end when I load the chat I have this result, can you help me?

http://img387.imageshack.us/img387/6400/chat8iu.jpg

UP.. :o

---MAD---
10-08-2005, 06:37 PM
can i check.
Do i put the flashchat FOLDER in the forum root or do i put the flashchat FILES in the forum root?

Thanks..

Paul M
10-08-2005, 07:24 PM
The chat folder.

Paul M
10-08-2005, 07:34 PM
have I installed your changes Paul but at the end when I load the chat I have this result, can you help me?

http://img387.imageshack.us/img387/6400/chat8iu.jpgI can't help you from an image, I need a link to see it properly, and almost certainly ftp access to investigate what's wrong.

funinthesun
10-08-2005, 08:47 PM
I'm not sure what I'm doing wrong but I followed the instructions very carefully. I can log into chat fine and everything seems to be working but I can't find it intergrated on my forum anywhere? I'm very new to all of this so I'm sorry if it sounds like a lame question.

Tulsa
10-08-2005, 09:18 PM
In the hack for 3.07 there was an entry in the admincp that allowed you to control the rooms and the bots.

This appears to be what people are missing.

Tulsa
10-08-2005, 10:42 PM
Also while this mod is working just fine for logging in and appears to apply the proper access value to each user when you click on their name, on the right and go to their profile it brings up the login screen like you're not logged into the board.

I do have my license set properly and I've done this logged in as an admin and a reg user.

TimBrown
10-08-2005, 10:57 PM
In the hack for 3.07 there was an entry in the admincp that allowed you to control the rooms and the bots.

This appears to be what people are missing.

That would be really helpful for 3.5!

I'm completely new to FlashChat but I was able to install it and everything without a problem..

I have one question however, how exactly do I replace the admin and moderator user groups and all the usergroups in the CMS file?

:squareeyed:

Paul M
10-08-2005, 11:18 PM
In the hack for 3.07 there was an entry in the admincp that allowed you to control the rooms and the bots.

This appears to be what people are missing.Erm, no, there wasn't.

There was another hack somewhere (not by me) that added a link to flashchats admin into the vb ACP.

Paul M
10-08-2005, 11:21 PM
Also while this mod is working just fine for logging in and appears to apply the proper access value to each user when you click on their name, on the right and go to their profile it brings up the login screen like you're not logged into the board.

I do have my license set properly and I've done this logged in as an admin and a reg user.I would say ;

1. You're not using cookies (i.e the remember me option)

2. You have removed the permission for guests to view profiles on your forum.

(if you are using cookies, you don't need to login to flashchat, it's automatic).

Paul M
10-08-2005, 11:25 PM
how exactly do I replace the admin and moderator user groups and all the usergroups in the CMS file?Sorry, I don't follow, please explain.

Tulsa
10-08-2005, 11:32 PM
Erm, no, there wasn't.

There was another hack somewhere (not by me) that added a link to flashchats admin into the vb ACP.


Right it was not by you but gave you credit.

https://vborg.vbsupport.ru/showthread.php?t=80522&highlight=flashchat

Tulsa
10-08-2005, 11:34 PM
I would say ;

1. You're not using cookies (i.e the remember me option)

2. You have removed the permission for guests to view profiles on your forum.

(if you are using cookies, you don't need to login to flashchat, it's automatic).


I am using the remember me option and I don't have to login to chat. I have removed permission for guests to see users profiles but if we are logged into the message base at the same time we are in chat, shouldn't it still function based on our login status on the message base?

ozmazdaclub
10-08-2005, 11:36 PM
Hi,

I have flashchat installed and the intergration oinstalled also but users are reporting that every so often flash chat freezes and they all have to exit. anyone have any idea why this is possibly happening..

Thanks

turblue
10-08-2005, 11:36 PM
Hi there...

I am testing the intergration on my home server.

1: I have modified the files as described, and checked.
2: All files have been uploaded, and checked.

I still get a blank screen after I select vb3.5 intergration. Obviously I have done something wrong. I have two questions.

When altering the section for permissions on the vbulletin35CMS.php file, can you please explain what exactly goes here.?? Is this correct.?? Is the syntax correct.??

// Set Allowed groups
if (in_array( 2 ,$groups)) $userrole = Registered Users;
if (in_array( 7 ,$groups)) $userrole = Paid Member;

//Set Staff groups
if (in_array( 5 ,$groups)) $userrole = Administrators;
if (in_array( 6 ,$groups)) $userrole = ROLE_ADMIN;

//Set Banned groups
if (in_array( 8 ,$groups)) $userrole = Banned Users;
if (in_array( 9 ,$groups)) $userrole = ROLE_NOBODY;

Also, can you possibly just give some quick reasons as to why I return a blank screen after selecting the vb3.5 intergration option.??

Many thanks..!!!
BTW, I installed the chat without intergration, and it works just great.!! Now I need to intergrate.

Paul M
10-09-2005, 12:05 AM
I am using the remember me option and I don't have to login to chat. I have removed permission for guests to see users profiles but if we are logged into the message base at the same time we are in chat, shouldn't it still function based on our login status on the message base?No idea then, as long as you logged into vB first, using 'remember me' then it works fine for me in both IE & Firefox.

Paul M
10-09-2005, 12:12 AM
When altering the section for permissions on the vbulletin35CMS.php file, can you please explain what exactly goes here.?? Is this correct.?? Is the syntax correct.?? Basically you have broken it by making those changes. They should be left (put back) as ROLE_USER, ROLE_ADMIN or ROLE_NOBODY. They are flashchat roles - and those lines basically map vb usergroup ids to flashchat roles. i.e usergroups 2 & 7 get allocated ROLE_USER, groups 5 & 6 get ROLE_ADMIN etc.


Also, can you possibly just give some quick reasons as to why I return a blank screen after selecting the vb3.5 intergration optionYep, see above, it's probably because you have broken the CMS file.

testpig
10-09-2005, 04:52 AM
Received them okay. You appear to have made the error mentioned in this post ;

https://vborg.vbsupport.ru/showthread.php?p=739785&highlight=brackets#post739785

i.e. you have a bracket missing.

Hi Paul....firstly just wanted to say thanks for the great hack! Very much appreciated.

I downloaded it from the FlashChat site and thought I should let you know that version still only has 3 brackets in the integration text file.....so probably causing some unnecessary grief. I've resolved it thanks to this thread.

One small question which is possibly related to a post above. Every time I enter the chat from the VB3.5 forum I need to login to chat again. There is no prompt to 'remember me" at the chat login so possibly I have a problem with a cookie path, or a setting somewhere". Any idea where I should look?

Thanks again,
Steve.
www.hemi6pack.com (http://www.hemi6pack.com/)

fringehead
10-09-2005, 07:13 AM
thanks man, nice work!

S

turblue
10-09-2005, 07:54 AM
All good now, thank you Paul...!!!!

Cornolio
10-09-2005, 09:03 AM
Have you uploaded the CMS file ?
sure

p3gator
10-09-2005, 02:29 PM
First off, Paul, thanks for taking the time to make this modification, top notch, and appreciate the time you took to post and answer questions, very helpful for all of us!

Regarding the NAVBAR.... and this post:

<a href="http:blah.com/flashchat.php" target="_blank">FlashChat</a>
I think that will open the program in a new window.

I personally find the chat used more when ppl can see at the top of the page how many ppl are chatting, so I did this for now:

<td class="vbmenu_control"><a href="chat/flashchat.php" target="_blank">Chat ($totalchatters)</a></td>

Anyways, probably a better way to do that, but at 0030 here in Japan, my ability to think beyond something that simple is nill...

edit... sigh, but that $totalchatters call only works on the forumhome page... oh well, was worth a shot anyways.

Once again, thanks for the mod Paul, good stuff.

John

TimBrown
10-09-2005, 02:47 PM
Nevermind what I said earlier Paul, i figured it out!

I have one question. This isn't really related to this hack but where can I find the Flashchat commands that my moderators/admins can use to ban people, etc or if that's not how you ban people, how do you do it?

Tulsa
10-09-2005, 02:49 PM
type /? in chat for a list of the admin commands. /?all for a complete list.

Itworx4me
10-09-2005, 03:17 PM
Unclear as to where to upload the chat folder. Do you upload it to the root or the forum directory???

Thanks,
Itworx4me

Paul M
10-09-2005, 07:16 PM
I downloaded it from the FlashChat site and thought I should let you know that version still only has 3 brackets in the integration text file.....so probably causing some unnecessary grief. I've resolved it thanks to this thread.Not really sure what you are saying here, but the instructions are correct.


One small question which is possibly related to a post above. Every time I enter the chat from the VB3.5 forum I need to login to chat again. There is no prompt to 'remember me" at the chat login so possibly I have a problem with a cookie path, or a setting somewhere". Any idea where I should look?You need to be logged into the forum using the remember me option, flashchat relies on your cookie for auto login.

TruckMuddr
10-09-2005, 09:43 PM
I'm havin some problems here.

I'm getting the no permission page when I try to get into the chat or the admin page, But if I remove the code from step 3 I can get into chat. so I know I have permission issues, just not sure whats wrong.

This is what I have in my vbulletin35CMS.php file:

// Set Allowed groups
if (in_array( 2 ,$groups)) $userrole = ROLE_USER;

//Set Staff groups
if (in_array( 5 ,$groups)) $userrole = ROLE_ADMIN;
if (in_array( 6 ,$groups)) $userrole = ROLE_ADMIN;
if (in_array( 7 ,$groups)) $userrole = ROLE_ADMIN;

//Set Banned groups
if (in_array( 8 ,$groups)) $userrole = ROLE_NOBODY;
if (in_array( 9 ,$groups)) $userrole = ROLE_NOBODY;

I'm the #1 user and Super Admin, so I should have permission. Anyone have any clue?!?

Cornolio
10-09-2005, 09:51 PM
paul, you didn't see my reply ( https://vborg.vbsupport.ru/showpost.php?p=790878&postcount=209 )

please...

Paul M
10-09-2005, 10:14 PM
Unclear as to where to upload the chat folder. Do you upload it to the root or the forum directory???From post one ;
The supplied CMS file assumes that you are installing Flashchat in your forum root folder - this is the same folder as your usercp.php file and includes folder.

Paul M
10-09-2005, 10:19 PM
I'm havin some problems here.

I'm getting the no permission page when I try to get into the chat or the admin page, But if I remove the code from step 3 I can get into chat. so I know I have permission issues, just not sure whats wrong.

I'm the #1 user and Super Admin, so I should have permission. Anyone have any clue?!?What usergroups are you a member of (primary & secondary).

Paul M
10-09-2005, 10:25 PM
paul, you didn't see my reply ( https://vborg.vbsupport.ru/showpost.php?p=790878&postcount=209 )

please...Yes I did, I just didn't have time to start paging backwards to see what it related to.

The installation process is not something of mine, the only thing I can think of is if you have broken the CMS file somehow. The answer is the same as everyone else really (I'm going to add this to the main post I think) - if you want me to take a look then feel free to PM me your site address, an admin user and ftp access details, otherwise I cannot help you. The nature of 99% of problems means seeing the files etc is the only way to fix them.

testpig
10-10-2005, 07:00 AM
You need to be logged into the forum using the remember me option, flashchat relies on your cookie for auto login.

Ok....to clarify....I have linked a button on the navbar of my forum. I have remember me set in the VB 3.5 forum......I click the button and chat launches in a new window......and I get the login box (previously the user just entered straight into chat). Once I re-enter my username and password I proceed to chat with no probs.

So its recognising the cookie but doesnt carry it from the forum to the chat?

I have the forum cookie set to remember me and dont have to log into the forum when I get there.

Cheers,

testpig
10-10-2005, 07:26 AM
Not really sure what you are saying here, but the instructions are correct.


This is the code cut straight from flashchat-vb-integration.txt (downloaded yesterday) It contradicts your earlier post in regards to having four brackets.

Just trying to provide feedback so apologies if its taken the wrong way.


Step 4.
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']));
$rooms[$rec['id']] = 0;
}
}
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']));
$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;
}
}
}

Cornolio
10-10-2005, 07:33 AM
Yes I did, I just didn't have time to start paging backwards to see what it related to.

The installation process is not something of mine, the only thing I can think of is if you have broken the CMS file somehow. The answer is the same as everyone else really (I'm going to add this to the main post I think) - if you want me to take a look then feel free to PM me your site address, an admin user and ftp access details, otherwise I cannot help you. The nature of 99% of problems means seeing the files etc is the only way to fix them.
Ok, i'll delete the chat folder and retry to install. if it won't work i'll PM you, thanks :)

Paul M
10-10-2005, 09:54 AM
This is the code cut straight from flashchat-vb-integration.txt (downloaded yesterday) It contradicts your earlier post in regards to having four brackets.I think you have mis-read what I actually said ;

...... be very careful with this step as there is another close bracket below the code to be replaced - In other words, there should be four close brackets .....Once you have edited the file there will be four brackets, like this ;


// # 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;
}
}
}
}

//Send user list to user

Just trying to provide feedback so apologies if its taken the wrong wayIt's not taken the wrong way, but nevertheless, IMO no action is needed.

testpig
10-10-2005, 10:01 AM
No probs Paul.

I cut in the entire section from the previous post and the usernames and rooms are working fine. The only issue I'm battling with is the login / cookie problem.

It also has an interesting side effect in that the users in chat plugin is displaying the wrong usernames. I read a little in the applicable thread and they are interconnected but dont understand why users arent logging straight into chat when they have the "remember me" option ticked in the forum. Any thoughts?

Cheers,
Steve.

Paul M
10-10-2005, 10:10 AM
It also has an interesting side effect in that the users in chat plugin is displaying the wrong usernames. I read a little in the applicable thread and they are interconnected but dont understand why users arent logging straight into chat when they have the "remember me" option ticked in the forum. Any thoughts?

Cheers,
Steve.Not really, it's working fine for me so I would need access to your site so see what is happening.

testpig
10-10-2005, 10:16 AM
Not really, it's working fine for me so I would need access to your site so see what is happening.

Would you like a link, a trial login or access?

Paul M
10-10-2005, 11:05 AM
Testpig - All mended for you. :)

testpig
10-10-2005, 11:16 AM
Testpig - All mended for you. :)

Thankyou lots Paul.

I'd like to list the problem here for other users, but basically I just had a bad day and screwed up a few area's. I'm quite amazed anyone could log in at all!

I guess the key is to go back over the modified area's and recheck!

Thanks again......

silurius
10-10-2005, 06:58 PM
Thanks, Paul. Worked beautifully.

fringehead
10-11-2005, 12:31 AM
Can someone give me a good navbar link for flashchat? When I log into my board, then click put flashchat in my browser it logs me in correctly. When I add a link to the navbar it makes me login with username and password... Can someone give me a good link to log in properly?

Thanks,

S

rza733
10-11-2005, 03:01 AM
Everything seems to work great i created a moderator name logged in and the chat works fine.. The Problem I have is when my users click on the link it gives them a login screen and when they try to login its sayin incorrect user name and password... Now im under the impression that if your logged into the forum that the user will log right into chat... Any ideas where i screwed up.. Ive checked my file edits and everything seems to be fine..

thanks

Paul M
10-11-2005, 03:26 AM
If the users have not ticked 'remember me' when they logged into the forum then they will get asked to login as flashchat needs to read the cookie for auto login (Why the hell did they change the default to not ticked in 3.5 - very bloody annoying).

If they get the login screen and then the incorrect message then you could have entered the wrong licence code in the CMS file (I have seen several with the customer number, not the licence code).

Or, of course, you could have screwed up ........

Paul M
10-11-2005, 03:28 AM
Can someone give me a good navbar link for flashchat? When I log into my board, then click put flashchat in my browser it logs me in correctly. When I add a link to the navbar it makes me login with username and password... Can someone give me a good link to log in properly?

Thanks,

SAre you opening a new window with your navbar link ? - if so see part one of the post above.

Cornolio
10-11-2005, 01:38 PM
(it works now! :))

any way to change smilies? / which file contains images?

Paul M
10-11-2005, 05:11 PM
any way to change smilies? / which file contains images?Erm ... there are no smilies or images in this hack ??

Cornolio
10-11-2005, 06:30 PM
of course, i was talkin' about flashchat, not about this hack :o

auz1111
10-12-2005, 03:35 AM
I am able to login fine without getting the login box, but for some of you who keep getting the box...


Is there anyway to add some code in the navbar template that will send the username and password to flashchat similar to:


<td class="vbmenu_control"><a href="http://myforum.com/chat/flashchat.php?username=$chat['username']&password=$chat['password']&lang=en">Chat</a></td>

would you have to create a query to get the password and username in the navbar template, and is this even possible?

Paul M
10-12-2005, 08:06 AM
No it's not possible, nor necessary.

Almost certainly those who are having to login are not using cookies, they need to tick "remember me" when they login to the forum (due to a bloody annoying change to the default behavior of vb 3.5).

ryozzo
10-12-2005, 08:29 AM
HI Paul the problem is fixed...i have correctly the tableprefix of flashchat fc_ in flashchat :-)

LeeWicKeD
10-12-2005, 04:16 PM
Hi there,

i have some question about FlashChat, before i decide to buy it or not:

1. is the chat very slow for dial-up / modem users?
2. can i ban users/usergroups?
3. is there an admin panel or something like this for the chat?
4. can i use the smilies from the forum or do i have to add the smilies new for the chat?
5. other important things i have to know?

thx

Lee

heynurse
10-12-2005, 06:27 PM
answers in bold text below in quote, hope that helps

Hi there,

i have some question about FlashChat, before i decide to buy it or not:

1. is the chat very slow for dial-up / modem users?
NO
2. can i ban users/usergroups?
YES
3. is there an admin panel or something like this for the chat?
YES
4. can i use the smilies from the forum or do i have to add the smilies new for the chat?
It comes with it's own smilies
5. other important things i have to know?
It's only $5 ;)

thx

Lee

LeeWicKeD
10-12-2005, 07:02 PM
great,thx, helped me a lot :)

is it possible to add my own smilies, or can i change the codes for the smilies? i hope so...

heynurse
10-12-2005, 07:33 PM
flashchat questions and info can be found on it's website :
http://www.tufat.com/s_flash_chat_chatroom.htm and it's discussion forums: http://www.tufat.com/phpBB2/index.php?c=4

LeeWicKeD
10-12-2005, 07:56 PM
ok,got all answers, thanks a lot :)

Peace_Hope
10-12-2005, 08:00 PM
If you have to login all the time part of it could be that you are when leaving clicking the close button for flash chat, logging you out of the chat. Where you should just close the browser, then you will not have to login each time, and your settings will be automatically saved.

Hope that helps some people

RaceJunkie
10-13-2005, 12:19 AM
Installed and everything work for me but other members do not have permisson to enter.

what's next?

Paul M
10-13-2005, 12:45 AM
what's next?This ?

Remember to edit the CMS file to add your vBulletin Licence number - also - if you use non standard usergroups you will almost certainly need to edit the CMS file to give them permission to enter the chat

Itworx4me
10-13-2005, 12:53 AM
Is there anyway to get the flashchat to take on the look of the forum???

Thanks,
Itworx4me

RaceJunkie
10-13-2005, 01:02 AM
This ?

Ok I done the License in the install. But what file do i edit to allow my custom usergroups. That is the problem everyone but them can enter..

Thanks Paul

Paul M
10-13-2005, 01:16 AM
Ok I done the License in the install. But what file do i edit to allow my custom usergroups. That is the problem everyone but them can enter..

The CMS file - vbulletin35CMS.php