Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Are you running bbPress? I had the same issue, and narrowed it down to bbPress. I’ve filed a bug report here: http://bbpress.trac.wordpress.org/ticket/2161

    Here’s a temporary solution that worked for me:
    `function bp_fix_blog_role($blog_id, $user_id) {
    add_user_to_blog($blog_id, $user_id, ‘administrator’ );
    }
    add_action( ‘wpmu_new_blog’, ‘bp_fix_blog_role’, 10, 2 );`

    Just drop this in `mu-plugins` if you want. You can change “administrator” to whatever role you prefer. This function runs immediately after the blog is created, so it will probably solve your problem.

    Code source: http://wordpress.org/support/topic/how-do-i-change-the-default-administrator-role-to-author-for-new-users

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    For those of you interested I’ve found a temporary solution that works perfectly:

    `// When a User Creates a New Blog, Force the Administrator Role (bbPress Bug Temp Fix)

    function bp_fix_blog_role($blog_id, $user_id) {
    add_user_to_blog($blog_id, $user_id, ‘administrator’ );
    }
    add_action( ‘wpmu_new_blog’, ‘bp_fix_blog_role’, 10, 2 );`

    Just drop this bad boy in your `mu-plugins` folder and you’re good to go. If you want a different default role for your users, just set “administrator” to whatever you want (editor, author, etc.). The beauty of this function is that it runs immediately after the blog is created, so it will fix any issues you have during blog creation.

    Source: http://wordpress.org/support/topic/how-do-i-change-the-default-administrator-role-to-author-for-new-users

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Thanks for your help @djpaul, I’ve filed the bug here: http://bbpress.trac.wordpress.org/ticket/2161

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Turns out my issue was with bbPress. If I deactivate bbPress there are no problems with creating a blog through `/blogs/create/`. I know that more recent versions of bbPress (I’m running 2.2.3) have created their own user roles, perhaps @JohnJamesJacoby can help me understand this issue.

    I’ll try a few things and then report back here if I find a solution.

    Thanks!
    Ben

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    To name some of the more likely possibilities:

    • Jetpack
    • Bad Behavior
    • FV Antispam
    • bbPress
    • BP Xtra Signup
    • Invite Anyone
    • Network Latest Posts
    • New Blog Defaults
    • Welcome Pack
    • WordPress SEO

    I noticed after posting this yesterday that the form on the registration page (which works) is hard coded into the form, whereas the one on the `/blogs/create/` page is generated by the `bp_show_blog_signup_form();` function. Is it possible that the different functions that are run upon submission (on signup vs. blog creation) are be different enough to make this error occur?

    …Maybe I’m barking up the wrong tree…

    Thanks for your time,
    Ben

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    I got it working. Just thought I’d post here to update.

    In the registration form (whether you’ve copied/pasted it or created a custom file to call), you need to do two things:

    First, change your opening “ tag to this: `<form action="” name=”signup_form” id=”signup_form” class=”standard-form” method=”post” enctype=”multipart/form-data”>`

    Second, add this php before the form: `global $bp;
    if(empty($bp->signup->step))
    $bp->signup->step=’request-details';` (Wrapped in php tags, of course.)

    If my code disappears (as it has been), you can find the solution here: http://buddydev.com/support/forums/topic/move-registration-to-index-page-2/

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Alright, it still not working. I’m just using a PHP “inlcude” call to my custom register page. So there.

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Sorry, it seems to have cut the line I am using to include the script:

    (Spaces added).

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Ah-ha! I just needed to fiddle with my classes some more.

    li.activity-item.mini div.activity-content img.avatar {
    display:inline-block !important;
    vertical-align:top;
    }
    li.activity-item.mini div.activity-avatar img.avatar {
    display:inline-block !important;
    margin-top:10px;
    margin-left:42px !important;
    margin-right:-5px !important;
    }

    Thanks @frank13!

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    @frank13 thanks for the suggestion, the FireFox inspection tool is similar to one in Firebug but does help, thank you. As a result of using the inspect tool I added/edited the following classes as such:

    li.friends.friendship_created.activity-item.mini a img {
    display:inline-block !important;
    }
    li.friends.friendship_created.activity-item.mini div.activity-content div.activity-header p a img {
    display:inline-block !important;
    }

    Unfortunately, this does not seem to have solved my problem.

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    You were right, something was messed up with my CSS, after I gave it an untarnished copy it worked fine.

    Thanks guys!
    Ben

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Thanks for the reply Boone.

    That is a possibility. Originally, what I did was install the BP Template Pack plugin to get the files and html structure worked out. Then I copied `bp.css` from the plugin, placed it at the end of my `style.css`, and checked “Disable Template CSS” in the plugin settings (this is so that my custom styles did not disappear upon plugin update, etc.).

    I will copy the “BuddyPress” section of the `default.css` and replace mine and re-customize it to see if that solves my problem.

    …Good thing I kept a separate log of all my custom changes…

    Thanks,
    Ben

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Version 1.6.

    Avatar of Ben
    Ben
    Participant

    @communicatorsinaction

    Sorry, I forgot to mention that I’m running WordPress 3.4.1 and BuddyPress 1.6.

    Digging around in the Codex a little bit showed me that it is possible for my desired structure to be achieved (community.mysite.com/usersite); however, seemed to indicate that my WordPress instalation must be in http://community.mysite.com and not http://mysite.com.

    Is there a way to do this with the WordPress install in the main site?

    Thank you for a masterfully comprehensive plugin,
    Ben

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