vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Flashchat Integration for vB 3.5 (https://vborg.vbsupport.ru/showthread.php?t=91278)

Paul M 11-19-2005 04:28 PM

Quote:

Originally Posted by dc3dreamer
All is well here, except the "Live Support" mode of FlashChat is not working. I have done everyting right per the FlashChat instructions. I think the CMS file is missing something about "customer roles" whatever that is. ... ??? I am using your VBulletin35CMS.php file. But I see others are having problems with the one that comes with FlashChat. So maybe you're not the right person to ask?

I supplied all the vbulletin35CMS files, including the one that comes with Flashchat ;)

There is no 'Live Support' support in any vbulletin CMS file.

Quote:

Originally Posted by dc3dreamer
A suggestion for others: Edit config.php to cause a logout from FlashChat to return you directly to your VB forum home page instead of displaying the login box (comments removed):

//---
//Logout behavior
'logout' => array(
'close' => true,
'redirect' => true,
'url' => 'http://xxx.yyy.com/forum/index.php',
'window' => '_self',
),

You can shorten the url to just /forum/index.php , close should be false. :)

dc3dreamer 11-20-2005 01:58 AM

Quote:

There is no 'Live Support' support in any vbulletin CMS file.
OK, well I might tackle this. The idea is to cross-reference a VB usergroup with the "customer" identification in FlashChat. In FlashChat there is an option for "Live Support" (not in VB). It operates by creating a separate private "room" called Support for each logged in user in FlashChat that is identified with this "customer" group in FlashChat. The moderators get to see all of the private support rooms as separate rooms in thsir view. Thus, a mod or admin can give private live support to multiple users without others jumping in. I wanted to offer this only to my VB users who are in my "Customer" usergroup. I'll poke around in the FlashChat stuff, as well as your xml file, and see if I can weave it together.

Quote:

You can shorten the url to just /forum/index.php , close should be false.
Yeah, but I put a full URL there in the example for generality. I didn't know what close was, so I tried it as true and it worked so end of research :squareeyed: I'll fix it in my file. Thanks for the neads-up.

Thanks for making FLashChat-VB integration so easy!

Paul M 11-20-2005 02:50 AM

Quote:

Originally Posted by dc3dreamer
OK, well I might tackle this. The idea is to cross-reference a VB usergroup with the "customer" identification in FlashChat. In FlashChat there is an option for "Live Support" (not in VB). It operates by creating a separate private "room" called Support for each logged in user in FlashChat that is identified with this "customer" group in FlashChat. The moderators get to see all of the private support rooms as separate rooms in thsir view. Thus, a mod or admin can give private live support to multiple users without others jumping in. I wanted to offer this only to my VB users who are in my "Customer" usergroup. I'll poke around in the FlashChat stuff, as well as your xml file, and see if I can weave it together.

Well the first bit is easy, only two lines are needed to add the definitions for the customer role. When I did this, the member (customer) did indeed get their own private room that mods/admin can see, but the conversations seemed to default to Private Messages rather than in the actual room - is this how it is supposed to work ?

caliman 11-20-2005 05:04 AM

I checked two boards with this mod and it does not appear to work with Firefox 1.07 browser. Any plans to fix this? I'd like to install this mod.

Paul M 11-20-2005 11:00 AM

Quote:

Originally Posted by caliman
I checked two boards with this mod and it does not appear to work with Firefox 1.07 browser. Any plans to fix this? I'd like to install this mod.

Nope, I don't use Firefox 1.07.

It works in the version I have (1.5) and IE6, and anything else people seem to use, maybe firefox 1.07 has a bug.

caliman 11-20-2005 02:57 PM

I just installed 1.5 Firefox and it still doesn't work on a board with flashchat 4.3.3. Do you have a URL where it works?

Firefox is more secure than IE and much faster.. it would be hard for me to go back to IE for this mod.

dc3dreamer 11-20-2005 03:03 PM

Quote:

Well the first bit is easy, only two lines are needed to add the definitions for the customer role. When I did this, the member (customer) did indeed get their own private room that mods/admin can see, but the conversations seemed to default to Private Messages rather than in the actual room - is this how it is supposed to work ?
Not to my knowledge, but then I haven't seen it work in real life yet :disappointed: I'm just starting this now, and it would be great to see what 2-line mod you did to get it that far. I am such a neophyte with PHP, VB, Flash itself, and FlashChat... I have some serious "just-in-time learning" to do... I did look at statelessCMS.php and see the new ROLE_CUSTOMER. However the intro comments at the top of that file say only that

FlashChat 4.4.0 and higher support a new user role: ROLE_MODERATOR
Please edit the getUser and getRoles function if you need use of
the new moderator role. This change has not yet been applied.

