1 zebulon Apr 09, 2015 22:40
3 zebulon Apr 10, 2015 11:04
Hi @mgsolipa
Thank you very much for this info.
I have tried the database thing and it works as expected. I also think this is good enough for me in this case since it is only a small blog where there is not so much to change in the setup over time.
Its probably better to do the occational db edit than to edit the php file.
Thanks again.
Regards,
Ralf
Hi @zebulon,
I will describe how I reproduced an scenario like the one that mentioned:
By definition, what I have done in step 3 is not possible because we can't assign any permission to users/groups without making them members of the collection. So, I manually edited the database to acomplish that set shown in the screenshot (Misbehaving/Suspect allowed to comment in Community status but not added as members). Just go to the table evo_bloggroups and look for the record that match blog_ID and group_ID, so update the value of is_member to 0.
There is also an ugly hack that may work to avoid constant manual database updates (any change that you make in the perms tab will reset is_member to 1), just go to the file inc/collections/model/_blog.funcs.php and replace this line (around 172):
by this one:
Replace the number 5 by the ID of the group that you want to keep as no member.
I haven't done more tests about the effects of this customization, so you can tell us how it's going. Also, you should consider to make a new group instead of using "Misbehaving/User" to assign by default to your registered users, because it is also used by other b2evo features (like spam detection, etc) to automatically restrict what users can do and what happen with them according their behaviour.
Regards!