PEAK XOOPS - New install and guest permissions problem in englishin japanese

New install and guest permissions problem

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 | Posted on 2009/1/14 8:15
jagi  办霹始 From: Poland  Posts: 15
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
Votes:11 Average:8.18
Previous post - Next post | Parent - No child | Posted on 2009/1/15 8:20
jagi  办霹始 From: Poland  Posts: 15
my debud step:
in mainfile.php:
define( 'XOOPS_GROUP_ANONYMOUS', '3' );

but in table (xoops_prefix)_groups Anonymous id = 5 !!:
INSERT INTO `artcode_groups` (`groupid`, `name`, `description`, `group_type`) VALUES
(1, 'Webmasters', 'Webmasters of this site', 'Admin'),
(3, 'Registered Users', 'Registered Users Group', 'User'),
(5, 'Anonymous Users', 'Anonymous Users Group', '');

Why?
Votes:14 Average:7.86
Previous post - Next post | Parent - Children.1 | Posted on 2009/1/15 8:29
jagi  办霹始 From: Poland  Posts: 15
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?
Votes:12 Average:9.17
Previous post - Next post | Parent - Children.1 | Posted on 2009/1/18 17:32 | Last modified
GIJOE  黎扦烦菱   Posts: 4110
hi jagi.

Why not modify your mainfile.php like:

define( 'XOOPS_GROUP_ANONYMOUS' , 5 ) ;
Votes:11 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2009/3/15 21:51
jagi  办霹始 From: Poland  Posts: 15
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 ?)
Votes:9 Average:8.89

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!