PDA

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


Pages : [1] 2 3 4

Paul M
29 Jun 2005, 01:24
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
29 Jun 2005, 02:51
There´s a new version of Flashchat, is this compatible with the new version?
Thanks

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

Allan
29 Jun 2005, 08:10
screen please :)

Paul M
29 Jun 2005, 11:23
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
29 Jun 2005, 16:00
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
29 Jun 2005, 16:10
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
29 Jun 2005, 16:38
Doh! My apologies. I'm usually not as ditsy as that.

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

Roxie
30 Jun 2005, 20:16
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
30 Jun 2005, 23:35
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
01 Jul 2005, 01:39
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
01 Jul 2005, 02:32
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
01 Jul 2005, 02:54
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
01 Jul 2005, 03:03
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
01 Jul 2005, 03:13
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
01 Jul 2005, 03:14
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
01 Jul 2005, 04:19
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
01 Jul 2005, 05:45
*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
01 Jul 2005, 05:56
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
01 Jul 2005, 15:14
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
01 Jul 2005, 21:01
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
01 Jul 2005, 21:04
Check to make sure the CMS is in the config file.

.Tim
01 Jul 2005, 21:55
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
01 Jul 2005, 23:26
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
03 Jul 2005, 17:04
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
03 Jul 2005, 19:59
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
03 Jul 2005, 20:27
Yeah, it's all working good now.

Paul M
03 Jul 2005, 22:37
Yeah, it's all working good now.Good. :)

euca
05 Jul 2005, 06:36
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
08 Jul 2005, 21:54
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
13 Jul 2005, 12:04
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
14 Jul 2005, 00:15
I still can't figure out my issue. :(

Paul M
14 Jul 2005, 02:29
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
14 Jul 2005, 08:50
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
15 Jul 2005, 19:54
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
15 Jul 2005, 22:37
I don't really understand what you mean - please provide a link, and test user, so I can see your problem.

Loki12
17 Jul 2005, 16:31
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
21 Jul 2005, 19:07
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
22 Jul 2005, 00:55
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
22 Jul 2005, 01:10
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
22 Jul 2005, 01:24
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
22 Jul 2005, 01:39
[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
22 Jul 2005, 01:56
Paul,

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

b6gm6n
24 Jul 2005, 02:23
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
24 Jul 2005, 09:30
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
24 Jul 2005, 11:12
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
24 Jul 2005, 11:58
Where can I get FlashChat? I have been searching for it.

Loki12
24 Jul 2005, 12:09
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
24 Jul 2005, 12:14
Thank you I just bought it. XD

b6gm6n
24 Jul 2005, 12:54
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
24 Jul 2005, 15:50
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
24 Jul 2005, 18:17
Thanx, that sorted it...

-b6

b6gm6n
24 Jul 2005, 18:32
Plz ignore, problem solved.

-b6

Loki12
24 Jul 2005, 19:19
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
27 Jul 2005, 21:50
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
28 Jul 2005, 01:38
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
28 Jul 2005, 02:02
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
28 Jul 2005, 03:26
Thanks, it would only work if i moved it in ot the forum dir..

anyhow its all great, so thanks a lot!

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

ATN
28 Jul 2005, 03:53
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
28 Jul 2005, 04:38
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
29 Jul 2005, 00:16
oh so it is lol!

thanks again, working well!

:D

cmiller1014
30 Jul 2005, 04:45
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
30 Jul 2005, 06:19
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
30 Jul 2005, 16:52
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
30 Jul 2005, 17:41
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
03 Aug 2005, 08:29
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
03 Aug 2005, 12:16
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
05 Aug 2005, 08:46
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
05 Aug 2005, 09:50
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
05 Aug 2005, 14:35
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
05 Aug 2005, 15:53
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
05 Aug 2005, 16:13
so if we already had this installed what steps do we need to take to apply the bug fix?

Paul M
05 Aug 2005, 18:22
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 (http://www.vbulletin.org/forum/showpost.php?p=749533). :)

Paul M
05 Aug 2005, 18:24
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
06 Aug 2005, 01:20
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
06 Aug 2005, 19:21
Great hack, thanks alot!!!!

dreamer81
07 Aug 2005, 11:53
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
11 Aug 2005, 16:00
great with some support

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

southernlady
12 Aug 2005, 13:43
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
14 Aug 2005, 02:54
is this hack for RC2? thanks.

hotrod1
14 Aug 2005, 12:39
I can confirm that it works perfectly with RC2.

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

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

Injektilo
15 Aug 2005, 17:22
thanks EasyTarget! :)

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

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

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

JirQUEST
18 Aug 2005, 10:19
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.

http://www.vbulletin.org/forum/showpost.php?p=741033&postcount=51

JirQUEST
18 Aug 2005, 10:20
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
18 Aug 2005, 15:32
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
20 Aug 2005, 01:58
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
20 Aug 2005, 19:53
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
20 Aug 2005, 19:54
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
21 Aug 2005, 03:48
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
21 Aug 2005, 10:43
(as per flashchat forums ?) - please provide a test user login on your forum.

memdy
21 Aug 2005, 12:46
URL: http://www.1and1faq.com/forums

userid:vborg
passwd:vborg

Paul M
21 Aug 2005, 13:26
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
21 Aug 2005, 14:32
Email sent

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

http://www.vbulletin.org/forum/showthread.php?p=739785&highlight=brackets#post739785

i.e. you have a bracket missing.

memdy
21 Aug 2005, 20:09
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
23 Aug 2005, 17:25
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
23 Aug 2005, 19:08
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
26 Aug 2005, 01:17
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
26 Aug 2005, 02:23
See the previous few posts - I suspect the same problem again ;

http://www.vbulletin.org/forum/showthread.php?p=739785#post739785

Alternatively - check this ;

http://www.vbulletin.org/forum/showthread.php?p=741033#post741033

:)

