1
blackrx
ShoutBox not working for custom group
  • 2017/6/6 12:46

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


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/

2
Mamba
Re: ShoutBox not working for custom group
  • 2017/7/13 18:51

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

3
blackrx
Re: ShoutBox not working for custom group
  • 2017/7/14 0:23

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


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

4
Mamba
Re: ShoutBox not working for custom group
  • 2017/7/14 4:26

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

5
blackrx
Re: ShoutBox not working for custom group
  • 2017/7/14 9:22

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


Thank you with new installation its working..

may i know what cause the problem ?

6
Mamba
Re: ShoutBox not working for custom group
  • 2017/7/14 13:34

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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.10 | Docs | Modules | Bugs

Login

Who's Online

131 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits