Skip to:
Content
Pages
Categories
Search
Top
Bottom

Automatically creating blog along side user registration


  • Dewey Hulsey
    Participant

    @deweyhulsey

    I have an implementation of BuddyPress and WordPress MU going. I would like users to have their blogs created for them as they register, rather than it be an option. Any advice?

    I have already installed a plugin that limits 1 blog per user and am looking for a solution that either duplicates or works along side that functionality.

    Any help is appreciated. Thanks.

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

  • r-a-y
    Keymaster

    @r-a-y

    You could hide the “Create a Blog” section on the registration page, which would mean that blog creation will be checked by default.

    Add the following to your CSS file:

    #blog-or-username {display:none;}


    Dewey Hulsey
    Participant

    @deweyhulsey

    Would that make the default value for the blog creation the user’s username?


    r-a-y
    Keymaster

    @r-a-y

    No, they would see the same screen on the registration page, but when the user hits “Next”, the second page will allow the user to customize their blog (name of blog, etc.).


    Dewey Hulsey
    Participant

    @deweyhulsey

    Thanks r-a-y; after a bit of tweaking, I got the result that I wanted. Innovative approach to the fix.


    r-a-y
    Keymaster

    @r-a-y

    Hey Dewey,

    Do you mind sharing your fix with us?


    Dewey Hulsey
    Participant

    @deweyhulsey

    Surely.

    I put this in my custom.css:

    #blog-or-username, #blog-details-fields label, #blog-details-fields input,
    #blog-details-fields span, #blog-details-fields p,
    #blog-details-help, #blog-details-fields br {display:none;}

    #blog-details-fields span.suffix_address {
    display: block;
    color: #eee;
    }

    #blog-details-fields span.suffix_address:after {
    content: "Please choose a name for your blog and click Signup to complete registration.";
    display: block;
    color: #555;
    }

    input#blog_title {display:block;}

    Basically, this changed the dialog to “Please choose a name for your blog and click Signup to complete registration.”. This way, the user could still select the name for the blog, but was never prompted to create the blog and the subdomain of the blog is the user’s username.

    Not a perfect fix, but it works.


    r-a-y
    Keymaster

    @r-a-y

    Ahh gotcha.

    I thought you made an elaborate PHP coding hack! ;)

    Be careful with the CSS content attribute.

    As you know, <IE8 will not like that!


    mlemberg
    Participant

    @mlemberg

    So, any idea on how to do the exact opposite?

    I don’t want my users to be able to create blogs at the registration point, but I do not want to turn the blog feature completely off, as they should still be able to create blogs at later stages from within the Buddypress interface.

    Any good approaches?


    Dewey Hulsey
    Participant

    @deweyhulsey

    I think, at this point, that you would have to go in and edit the file used during registration. This isn’t a good method, though, because that means when BuddyPress updates, your changes will be overwritten.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Automatically creating blog along side user registration’ is closed to new replies.
Skip to toolbar