remlle
26 Aug 2005, 03:02
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
26 Aug 2005, 03:52
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
26 Aug 2005, 05:46
Greetings,

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

BS5

Paul M
26 Aug 2005, 08:05
Huh ?

Paul M
26 Aug 2005, 17:08
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
26 Aug 2005, 17:10
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
26 Aug 2005, 17:48
Dude you rock thats awsome. thanks so much for the help and getting us working. I really appreciate it.

Loki12
27 Aug 2005, 20:55
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
27 Aug 2005, 21:38
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
01 Sep 2005, 12:25
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
05 Sep 2005, 10:01
Thanks !! Installed without issues!!

utw-Mephisto
05 Sep 2005, 10:22
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
05 Sep 2005, 10:42
Yes It got to be in forum root!! ;)

utw-Mephisto
05 Sep 2005, 10:49
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
05 Sep 2005, 19:39
Read the first post ;)

utw-Mephisto
05 Sep 2005, 23:43
Maybe I cannot read :D

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

thenetbox
13 Sep 2005, 18:36
thank you! very nice hack!

southernlady
14 Sep 2005, 02:56
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
14 Sep 2005, 04:03
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
14 Sep 2005, 08:25
Got your PM, you should be all fixed now. :)

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

Paul M
14 Sep 2005, 16:49
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
16 Sep 2005, 17:19
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
24 Sep 2005, 00:42
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
24 Sep 2005, 00:46
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
24 Sep 2005, 17:58
Nope works fine with 4.3.2 - have you given your usergroup permision to use the chat in the CMS file ?

hotrod1
24 Sep 2005, 23:10
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
24 Sep 2005, 23:52
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
24 Sep 2005, 23:54
Yes I did and I am in #6 although I want anyone in #7, 2, and 3 to access the chatroom as well.

hotrod1
26 Sep 2005, 20:42
Anybody?

Paul M
26 Sep 2005, 22:27
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
26 Sep 2005, 22:49
Unfortunely still no luck :(

Paul M
26 Sep 2005, 23:20
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
27 Sep 2005, 11:29
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
27 Sep 2005, 22:13
Have you entered your vb licence code into the flashchat CMS file correctly ?

theArchitect
28 Sep 2005, 00:07
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
28 Sep 2005, 00:19
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
28 Sep 2005, 00:28
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
28 Sep 2005, 01:07
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
28 Sep 2005, 01:11
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
28 Sep 2005, 01:27
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
28 Sep 2005, 01:30
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
28 Sep 2005, 01:52
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
28 Sep 2005, 02:13
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
28 Sep 2005, 02:25
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
28 Sep 2005, 03:01
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
29 Sep 2005, 14:57
Upgraded to Gold last night, and this works just fine. Liz

Annie^.^
29 Sep 2005, 20:47
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
29 Sep 2005, 21:04
Look at Step 1 in the readme and make sure that you applied that edit.

Paul M
29 Sep 2005, 22:11
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
29 Sep 2005, 23:51
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
30 Sep 2005, 01:29
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
30 Sep 2005, 01:36
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
30 Sep 2005, 01:40
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
02 Oct 2005, 22:37
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
02 Oct 2005, 22:47
Have you actually installed this integration ?

remlle
02 Oct 2005, 23:29
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
03 Oct 2005, 10:55
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
03 Oct 2005, 13:00
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
03 Oct 2005, 14:10
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
03 Oct 2005, 14:16
Thanks for that, sorry I should have looked closer at the posts, the user in question is indeed running firefox.

fortnox
03 Oct 2005, 16:20
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
03 Oct 2005, 16:51
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
03 Oct 2005, 20:01
Hi!

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

Thanks for help :up:

Xtrato
03 Oct 2005, 20:33
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
03 Oct 2005, 23:12
install, thanks, works great

pbjunkie
04 Oct 2005, 16:22
install.. Thanks Paul...

Annie^.^
04 Oct 2005, 20:17
Hi Thanks I made tiny mistake and works great.

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

mpikounis
05 Oct 2005, 07:13
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
05 Oct 2005, 08:23
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
05 Oct 2005, 21:46
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
06 Oct 2005, 22:23
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
06 Oct 2005, 22:41
What are you expecting to administrate ?

dsotmoon
07 Oct 2005, 04:01
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
07 Oct 2005, 11:36
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
07 Oct 2005, 14:29
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
07 Oct 2005, 16:33
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
07 Oct 2005, 16:48
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
08 Oct 2005, 01:15
Thanks so much for all your hard work, Paul! *clicks install*

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

Cornolio
08 Oct 2005, 12:29
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
08 Oct 2005, 18:43
Have you uploaded the CMS file ?

ryozzo
08 Oct 2005, 19:29
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---
08 Oct 2005, 19:37
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
08 Oct 2005, 20:24
The chat folder.

Paul M
08 Oct 2005, 20:34
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
08 Oct 2005, 21:47
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
08 Oct 2005, 22:18
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
08 Oct 2005, 23:42
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
08 Oct 2005, 23:57
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
09 Oct 2005, 00:18
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
09 Oct 2005, 00:21
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
09 Oct 2005, 00:25
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
09 Oct 2005, 00:32
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.

http://www.vbulletin.org/forum/showthread.php?t=80522&highlight=flashchat

Tulsa
09 Oct 2005, 00:34
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
09 Oct 2005, 00:36
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
09 Oct 2005, 00:36
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
09 Oct 2005, 01:05
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
09 Oct 2005, 01:12
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
09 Oct 2005, 05:52
Received them okay. You appear to have made the error mentioned in this post ;

http://www.vbulletin.org/forum/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
09 Oct 2005, 08:13
thanks man, nice work!


S

turblue
09 Oct 2005, 08:54
All good now, thank you Paul...!!!!

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

p3gator
09 Oct 2005, 15:29
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
09 Oct 2005, 15:47
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
09 Oct 2005, 15:49
type /? in chat for a list of the admin commands. /?all for a complete list.

Itworx4me
09 Oct 2005, 16:17
Unclear as to where to upload the chat folder. Do you upload it to the root or the forum directory???

Thanks,
Itworx4me

Paul M
09 Oct 2005, 20:16
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
09 Oct 2005, 22:43
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
09 Oct 2005, 22:51
paul, you didn't see my reply ( http://www.vbulletin.org/forum/showpost.php?p=790878&postcount=209 )

please...

Paul M
09 Oct 2005, 23:14
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
09 Oct 2005, 23:19
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
09 Oct 2005, 23:25
paul, you didn't see my reply ( http://www.vbulletin.org/forum/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 Oct 2005, 08:00
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 Oct 2005, 08:26
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 Oct 2005, 08:33
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 Oct 2005, 10:54
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 Oct 2005, 11:01
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 Oct 2005, 11:10
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 Oct 2005, 11:16
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 Oct 2005, 12:05
Testpig - All mended for you. :)

testpig
10 Oct 2005, 12:16
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 Oct 2005, 19:58
Thanks, Paul. Worked beautifully.

fringehead
11 Oct 2005, 01:31
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
11 Oct 2005, 04:01
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
11 Oct 2005, 04:26
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
11 Oct 2005, 04:28
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
11 Oct 2005, 14:38
(it works now! :))

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

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

Cornolio
11 Oct 2005, 19:30
of course, i was talkin' about flashchat, not about this hack :o

auz1111
12 Oct 2005, 04:35
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
12 Oct 2005, 09:06
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
12 Oct 2005, 09:29
HI Paul the problem is fixed...i have correctly the tableprefix of flashchat fc_ in flashchat :-)

LeeWicKeD
12 Oct 2005, 17:16
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
12 Oct 2005, 19:27
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
12 Oct 2005, 20:02
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
12 Oct 2005, 20:33
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
12 Oct 2005, 20:56
ok,got all answers, thanks a lot :)

Peace_Hope
12 Oct 2005, 21:00
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
13 Oct 2005, 01:19
Installed and everything work for me but other members do not have permisson to enter.

what's next?

Paul M
13 Oct 2005, 01:45
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
13 Oct 2005, 01:53
Is there anyway to get the flashchat to take on the look of the forum???

Thanks,
Itworx4me

RaceJunkie
13 Oct 2005, 02:02
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
13 Oct 2005, 02:16
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