System: xoops 2.3.2b + altsys-0.7 + d3forum-0.8
After installation, in new forum - all guest permissions set OFF, but guest can view, post and create topic.
Tested on 2 separate installation ( on localhost and on server
www.artcode.eu )
1. preview tables with perms:
INSERT INTO `artcode_d3forum_category_access` (`cat_id`, `uid`, `groupid`, `can_post`, `can_edit`, `can_delete`, `post_auto_approved`, `can_makeforum`, `is_moderator`) VALUES
(1, NULL, 1, 1, 1, 1, 1, 1, 1),
(1, NULL, 3, 1, 1, 1, 1, 0, 0);
INSERT INTO `artcode_d3forum_forum_access` (`forum_id`, `uid`, `groupid`, `can_post`, `can_edit`, `can_delete`, `post_auto_approved`, `is_moderator`) VALUES
(1, NULL, 3, 1, 1, 1, 1, 0),
(1, NULL, 1, 1, 1, 1, 1, 1);
I know - they haven't "groupid" 5 (guest ??), maybe this normal default install. When I add manually perms sets "0" to table with groupid 5 - nothing change - guest can add topic and post.
You can test this on artcode.eu
but this not problem with d3forum ...
but why check dev XOOPS_GROUP_ANONYMOUS in this way:
$whr = "`groupid`=".intval(XOOPS_GROUP_ANONYMOUS) ;
not better get id from table _groups?
hi jagi.
Why not modify your mainfile.php like:
define( 'XOOPS_GROUP_ANONYMOUS' , 5 ) ;
this can make other problems with permissions like block access ( tested with xoops 2.3.3, hardcoded or saved in db default permissions 1,2,3 ?)