This is the hint I was going to start with, after learning what ROLE_MODERATOR and then ROLE_CUSTOMER are supposed to do. Then look at getRoles()... despite its name, it appears to return only a single ROLE_XXX and the tests (in your CMS for VB) appear to be ordered to implement an escalating priority _USER, _MODERATOR, _ADMIN, _NOBODY (banned). I think I would add _CUSTOMER as the second test after _USER? Does ROLE_CUSTOMER mean that the user is a _USER and a _CUSTOMER? That's what I need to discover. And so forth.

By the way - I have a separate non-joinable usergroup "customer" representing my customers. Via forum permissions, they are able to see the Customer Support forum/subforums of the board, while regular registered users and guests don't even see them. Membership in the "customer" usergroup is what I want to cause live support to be enabled for the user.

I'm going to press ahead as today (Sunday) is a time window in which I have to do this, but if you happen to see this message and can post the 2 lines of code you tried, I'd appreciate it. I'll check back here periodically. Maybe between the two of us we can decode this stuff and get live support working.

Thanks for taking a look and diving in!

Paul M 11-20-2005 03:53 PM

Quote:

Originally Posted by caliman
Firefox is more secure than IE and much faster.. it would be hard for me to go back to IE for this mod.

Where did I suggest that ? It works fine in FF 1.5 for me.

Quote:

Originally Posted by caliman
I just installed 1.5 Firefox and it still doesn't work on a board with flashchat 4.3.3. Do you have a URL where it works?

Actually, I just realised that I'm not sure what you are saying doesn't work. I thought this was the who is chatting hack, but it's the integration hack .....

Paul M 11-20-2005 04:10 PM

Quote:

Originally Posted by dc3dreamer
I'm going to press ahead as today (Sunday) is a time window in which I have to do this, but if you happen to see this message and can post the 2 lines of code you tried, I'd appreciate it. I'll check back here periodically. Maybe between the two of us we can decode this stuff and get live support working.

Thanks for taking a look and diving in!

I've attached the 2.52 file with experimental customer role support (lines 83 & 145). You need to edit line 145 for your customer usergroupid.

dc3dreamer 11-20-2005 04:22 PM

I had figured out that _CUSTOMER is a superset of _USER and was heading to the same place!! Just starting my testing now, your timing is perfect. I'll use yours and go from there. Thanks so much for this!!

caliman 11-20-2005 04:37 PM

Quote:

Originally Posted by Paul M
Actually, I just realised that I'm not sure what you are saying doesn't work. I thought this was the who is chatting hack, but it's the integration hack .....

Ok.. I apologize.. I left out some details here... the initial loading screen works... all 3 things go to 100%.. then the screen goes blank and nothing happens.. I never get the login prompt that I see in IE.

Sorry for the confusion.

Paul M 11-20-2005 05:25 PM

Quote:

Originally Posted by caliman
Ok.. I apologize.. I left out some details here... the initial loading screen works... all 3 things go to 100%.. then the screen goes blank and nothing happens.. I never get the login prompt that I see in IE.

You should never get a login prompt (if you are logged into the forum) - that's the point of integration. Both things point to a broken integration file, have you edited it ?

caliman 11-20-2005 05:42 PM

I saw a login on someone else's board with 4.3.3 and IE. Regardless.. the link on your site that you posted earlier and the other sites I go to go blank after the loading screen.. nothing ever loads. I have XP and Firefox 1.5 RC now. It did the same in Firefox 1.07.

caliman 11-20-2005 06:05 PM

Well this is interesting Paul... ironically I just got a popup on my toolbar that there was a new version of the flash plugin available.. I downloaded and now I see the login on that other site I was talking about. That's a good sign. I went to your site, but I think you took the link down?

Paul M 11-20-2005 10:00 PM

Tufats forums are now vb 3.5, register there and try your new plugin.

http://www.tufat.com/forum/index.php

caliman 11-20-2005 10:11 PM

Ugh.. Check out the screenshots.. firefox doesn't load all the way, even after several minutes. (2nd pic is IE)

Paul M 11-20-2005 10:17 PM

Well I'm afraid you seem to have a problem with your local installation.

It works fine for me (on FF 1.0 & 1.5) and our site has 20%+ Firefox users (1.0 & 1.5).

caliman 11-20-2005 10:27 PM

When you say local installation do you mean my browser?
Because if you see the URL in those screenshots you will see it is your site I am on.

Found this in my Javascript Console:

PHP Code:

Errorplugin.SetWindow is not a function
Source Filejavascript: function jsScriptObject(obj) { this.wrappedJSObject obj; } jsScriptObject.prototype = { evaluate : function(expression) { return new jsScriptObject(eval(expression)); } }; var plugin document.embeds['flashchat']; plugin.SetWindow(new jsScriptObject(window),510669848);
Line


