WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
user role editor with bbpress: forum menu, add new forum invalid post type issue (7 posts)

  1. Shashank Shekhar
    Member
    Posted 1 year ago #

    Hi I am using user-role-editor 3.10 with wordpress 3.5.1.
    I have created a custom role 'SiteAdministrator' with permissions lying between Administrator and Editor. (it have all capabilities of editor including user creation/edit/listing etc. and not have edit-dashboard permission).
    I have given all forum permissions also to this role.

    But on logging-in with this user in admin, I am getting only 'Topics' and 'Replies' menus in admin sidebar. There is no 'Forum' menu available.
    Topics and replies are working well for all creation/editing.
    for forums I can list it by direct url pasting in address bar after login, ex. http://mysite.com/wp-admin/edit.php?post_type=forum . Also I am able to edit any forum and update.
    But when I try to create a new forum by using http://mysite.com/wp-admin/post-new.php?post_type=forum, it not working giving error on blank page "Invalid post type".

    Please let me know why there are no forum menus/submenus available in admin sidebar and not able to create new forums by direct url?

    Tried giving permissions various ways in user-role-editor panel but not working. May be there some incompatibility of user-role-editor with bbpress roles.
    Please someone help.

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Thanks for active usage of URE plugin and sharing your experience.
    It theory "Forums" menu should be available if user has 'edit_forums' capability. But bbPress works with roles and capabilities in non-traditional WordPress way. bbPress adds its own roles and capabilities to WP roles list dynamically, on the fly. I suppose, as it is happened after WP loaded its roles from the database, bbPress created caps rewrite caps, which user get from WP database. It seems that assigning bbPress to non-bbPress roles or directly to the user has no any effect.

    I'm near to decision exclude all bbPress capabilities from User Role Editor view, as I made for bbPress roles already. What do you think about it?

    If you don't need something special for bbPress, why not to use one of its predefined roles? bbPress lets you assign its role to the user in addition to the base WordPress role.
    Try this variant and let me know, if it works for you.

    Regards,
    Vladimir.

  3. Shashank Shekhar
    Member
    Posted 1 year ago #

    Yes I am agree with you Vladimir, and thanks for replying with the bbpress technique.

    Sorry but I didn't really get what u asking by "I'm near to decision exclude all bbPress capabilities from User Role Editor view, as I made for bbPress roles already."

    By your saying "bbPress lets you assign its role to the user in addition to the base WordPress role", I got and is what I did.

    I have already created one wp-user having custom role 'SiteAdministrator' (as defined in first post), and assigned a bbpress role, the top most 'Keymaster' to it. Means this user now have two roles 'SiteAdministrator' and 'Keymaster', but logging-in with the same user still not show forum menu available and giving 'invalid post type' issue on direct add forum.

    Could you please check doing all things the similar at your end (as I described the need and what I did in the problem) and let me know the way it worked, if it so? It will be helpful for me and other users too.

    Thanks.

  4. Shashank Shekhar
    Member
    Posted 1 year ago #

    Hi Vladimir,
    Did you get time to check it? Please let me know, as its an important point to discuss and solve, related to wp and bbpress forum compatibilities with user-role editor. (I have mentioned in above post what I did as per your suggestion, but not success).

    [ Signature moderated. ]

  5. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Shashank,

    No, I had no time yet. Your problem is still not resolved for this moment.

    Regards,
    Vladimir.

  6. Shashank Shekhar
    Member
    Posted 1 year ago #

    Okay, I hope you get sometime soon to look over it. If something need to be done inside URE plugin for it, will hope that fixed in its next release.

  7. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    I excluded all bbPress created dynamic roles and capabilities from User Role Editor scope. Any role modification with URE will remove all bbPress capabilities from WordPress roles storage. I hope it will help to resolve compatibility issue with bbPress.

    You may download version 3.11 beta for testing from this link
    http://shinephp.com/wp-content/downloads/wordpress/plugins/user-role-editor-3.11b.zip

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic