why doesn't the plugin Blog & User Creator pull in my user roles

I am trying to create users and blogs using this plugin. In the third tab, the one that allows me to create new sites (blogs), when I select the roles list, the roles that I made using the Add New Role plugin don't show up as an option, although the roles are already existent. Is there a way for me to make them show up?

  • Vaughan
    • Support/SLS MockingJay


    thanks for posting.

    i've searched through the code and the user roles are hardcoded options, it doesn't create the options list from db roles.

    i can add this to the feature requests for a future version.

    until then you could add your user roles manually by editing the plugin code.

    see blogs-and-users/lib/forms/action_page.php

    just add your role to each option in that file.

    look for

    <option value="contributor"><?php _e("Contributor", 'bau');?></option>

    to get a general idea.

    hope this helps.

  • Patrick
    • Support Monkey

    Hi @kyle_crosby

    You are quite right; only default WP roles appear to be recognized by the plugin on my test site also.

    I'll alert the developer to this right away so he can perhaps provide some insight.

    EDIT - I see @Vaughan has already done so. :slight_smile:

  • Ignacio
    • HummingBird

    Hi @kyle_crosby

    I'll add this on the next version but meanwhile you can make it work with the next code:

    In the same file that @Vaughan said:

    Search for <select name="bau_new_blog_user_role"> and put this code:

    <select name="bau_new_blog_user_role">
       <?php wp_dropdown_roles(); ?>

    Search for <select name="bau_this_blog_user_role"> and put this code:

    <select name="bau_this_blog_user_role">
       <?php wp_dropdown_roles(); ?>

    Search for <select name="bau_new_blog_my_role"> and put this code:

    <select name="bau_new_blog_my_role">
       <option value=""><?php _e('No role', 'bau');?></option>
       <?php wp_dropdown_roles(); ?>


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.