Paul M 11-20-2005 11:05 PM

Quote:

Originally Posted by caliman
When you say local installation do you mean my browser?

Yes.

Quote:

Originally Posted by caliman
Because if you see the URL in those screenshots you will see it is your site I am on.

No it isn't.

From the main hack post ;

Quote:

Finally, I am not Tufat.com nor anything to do with the Flashchat product - which means I'm not here to answer questions about them. If you have questions about Flashchat in general, their forums are here.
I am satisfied your problem has nothing to do with this hack, you need to take it up with Tufat.

dc3dreamer 11-20-2005 11:14 PM

Paul -- Success! Only one tweak: You need to test the value of 'liveSupportMode' if you want that setting in the FlashChat config.php to have any effect. As you sent it, it's always on regardless of that setting:

Code:

if ($GLOBALS['fc_config']['liveSupportMode']) {
    foreach ($GLOBALS['vbulletin']['customer'] as $group) if (in_array($group,$groups)) $userrole = ROLE_CUSTOMER; // Check Customer groups
}

Sadly the Live Support mode in FlashChat is a bit lame. With it on, any ROLE_CUSTOMER person gets trapped in their Support room, with no way to enter any other room for general chatting with others. I have confirmed on the FlashChat fdorum that this is the case, and posted a wish-list item for it.

Anyway, the vbulletin35CMS.php file you sent me works with the addition of the above conditional test. Turning off liveSupportMode in FlashChat's config.php stops people from becoming ROLE_CUSTOMER types and thus being trapped. Apparently, that setting in FlashChat's config.php doesn't really turn Live Support off all the way. You also have to prevent people from getting into ROLE_CUSTOMER.

Thank you very much!

Paul M 11-20-2005 11:33 PM

Good.

I saw you post at tufat and added the IF test.

v2.53, with this added, will become the current version when I next do an upload.

attroll 11-21-2005 01:18 AM

I posted this early but I can not see where it went, I must have click the wrong button.

Paul

What does this hack do that Flashchat 4.4.2 doesn’t do already? I have flashchat installed into my vB 3.5.1 site right now and it lets Authorised members to be automatically logged in and All non authorised members are locked out (both are based on usergroup membership).

What will I benefit from installing your hack if I were to do it?

Paul M 11-21-2005 02:44 AM

Quote:

Originally Posted by attroll
What does this hack do that Flashchat 4.4.2 doesn?t do already? I have flashchat installed into my vB 3.5.1 site right now and it lets Authorised members to be automatically logged in and All non authorised members are locked out (both are based on usergroup membership).

What will I benefit from installing your hack if I were to do it?

I believe the note in the main post covers this ;

Quote:

Note:
The latest version of Flashchat now includes my integration as part of the Tufat supplied files. However, the currently bundled vB 3.5 CMS file is v2.47 - the latest version available here is v2.53 - this has support for the new Moderator Role and also the Live Support 'Customer' Role. This hack also includes the Who's Online (WOL) Plugin.


shiola 11-21-2005 04:27 PM

Some users are getting a 'Banned' message when they try to login to the Flashchat. I'm confident that it is installed properly as I can use it OK and others get automatically logged in OK. I've been reading some past posts in this thread and someone mentions 'Local Installations' referring to browsers.

What might be common browser problems that users should update in FF and IE? ie, change security settings, trusted sites, etc.

Paul M 11-21-2005 05:56 PM

Quote:

Originally Posted by shiola
Some users are getting a 'Banned' message when they try to login to the Flashchat. I'm confident that it is installed properly as I can use it OK and others get automatically logged in OK.

You are using custom usergroups and have not edited the access section of the CMS file for them.

SpaceStar 11-21-2005 08:49 PM

Installed it and working very fine. Buth how can I manage Flashchat from my Admin Control Panel? or maybe it's not possible?? How can I grant access to users and other controls??

caliman 11-22-2005 04:03 AM

@Paul M - I got it to work. It was my flash plugin, not your mod. ;)
Clicking install now.

Paul M 11-22-2005 04:44 AM

Quote:

Originally Posted by caliman
@Paul M - I got it to work. It was my flash plugin, not your mod. ;)
Clicking install now.

:up:

schuelerd 11-22-2005 06:36 PM

If you use anything other than .php as your file extenstions, you will have to edit the install file...it's looking for config.php ...that will cause the second setep to appear to hang.

Erox 11-23-2005 08:30 PM

I know this is *technically* in the Tutfat/Flashchat realm... (and if this was already answered here, please direct me.)

I'm trying to get rid of the "dirty word censor" (I mean the site is for Problem Adults, for cryin out loud!). According to this page , I simply remove the arrays in "badwords.php".

Well, no go. If I so much as alter one letter of those words my chat.php page goes blank! (I'm using this and noppid's Flashchat on vBulletin Page hacks.

Help? I've installed and uninstalled everything and checked everything I can!!!
http://www.problemadults.com/chat/flashchat.php

Paul M 11-23-2005 09:35 PM

Replace the code in badwords.php with this and it should be ok.

PHP Code:

// Dummy badwords //
$GLOBALS['fc_config']['badWordSubstitute'] = 'dummy';
$GLOBALS['fc_config']['badWords'] = array(
    
'dummy' => 'dummy'
); 


MMiz 11-24-2005 02:20 PM

I'm a bit confused. You say to "Upload the product via the Product Manager using the supplied XML file." Do you mean the "Manage PRODUCTS" or "Plugin MANAGER" option?

Also, is there an option on the admincp to set up any settings?

This one is different than the hack I used in the past.

Thanks!

schuelerd 11-24-2005 03:37 PM

1) I have installed the flashchat integration and it all works fine overall EXCEPT for the WOL status... I get an error as follows in the status readout.

Unknown Location /vb3/cmps_index.php3 @ 12:33 PM

I thought I edited everything ok....any thoughts?

2) I have noticed that just dismissing the chat window doesn't seem to remove the user from chat...is this correct? i.e. If I dismiss the chat window then the status still shows that user logged on to chat. Maybe this is a flashchat issue.

THANKS FOR A GREAT ADD ON!

Paul M 11-24-2005 06:03 PM

Quote:

Originally Posted by MMiz
You say to "Upload the product via the Product Manager using the supplied XML file." Do you mean the "Manage PRODUCTS" or "Plugin MANAGER" option?

Product Manager = Manage Products.

Quote:

Originally Posted by MMiz
Also, is there an option on the admincp to set up any settings?

Nope, this has no settings to alter.

Quote:

Originally Posted by MMiz
This one is different than the hack I used in the past.

Um, well yes, it's a new version. :)

Quote:

Originally Posted by schuelerd
1) I have installed the flashchat integration and it all works fine overall EXCEPT for the WOL status... I get an error as follows in the status readout.

Unknown Location /vb3/cmps_index.php3 @ 12:33 PM

I thought I edited everything ok....any thoughts?

Yes, it's nothing to do with this hack, that's a cmps problem.

Quote:

Originally Posted by schuelerd
2) I have noticed that just dismissing the chat window doesn't seem to remove the user from chat...is this correct? i.e. If I dismiss the chat window then the status still shows that user logged on to chat. Maybe this is a flashchat issue.

A well known Flashchat feature;

See https://vborg.vbsupport.ru/showpost....6&postcount=59

Also, please click install (schuelerd). :)

Erox 11-25-2005 12:31 AM

Quote:

Originally Posted by Paul M
Replace the code in badwords.php with this and it should be ok.

PHP Code:

// Dummy badwords //
$GLOBALS['fc_config']['badWordSubstitute'] = 'dummy';
$GLOBALS['fc_config']['badWords'] = array(
    
'dummy' => 'dummy'
); 


Mr. Marsden, you are not a Master Coder....
You are a god. :speechless:

I just went straight with your integration hack, and it works like a charm. It doesn't seem to like noppid's integrated page, and I'll let him know. But now my gang can curse their black little hearts out. THANK YOU!!!! :banana:

hubix 11-25-2005 07:20 AM

Hello!

My english is not very fine, but i try to explain ;)

When i want to make a shout directly to a user, i click the avatar in front of the nickname in the chatterlist. Then there is the nick in the text-input-field and i can make a shout to the user.

It looks like:

Quote:

hubix i give you a shout
But i want a @-character below or in front of the nick, so that it looks like:

Quote:

@hubix i give you a shout
In which file i got to add the @-character??

I hope you understand me!?!? ;)


thx and greetz
hubix

Paul M 11-25-2005 07:41 AM

You need to ask this in the Flashchat support forums.

www.tufat.com/forum

Omranic 11-28-2005 03:48 AM

Now 4.4.2 is out
is this integretion still working well ?

attroll 11-28-2005 05:03 AM

I have 4.4.2 in my site and the integretion went without a hitch.

schuelerd 11-28-2005 08:27 AM

Quote:

Originally Posted by attroll
I have 4.4.2 in my site and the integretion went without a hitch.

Overall it works well. I did have to update functions_online.php to recognize CHAT in WOL though. There is one annoying thing that is a problem with flashchat but it show up in the integration. Users must LOGOUT using the flashchat red button. If a user dismisses the window under Windows, the logout doesn't happen and the user still shows as logged on.

This is a poor way to handle this IMHO.


All times are GMT. The time now is 06:55 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02513 seconds
  • Memory Usage 1,876KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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