here what I was thinking.
create a permissions mod.
which allows you to make a group and then you can add users to a specific group.
so the tables are like.
mod_group ( group_id, group_name)
mod_permission(permission_id,permission_text,permi ssion_field, permission_value, group_id)
mod_permission(1,"Allow editing a link", "editlink_top", true,1) //example
index.php has check_actions('index_top'); at the top.
so you add a similar one in editlink.php check_actions('editlink_top');
create a function in the module that hooks 'editlink_top'
so when the hook function runs
check user id.
check group permissions
check if group is allowed to "editlink_top"
if it is then define("ALLOW_EDIT_LINK", true); because we can't return values from forum.
thats all the module stuff.
edit that to
if ($link->link_author==$current_user->user_id || $current_user->user_level == "admin" || $current_user->user_level == "god")
Well thats just for edit link.
if ($link->link_author==$current_user->user_id || $current_user->user_level == "admin" || $current_user->user_level == "god" || ALLOW_EDIT_LINK)
This is just a few things that i came up with as I was writing. We definitely should refine this more and let people contribute ideas.
And Dollar5 and his Developer, great work. good to see people wanting to contribute back to the community.