• Resolved TechGasp

    (@techgasp)


    Hello people,

    I’m trying to check the originating blog_id in wordpress network mode after redirection to wp-signup.php page.

    Can’t figure out where the originating blog_id is stored. When blog_id is called from wp-signups.php it always returns 1. The main blog.

    Trying to implement registration validations that are stored in each blog options table. Without correct blog_id these validations fail.

    The signups table (meta field) before user activation is empty. Sorry if I’m saying something silly but I get the impression that the blog_id is stored in the activation key and it’s the key that assigns the user to the correct blog ??

    Can a guru advise?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Why are you trying to grab that information?

    I ended up writing https://www.ads-software.com/plugins/join-my-multisite/ to handle something similar to that, which lets people sign up per-site.

    Thread Starter TechGasp

    (@techgasp)

    Like I said, individual validations that get stored in each site options.

    Mika, are users currently assigned to all sites? How is the restriction being done? Because signups table shows correct meta after activation.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Like I said, individual validations that get stored in each site options.

    Yeah but that doesn’t make sense ??

    You don’t store user information in site options, see. That goes into wp_usermeta.

    So here’s how users are added to WordPress Multisite.

    1) User registers to the network and someone adds the user to a site.

    2) Someone invites a user to a specific site on the network.

    Trying to implement registration validations that are stored in each blog options table. Without correct blog_id these validations fail.

    What are you trying to validate. Given that users are not added to specific sites unless you use a plugin, it would help if you could explain that.

    Thread Starter TechGasp

    (@techgasp)

    They aren’t really user validations. But I see the point since it’s done during registration. Example honeypot, recaptcha keys, etc. They are individual to each site.

    Note… The “guru” is answering with questions ??
    1) User registers to the network
    Hold on. Link activation adds the user to the correct blog…right?
    “and someone adds the user to a site”
    Can’t be that pre-historic ?? can it ??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Example honeypot, recaptcha keys, etc. They are individual to each site.

    AHHH! No. Or at least they shouldn’t be. Those should be network settings.

    A honeypot would be global for all registrations on all sites ?? Ditto recaptch.

    Link activation adds the user to the correct blog…right?

    Nope. If a user registers themselves to the network, they are not added to any site.

    Thread Starter TechGasp

    (@techgasp)

    I see. Thanks for the clarification.

    Will take a look at your join-my-multisite.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wp-signup.php blog_id’ is closed to new replies.