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,2 ) , // 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