bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Using the add_role function

(5 posts)
  • Started 1 year ago by Mr_Cynical
  • Latest reply from akhater
  • This topic is not a support question

No tags yet.

  1. I want to create a new user role on my forum, as a basis for fiddling with the private forums plugin. Essentially I want to be able to give some users on my forum a specific role (in addition to 'member') that will allow them to access specific forums without giving them mod/admin powers. I'll need more than one new role (it's for a Guild Wars alliance forum, and each guild needs to have its own private section).

    I'm fairly confident as to how to modify the private forums plugin to enable what I want - all I need to know is how to create the new user roles to enable this.

    I've managed to establish that add_role is the bbPress function I want, but (knowing absolutely no php) I have no idea how to use it. Can anyone help me out? Thanks :)

    Posted 1 year ago #
  2. Realised that the private forums plugin can't actually do what I was planning. Help no longer needed.

    Posted 1 year ago #
  3. Nice, akhater. Just for simplicity and maintainability, you don't actually have to copy and paste the member capabilities, you can simply duplicate them through code. (For example)

    Posted 1 year ago #
  4. fel64 WOW this is nice :) we learn every day don't we :)

    I will add your link to my mod it will help ppl

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.