Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Flashchat Integration for vB 3.5 Details »»
Flashchat Integration for vB 3.5
Version: 2.67, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.5.x Rating:
Released: 06-28-2005 Last Update: 12-07-2006 Installs: 706
 
No support by the author.

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.

[high]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.[/high]

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 nor anything to do with the Flashchat product - if you have questions about Flashchat in general, their forums are here.


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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #402  
Old 11-19-2005, 04:28 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #403  
Old 11-20-2005, 01:58 AM
dc3dreamer dc3dreamer is offline
 
Join Date: Oct 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #404  
Old 11-20-2005, 02:50 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #405  
Old 11-20-2005, 05:04 AM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #406  
Old 11-20-2005, 11:00 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #407  
Old 11-20-2005, 02:57 PM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #408  
Old 11-20-2005, 03:03 PM
dc3dreamer dc3dreamer is offline
 
Join Date: Oct 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #409  
Old 11-20-2005, 03:53 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .....
Reply With Quote
  #410  
Old 11-20-2005, 04:10 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #411  
Old 11-20-2005, 04:22 PM
dc3dreamer dc3dreamer is offline
 
Join Date: Oct 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05718 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete