On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




incorporating user roles into simple forum

UserPost

11:14 pm
28 Oct 2007


ovizii

Guest

 
1

could find nothing inside this subforum regarding roles so here goes my proposal:

include roles, i.e. I could give a user a role to manage forums and create new forums or create new groups.

what do you think? useful feature or not? 

11:31 pm
28 Oct 2007


-Radio-

Moderator

Florida - USA

posts 481

 
2

Idea is sound.

I’d vote yes.

concern: some people might not like the access granted in the remainder of the blog.

possible solution: Optional additional roles field (goes back to the extra data fields I wanted in another post) Admin can select WP roles or SF roles to be used in the forums.

 

11:36 pm
28 Oct 2007


ovizii

Guest

 
3

I saw a nice implementation inside nextgen gallery: http://alexrabe.boelinger.com/?page_id=80

baasically it comes with a bunch of roles all preset to admin. if you want to grant access to someone to a certai naprt of the gallery, you can modify i.e. from admin to editor so editors have access to i.e. creation of forums.

or assign the roles manually to a certain user using the role manager plugin if you don’t want i.e. al editors to have access only a certain one. 

11:53 pm
28 Oct 2007


-Radio-

Moderator

Florida - USA

posts 481

 
4

I could see where that would solve all sorts of problems.

 

12:44 am
29 Oct 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4631

 
5

Roles don’t have to have a knock on effect across your whole system. New roles can be defined that are very specific.

7:28 pm
18 Dec 2007


iPeat

Guest

 
6

a long this same topic I can create new roles using role manager but when I assign that new role to a new group they still have access to any forum of a group with the same access level. And if I give them a higher security they can see any forum with a lower access level. I was thinking that I could just add a new capability for each group but it would be really nice to have it tied into the admin

8:22 pm
18 Dec 2007


iPeat

Guest

 
7

Nevermind I just need to alter the sf_user_allowed function to the following

{
global $user_ID;

get_currentuserinfo();

if(($itemrole == ‘public’) || (empty($itemrole))) return true;

// if not a logged in user disallow
if(” == $user_ID) return false;

// Get level of item ($itemrole)
$itemlevel = sf_get_level($itemrole);

// Get level of users role
$userrole=sf_get_user_role($user_ID);
$userlevel = sf_get_level($userrole);

if($userlevel >= $itemlevel)
{
if($userlevel == $itemlevel)
{
if($userrole == $itemrole)
{
return true;
} else {
return false;
}
} else {
return true;
}
} else {
return false;
}
}

maybe you could add this to your next version

now i just need group specific moderators 

9:37 pm
18 Dec 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4631

 
8

The next version of SF incorporates an extremely flexible and extensible user group and permission system. There was not really much point in using the WP roles system which is a bit of a mess.

This will also allow you to set moderators at group and/or forum level. 



Reply to Topic: incorporating user roles into simple forum

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 1 + 9        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

Yellow Swordfish

RobertB

5 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 15

Topics: 1776

Posts: 11976

Members:

There are 819 members

There are 749 guests


Yellow Swordfish has made 4631 posts

Top Posters:

Mr Papa - 1256

-Radio- - 481

ovizii - 93

jfv - 80

angelic007 - 66

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)