xoops forums

blackrx

Quite a regular
Posted on: 6/6 12:46
blackrx
blackrx (Show more)
Quite a regular
Posts: 219
Since: 2008/2/5 1
#1

ShoutBox not working for custom group

Admin and Registered User can access the shoutbox

But for a user with custom group other than the default group

the user will see our xoops site in the shoutbox block like inside iframe with the message No Permission to access the area

Permission to block and module has been granted in the Group Permission to the custom group but still having this problem


XOOPS Version XOOPS 2.5.8
PHP Version 5.4.27
mySQL Version 5.5.36
Shoutbox 5.01
https://github.com/XoopsModules25x/shoutbox/

Mamba

Moderator
Posted on: 7/13 18:51
Mamba
Mamba (Show more)
Moderator
Posts: 10418
Since: 2004/4/23
#2

Re: ShoutBox not working for custom group

Should be fixed in 5.02 Beta 2.
Please test and confirm...
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs

blackrx

Quite a regular
Posted on: 7/14 0:23
blackrx
blackrx (Show more)
Quite a regular
Posts: 219
Since: 2008/2/5 1
#3

Re: ShoutBox not working for custom group

still not working..no permission to access this area..user with custom group and group permission set

XOOPS Version XOOPS 2.5.9RC1
PHP Version 5.4.27
mySQL Version 5.5.36

Mamba

Moderator
Posted on: 7/14 4:26
Mamba
Mamba (Show more)
Moderator
Posts: 10418
Since: 2004/4/23
#4

Re: ShoutBox not working for custom group

Please test with a new installation...
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs

blackrx

Quite a regular
Posted on: 7/14 9:22
blackrx
blackrx (Show more)
Quite a regular
Posts: 219
Since: 2008/2/5 1
#5

Re: ShoutBox not working for custom group

Thank you with new installation its working..

may i know what cause the problem ?

Mamba

Moderator
Posted on: 7/14 13:34
Mamba
Mamba (Show more)
Moderator
Posts: 10418
Since: 2004/4/23
#6

Re: ShoutBox not working for custom group

Quote:
may i know what cause the problem ?

There was a bug: during installation, the system was checking only the first three "official" groups:
$groups = array(XOOPS_GROUP_ADMINXOOPS_GROUP_USERSXOOPS_GROUP_ANONYMOUS);

To fix it, we had to retrieve all groups via:
$groupHandler xoops_getHandler('group');
$groups       $groupHandler->getObjects();

keeping in mind that the assignment of $mygroups had to change, and instead of the original:
foreach ($groups as $mygroup) {

we had to now use objects in our "foreach" loop:
foreach (array_keys($groups) as $i) {
        
$mygroup $groups[$i]->getVar('groupid');


When I find time, I'll try to add an "update" routine, to fix the existing installations. For now, for testing, just install as a new module.
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs