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!