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
  #632  
Old 01-27-2006, 09:01 PM
drex drex is offline
 
Join Date: Feb 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great. fixed it! please disregard.........
Reply With Quote
  #633  
Old 01-27-2006, 09:20 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 drex
works great. fixed it! please disregard.........
Good What was wrong ?
Reply With Quote
  #634  
Old 01-27-2006, 09:31 PM
virtualraceday virtualraceday is offline
 
Join Date: Dec 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Paul!

Thanks for the script... I've installed it and tried to get it working, but the auto login feature won't work for me

What happens is, I log into vB, then click my chat link to open FlashChat 4.4.2 in a popup window, but it tells me my login is invalid. Then, if I use the same user/pass it will log me in.

It seems like vB isn't passing the correct user/pass combination to FlashChat....because I can definitely login manually, and it even sets the correct admin level etc.

Any help would be great! Thanks in advance!
Reply With Quote
  #635  
Old 01-27-2006, 09:47 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 virtualraceday
Any help would be great! Thanks in advance!
Can I refer you to these two quotes

Quote:
please make sure you have clicked the install link - esp if you require support
Quote:
Support: Please check any file edits carefully, the vast majority of problems reported are due to an error made in editing 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. Depending on time, it could be several days before I get chance to look at your issue.
Reply With Quote
  #636  
Old 01-28-2006, 02:05 AM
drex drex is offline
 
Join Date: Feb 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

paul--

not sure but if i had to guess:

Quote:
Support: Please check any file edits carefully, the vast majority of problems reported are due to an error made in editing 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. Depending on time, it could be several days before I get chance to look at your issue.
cheers for a great hack!
Reply With Quote
  #637  
Old 01-29-2006, 06:26 PM
Silvio's Avatar
Silvio Silvio is offline
 
Join Date: Nov 2005
Location: Italy
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul, excuse my bad english,


ty 4 this really grat mod & *installed*

A problem for me is there.
I can't manage authoring phase, as i need , as I am not able to let script understand "secondary usergroups" and its added rights to the main usergroup.

I better explain with an example

Let immagine that you have 2 usergroups 1 called "Registerd" (Groupid 2) and another called "Enabled" (Groupid 13)

but again, immagine to use secondary usergroups, so you have a user that belong as primary usergroup to Groupid 2 and has also as child group a secondary flag on Groupid 13, with added its privileges.

Now I would need to grant access to both users -> that have primary Groupid 13 or those that have primary Groupid 2 but also a secondary groupid13. At same time I do not want to grant Access to User with Only primary Groupid 2.

....really difficult for me to explain in english.. I hope i did.

I played around that and i tested various ideas on vbulletin35CMS.php

I thought to have solved my problem using this last quoted . but ..notthing...

I modified:
PHP Code:
foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole ROLE_USER// Check Allowed groups 
to :

PHP Code:
foreach ($GLOBALS['vbulletin']['users'] as $group)
{
if (
in_array($group,$groups) && in_array($GLOBALS['vbulletin']['users'][0], $groups))
{
     
$userrole ROLE_USER// Check Allowed groups
}

then I set up users array to both

PHP Code:
'users' => array( 13,) , // vBulletin usergroups allowed standard access to chat. 
or
PHP Code:
'users' => array( 13 ) , // vBulletin usergroups allowed standard access to chat. 
but in neither way is working :tired:

How can I Do to solve this problem? is my logic wrong or just a typo :S ?

ty so much for patience

regards


*note : I am using flaschat integration module post-440 with Flaschat452Beta
Reply With Quote
  #638  
Old 01-29-2006, 10:25 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 Silvio
Now I would need to grant access to both users -> that have primary Groupid 13 or those that have primary Groupid 2 but also a secondary groupid13. At same time I do not want to grant Access to User with Only primary Groupid 2.
Okay, Assuming I have understood this correctly then all you need to do is this ;

PHP Code:
'users' => array( 13 ) , // vBulletin usergroups allowed standard access to chat. 
The only reason I can think of that this didn't work is because of the other change you made - restore that back to this ;

PHP Code:
foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole ROLE_USER// Check Allowed groups 
I honestly can't understand why you edited that or what you were trying to do.

By simply using the original file and changing the standard access group to 13, the following will happen ;

Primary = 2 Secondary = none : No Access
Primary = 2 Secondary = 13 : Access allowed
Primary = 13 Secondary = none : Access Allowed

Which appears to be what you described above.
Reply With Quote
  #639  
Old 01-30-2006, 07:28 AM
Silvio's Avatar
Silvio Silvio is offline
 
Join Date: Nov 2005
Location: Italy
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ty so much Paul,

B4 trying to play with code, I tried to setup (with ummodified code) only on array setup to -> 13 but users with secondary on 13 wasent allowed. to allow them i had to setup 2,13 on array. but consequently group 2 was allowed and should not.

so after that, i tryed to play a bit, but no results.

Now actually i restored the original line of your code to test again, and result is the same.
to grant access to sec/13 i need to setup array at (2,13)

I would love to sort it out

ty for patience & help

ciao take care
l8r
Reply With Quote
  #640  
Old 01-30-2006, 09:38 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

It should work as described (it does here, I just tested it). Please PM me ftp access if you want me to have a look.
Reply With Quote
  #641  
Old 01-30-2006, 11:30 AM
Silvio's Avatar
Silvio Silvio is offline
 
Join Date: Nov 2005
Location: Italy
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ty Paul, your code is working ... I understood where an issue is .(well I should say 2 as my brain is really lame&small :disappointed: )
Ok the problem is on cookies.

array set on : (13)

Donno why but
1) logging in vB with testuser1(group 2) it wont give access as should
then normally log out vB from that user
2) logging in with vB testuser2(group2+13) it will give rights as should

So ur mod is perfect, but

2)<-- is true only if
a) cookies are hand-cleared on explorer proper menu
b) to login vB as testuser2 after that testuser1 has logged out vB, It must be done after all opened explorer are closed and reopened in new fresh instances (just logout vB & again login vB with the other user in same explorer window will make the difference)

Again sorry to keep loosing ur time, as ur mod is PERFECT and on vB3.5.3 is working great!!!

A note is that, in the case cookies are not unset properly : --> If I logout from vB Testuser2 (the one with rights) and then I login vB as Testuser1 (the one without), even if vB well recognize both of them as it is welcoming them with their correct username (welcome Testuser1 .....), flashchat will log me as Testuser2 granting me access.

ciao take care
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 06:46 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.08967 seconds
  • Memory Usage 2,336KB
  • 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
  • (6)bbcode_php
  • (6)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