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!!


All times are GMT. The time now is 04:03 AM.

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.01993 seconds
  • Memory Usage 1,757KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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