WordPress.org

Ready to get started?Download WordPress

Forums

reservations per subdirectories (4 posts)

  1. teac3396
    Member
    Posted 1 year ago #

    First off, I am a complete noob and know very little about code....so please remember that when you respond...thanks...lol.

    My question follows:
    I am starting an education focused multisite. I choose sub directories and not subdomains. I want my subsite admins to allow for private registrations on their site. I want the new users to only be registered on the subsite the registered on. I don't want them to be part of every subsite nor do I need them to be registered users on my main site. Many sites will have parents and students registering per class and/or per school district. I can not have the parents of one class or school district showing up as a user on another school district subsite. This would be a big privacy issue and not to mention illegal.
    Basically, how do I allow my subsite admins to accept registrations to their own site without being connected to any other subsite? Did I miss something during setup?
    I have run a test to register a mock user on one of my subsites and it just allows my mock user to use my main site and not the subsite that I registered registered on during the test. Do I need to move to subdomains? I looked for plugins and the only one that looks like it will allow for this is Multisite User Registration Manager. However, that requires my users to create a page with a shortcode on it. I am thinking that this would be fine with a tutorial but I am still sure that I will have to help the unsavy ones. This could be very time consuming for all involved. Is there plugin that will keep registrations attached to the site of registration and that will allow me to choose turn it on for some sites while turn off for others?

    Thanks for your help in advance.

  2. The problem with Multisite, in this situation, is that all users are added to the network. This means if you added me to, say, school123, I would have 'subscriber' access to all other schools.

    Now as a workaround, you could use membership plugins, which can be configured per site, and they can restrict access further.

    Basically, how do I allow my subsite admins to accept registrations to their own site without being connected to any other subsite?

    That isn't built in. Adding in users (that is your admins sending invites to users, and adding them that way) is, but for people to register per-site, as you describe, takes something like this: http://halfelf.org/2012/multisite-registration/

    In your case, you may want a more loose methodology for the last if blogID section, and just say that whatever blog they land on, that's the one they get added to:

    <?php
    global $blog_id;
    
      function helf_activate_user( $user_id, $password, $meta )
      {add_user_to_blog( $blog_id, $user_id, get_site_option( 'default_user_role', 'subscriber' ) );}
      add_action( 'wpmu_activate_user', 'helf_activate_user', 10, 3 );
    }
    ?>

    (The above was untested!)

  3. teac3396
    Member
    Posted 1 year ago #

    Thanks Mika. I have read many a post with you in the mix...you must be one heck of a WP ninja. I really don't get the code stuff buddy...God, I wish I did but with a new family running around the house... at the same time trying to teaching myself html,css,php...well, let's just say things are going slow...

    So, how do I get you to create a multisite plugin to do this for me.....????? If it is reasonably priced, I would love to talk cash. You could find some nice donations on the half-elf site...whata ya think...help a noob out...think of the students...
    Just kind of joking here...but really are you interested in making a plugin for this..I would guess that I wouldn't be the only noob interested in it that wouldn't mind paying for it. Let me know.

    (BTW: not sure if I broke a rule by mentioning money on the forums...I hope I didn't...ooops)

  4. Hiring folks here is contrary ;) We have http://jobs.wordpress.net for that and, at this time, I'm not for hire (I will eventually sort out if I can be, but that wouldn't be till November at this rate).

Topic Closed

This topic has been closed to new replies.

About this Topic