Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 3 months, 4 weeks ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

User roles in sub-sites

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 9 months ago by Ray.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 27, 2015 at 2:46 pm #5723
    Basem Aly
    Participant

    We’ve got several custom roles (students, staff, faculty, alumni) created using User Role Editor Pro in our main Commons site. However, when anyone creates a sub-site, and they get to the blog setup screen, their default member options only include the default roles (admin, editor, author, contributor, subscriber). So when any current user logs-in to the sub-site their role is assigned as one of the defaults rather than the new roles we defined above. Is there a way to show an expanded list of available roles in the blog setup screen (see screenshot)?

    Is there a recommended plugin for bulk reassigning roles in the sub-sites to conform to each user’s correct role?

    Attachments:
    You must be logged in to view attached files.
    July 29, 2015 at 2:50 am #5725
    Ray
    Keymaster

    Hi Basem,

    Judging from your screenshot, the settings screen is from the BP Groupblog plugin.

    You’ll want to override BP Groupblog’s blog form with your own.

    To do this, copy the bp_groupblog_signup_form() function:
    https://github.com/boonebgorges/bp-groupblog/blob/master/bp-groupblog.php#L822

    Rename your new function to something else and add in your custom roles to this function.

    Next, you’ll want to unhook BP Groupblog’s current blog form and tell BP Groupblog to use yoru custom one:
    https://github.com/boonebgorges/bp-groupblog/blob/master/bp-groupblog-classes.php#L41,L42
    https://github.com/boonebgorges/bp-groupblog/blob/master/bp-groupblog-classes.php#L66,L67

    Something like this:
    http://pastebin.com/2ccUHRRb

    Untested, but hopefully that should give you some ideas.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register