Forums

No subscriber registrations on subdirectory blogs (24 posts)

  1. Brayne
    Member
    Posted 6 months ago #

    This is kind of a bump on some other inputs. I thank anyone in advance for a direction of a solution.

    I'm on a VPS and have checked for the need for wildcard entries and such..

    I have...
    blog.site.org/
    blog.site.org/alabama
    blog.site.org/texas
    blog.site.org/virginia

    Everything is working for the most part... except when "Joe visitor" wants to register for his state of texas, all news registrations, force the new subscribers to join blog.site.org.

    This is weird because, from the back end I sign up users on the individual blogs no problem. Also the Admin - login works just fine from the individual blogs. BUT, a regular registration for each individual blog is forced to the main admin blog.

    Is this the intended function of the latest release of MU? Do I need to roll up my sleeves and create a custom solution for this? Or is it a simple fix? It seems as though something is missing in the code somewhere because /wp-login.php is being called properly on all sub directories however /wp-signup.php is forced back to the main blog when it's called.

    Thanks again in advance...

  2. Ovidiu
    Member
    Posted 6 months ago #

    first of all how do you do a regular registration for each individual blog as far as I know the only way to do so is via this plugin, but my information might be outdated?
    http://wpmudev.org/project/add-user-widget

    ###edit###
    what are your settings for 'Dashboard Blog' and 'Dashboard User Default Role' under the site admin options?

  3. andrea_r
    Member
    Posted 6 months ago #

    There's a new setting in WPMU 2.7.x to allow users to let others register on their blog.

    And yes, it has always bumped them back to the main blog. In this case, it probably should associate them to the right one. i gotta test it myself.

  4. Ovidiu
    Member
    Posted 6 months ago #

    wow, didn't catch that. There's a new setting in WPMU 2.7.x to allow users to let others register on their blog.

    some helpful links for me andrea? how would one do that? enable/disable it? Widget?

  5. andrea_r
    Member
    Posted 6 months ago #

    Well, it's marked with a * under the blog-specific Users menu, if it;s turned on, and links to the Site Admin -> Options page, where it says "Allow blog administrators to add new users to their blog via the Users->Add New page. "

    It's right under registration Notification and right above the Dashboard blog options.

  6. Ovidiu
    Member
    Posted 6 months ago #

    k, thanks but that still doesn't explain what he means by regular registrations: ´BUT, a regular registration for each individual blog is forced to the main admin blog.´

  7. andrea_r
    Member
    Posted 6 months ago #

    He means users trying to sign up on a member blog are redirected to sign up at the main blog.

    like they always have been if they follow the register link on the front end.

  8. Brayne
    Member
    Posted 6 months ago #

    @andrea - You understand what I'm trying to do, thnx. and after some research, a few users are looking for this as well... I'm thinking I need to tap into the
    signup_header & wpmu_activate_user hooks and pass the $current_blog->path and $current_blog->blog_id into the new user registration... possibly make this an mu-plugin?

    Once again, for clarification for others, this is for a new user to sign up as a user only to a child blog.

    Do you think this the logic I should follow?

  9. andrea_r
    Member
    Posted 6 months ago #

    Okay, just running through this in a test site and providing a recap.

    under Site Admin -> Options, Registrations are open (blogs and/or just users)
    Also selected is "Allow blog administrators to add new users to their blog via the Users->Add New page. "

    Now, this option allowed the individual blog owners to add a user to their blog manually. If the user is in the system already, great. If not, it sends an invite to the provided email address.

    On the front end of the member blog, if you give a link to wp-register.php, it will come up not found (at least on mien it did).
    If you give a link to wp-signup, yes, it will redirect to the main blog's signup page.

    There, they can sign up as a user, and then get added to the blog manually by the blog owner. Not ideal in many circumstance, but there you go. it's been this way for a while.

    (note: you can have users added to a dashboard blog instead of the main blog. See the dashboard blog option under Site Admin -> Options)

    So - if you want users to be able to bypass most of that, and sign up to an individual blogs directly, the work had been done, but the "sidebar user registration widget" has been pulled.

    This http://wpmudev.org/project/add-user-widget is close, but I think users still have to be added to the system as whole first.

    That's the kicker with MU.

    I really should post this to the tutes blog for reference.

  10. Brayne
    Member
    Posted 6 months ago #

    @andrea - Thank you for your investigative work!!!! So I'm not all that crazy after all!
    I have found some work being done on a plugin that claims to allow direct registrations to individual blogs - http://code.creativecommons.org/viewsvn/wordpressmu/trunk/mu-plugins/per_blog_registrations/ - testing it today...

  11. andrea_r
    Member
    Posted 6 months ago #

    "So I'm not all that crazy after all!"

    Maybe not, but if you stick around here, it helps. :)

  12. skozyk
    Member
    Posted 5 months ago #

    I'm really surprised MU works this way by default and there isn’t a way to easily change this. If I sign up for and create my own blog on an MU site and want to build a subscriber base for my new blog, how would I accomplish this when individuals who visit my blog are re-directed to the main MU site’s signup page, not a signup page for my blog? The blog visitor is expecting to register for the blog she is visiting, not the main MU host site, which she may not care about or even know exists. I’m just trying to determine the logic behind this functionality.

    Plugin, hack, or otherwise can anyone provide the answer to how to accomplish allowing visitors of a WordPress MU site’s child blog to register for the child blog only without being re-directed to the main MU signup page?

    Thank you.

  13. andrea_r
    Member
    Posted 5 months ago #

    "I’m just trying to determine the logic behind this functionality."

    Look at wordpress.com - it works exactly the same way there.

  14. skozyk
    Member
    Posted 5 months ago #

    Yes this is the way wordpress.com works and I can see why they would want the site registration to function in this manner. It would produce more individual new blog registrations as opposed to just having a user register as a member of the blog they were reading. This would be an intelligent strategy for growing the site as it would certainly produce a greater number of total unique blogs on the site. It makes sense for wordpress.com and was the right choice for growing the site and the popularity of WP in general. The problem is this registration model doesn’t fit in with a high percentage of WPMU sites, because these site need users to be able to create a new blog on their MU domain, however after the new blog is created, visitors to the new blog should be able to register for that blog only.

    For example, an MU installation for a school would require the “per blog” registration model, as teachers would set up their own classroom blogs on the main school MU site. Students would then be directed to register for their classroom at www,school-mu-site.com/my-classroom. The student needs to register only for their classroom, not the main school site. The “wordpress.com” registration model doesn’t work here, but the “per blog” model does.

    Glancing around on the WPMU related discussion boards, I’ve see a large number of individuals requesting the “per blog” model for their MU sites. The pain is definitely there, but we haven’t been able to find a working solution. The Per-blog registrations for Wordpress-mu plugin by Nathan Kinkade http://labs.creativecommons.org/2008/07/01/per-blog-registrations-for-wordpress-mu/ was a well intended start to the solution, but even though it may have worked for previous versions of WPMU, it doesn’t work with the more current ones.

    There is an obvious strong need for “per blog” registration functionality in WPMU sites. I hope we can work together to locate or produce a viable solution to this problem.

  15. anointed
    Member
    Posted 4 months ago #

    Is there a solution to this yet?

    In my scenario, I chose to use mu so that I only have to maintain one codebase for all my client websites. My clients do not know or care that there are other blogs on the network. They simply want to run a wp site where their own visitors can register and become a part of their own blog site.

  16. katoma
    Member
    Posted 4 months ago #

    hey,
    i also came to the lack of signing a user to a special blog and did some research. as far as i tested, it seems to work, but unfortunately not as a plugin. i chaged some things in the wp-signup.php to get it work (if you now regsiter on subdomain blog you become a subscriber only for this blog).
    1. you have to uncomment line 25 to 28 like this:
    /*if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
    wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
    die();
    }*/

    i realy don´t have a clue, whether there are sideeffects. i think the lines a realy useless.
    2. some changes to line 280
    was:wpmu_signup_user($user_name, $user_email, apply_filters( "add_signup_meta", array('') ) );
    now:wpmu_signup_user($user_name, $user_email, apply_filters( "add_signup_meta", array( 'add_to_blog' => $blog_id, 'new_role' => 'subscriber' ) ) );

  17. KarlMurx
    Member
    Posted 3 months ago #

    Hi,
    I tried katomas patch. It did not work at first. I am using WPMU 2.8.3 with subdirs. I had to add global $blog_id; into the function validate_user_signup().

    function validate_user_signup() {
           global $blog_id;
  18. parkstreet
    Member
    Posted 3 months ago #

    I am in the process of bringing Nathan's plugin up to speed. If anyone is interested in testing the plugin, please contact me through my contact form. (Note: do not test this plugin on a production environment nor with a buddypress install.)

  19. parkstreet
    Member
    Posted 2 months ago #

    A new plugin has been released that resolves this issue.

  20. JVoss
    Member
    Posted 2 months ago #

    I've installed the WPMU Blog Registrations plugin mentioned above to enable registration for child blogs, but I'm also using BuddyPress. I've created a bunch of custom registration fields using Buddypress, but they aren't incorporated in the child blog registration pages.

    Clicking on "Register" in the parent blog goes to "blog.org/wp-signup.php", which includes all my buddypress fields. But "Register" on the child blogs goes to "child.blog.org/wp-login.php?action=register", which is just the standard wordpress registration page with username and email fields only.

    Any ideas about how I could include Buddypress in these child registration pages?

  21. parkstreet
    Member
    Posted 2 months ago #

    This plugin is not pulling in the standard WP signup form; this plugin includes its own signup form, so you will need to edit it to include your extra BP fields. Not sure if the solution will work, but at least you will have a better understanding of how the plugin works.

  22. uscommonsense
    Member
    Posted 1 month ago #

    parkstreet,

    I think I am doing something wrong with the Blog Registration plug-in. When I do a test-run at registering for a members' blog, I am bounced to the main blog site's registration page. When I key in a test account, nothing happens. Did you have any experience like this?

  23. uscommonsense
    Member
    Posted 1 month ago #

    Never mind, I got it to work. Must have been an issue when I uploaded the file the first time.

    Thanks for your help, parkstreet.

  24. parkstreet
    Member
    Posted 1 month ago #

    @uscommonsense, that usually happens when you are using the wrong url. You have to make sure that the right url is being accessed, otherwise it will take you to the main registration page.

Reply

You must log in to post.

About this Topic