Skip to:
Content
Pages
Categories
Search
Top
Bottom

Important~Need SHORT Term solution (until integrated in BP) to allow EDITOR role more functionality.


  • Pisanojm
    Participant

    @pisanojm

    Hello BP gurus,

    I need a short-term solution that will allow users that I grant the ROLE of editor to be able to EDIT text on the activity stream and also edit/change avatars/text within the GROUPS and FORUMS. I do not want these users to have the ability to change PLUGINS or edit USERS or most anything on the back-end… The closest thing I found in this discussion thought-train is here:

    http://buddypress.org/community/groups/requests-feedback/forum/topic/buddypress-needs-site-wide-editor-user-role/

    I would like to implement this ASAP as our site is now expanding into a multi-user managed role and I don’t currently have the ability to grant these types of privileged unless I grant them the ADMIN role. This would need to work for Single Site, not Multi-User Buddypress.

    Your thoughts on this matter are sought, welcomed, and encouraged.

Viewing 3 replies - 1 through 3 (of 3 total)

  • Pisanojm
    Participant

    @pisanojm

    Monday morning polite bump.


    PhillipSonderskov
    Member

    @phillipsonderskov

    Is it something like this you’re looking for?

    http://www.shinephp.com/user-role-editor-wordpress-plugin/

    This allows you to modify the userroles and even create new ones.


    Boone Gorges
    Keymaster

    @boonebgorges

    Unfortunately I don’t think there is a super easy short term solution.

    You’d have to create a new WP capability, and then on each page load, you’d have to essentially spoof the proper BP permissions. For groups and forums that means $bp->is_item_admin. In the case of activity deletion, there isn’t really a good piece of data to spoof (aside from the activity’s user_id field, which is obviously used for other stuff like displaying the activity avatar and so probably shouldn’t be messed with). So you might need to build your own delete links, and then make your own function that replicates bp_activity_action_delete_activity() except that it (a) hooks earlier to `wp` (maybe with a priority of 2 rather than 3) and (b) replaces the `/* Check access */` business with your alternative.

    The core team is hoping to make this sort of thing easier in 1.3. Once BP has taken better account of proper user roles, I think it’d be an appropriate feature request that this sort of role be part of BP core, as it’s something that will be needed by pretty much any community site beyond a certain size.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Important~Need SHORT Term solution (until integrated in BP) to allow EDITOR role more functionality.’ is closed to new replies.
Skip to toolbar