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 09-23-2005 11:46 PM

I haven't seen or used FC 4.3.2 yet so I don't know if any changes have been made to affect this integration. I may get chance over the weekend.

Paul M 09-24-2005 04:58 PM

Nope works fine with 4.3.2 - have you given your usergroup permision to use the chat in the CMS file ?

hotrod1 09-24-2005 10:10 PM

Hmm here is the code for the user permissions, is it right?

PHP Code:

//    ## Paul M Version for vB 3.5.0 ##
function getRoles($usergroupid) { 
    
$groups explode(',',$usergroupid); 
/*
    Edit the code below to set roles for different vB usergroups 
    Access is assigned in the following priority - based on all primary and secondary group membership.

    1. Assign default access (which is set to NO access below).
    2. If they are a member of an allowed group, grant USER access.
    3. If they are a member of a staff group, grant ADMIN access.
    4. If they are a member of a banned group, grant NO access.
*/

    // Set default access 
    
$userrole ROLE_USER 

    
// Set Allowed groups 
    
if (in_array,$groups)) $userrole ROLE_USER
    if (
in_array,$groups)) $userrole ROLE_USER

    
//Set Staff groups 
    
if (in_array,$groups)) $userrole ROLE_ADMIN
    if (
in_array,$groups)) $userrole ROLE_ADMIN

    
//Set Banned groups 
    
if (in_array,$groups)) $userrole ROLE_NOBODY
    if (
in_array,$groups)) $userrole ROLE_NOBODY

    return 
$userrole



Paul M 09-24-2005 10:52 PM

That's almost the default that goes with default vb (you appear to have changed the default access to ROLE_USER).

Do you have custom usergroups ? what is your usergroup number ?

hotrod1 09-24-2005 10:54 PM

Yes I did and I am in #6 although I want anyone in #7, 2, and 3 to access the chatroom as well.

hotrod1 09-26-2005 07:42 PM

Anybody?

Paul M 09-26-2005 09:27 PM

Quote:

Originally Posted by hotrod1
Yes I did and I am in #6 although I want anyone in #7, 2, and 3 to access the chatroom as well.

The file as it stands will allow any usergroup except 8 or 9 permission to enter - personally I think you would be better setting the default back to ROLE_NOBODY and adding a line for usergroup 3 below the group 2 & 7 lines.

hotrod1 09-26-2005 09:49 PM

Unfortunely still no luck :(

Paul M 09-26-2005 10:20 PM

Quote:

Originally Posted by hotrod1
Unfortunely still no luck :(

There is nothing else I can do without access to your site. If you want me to have a look then I need ftp access and an admin account on your forum. You can PM me the details and I will take a look sometime in the next 24 hours.

theArchitect 09-27-2005 10:29 AM

I am experiancing something strange. The only change to my board I have made in the last 5 days is to install Flash chat with your integration modification.

Since doing this I have to keep logging back in (if I am idle for a shortish period of time). But in the past the forum would keep me logged (on my machine) unless I logged out.

Do you have any thoughts as to what may be causing this? I realise that your hack should not affect this but it is the only variable which has changed.


All times are GMT. The time now is 01:30 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.01630 seconds
  • Memory Usage 1,749KB
  • 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_php_printable
  • (2)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