@jason,
That’s the way things work on non-Multisite installs. The address entered is checked against the Subscribe2 is_registered() function.
I guess I need to find a way to extend that core function to work on Multisite. Curretnly the SQL is:
SELECT user_email FROM $wpdb->users WHERE user_email=%s
I take it that doesn’t work?
Heya,
When I try signing up from the front-end widget form, I’m not signed up, but instead get a message that says: “To manage your subscription options please login.”
However, when an administrator adds an email address from the dashboard (Add/Remove Subscribers), the email address is just added as a Public subscriber, regardless of if they exist on the network.
Regarding your code, I believe that should properly evaluate whether or not someone has an account on the network, but you’d probably also want some logic after getting a true result of that…
if (!is_user_member_of_blog(x,x)) {
add_user_to_blog(x,x, ‘subscriber’);
}
Function References:
http://codex.ww.wp.xz.cn/Function_Reference/is_user_member_of_blog
http://codex.ww.wp.xz.cn/WPMU_Functions/add_user_to_blog
@jason,
Looks like I just need to do some more checking on the admin pages similar to the front end code.
@jason,
I’m wondering if adding an already registered address there should fail with an error message for the user. It is on the Public Subscribers tab after all. What happens in Multisite if you add a user in the Registered Users tab?
>> What happens in Multisite if you add a user in the Registered Users tab?
Well, the Registered Users tab just has a link to the standard Add User interface for WordPress.
>> I’m wondering if adding an already registered address there should fail with an error message for the user.
That’s certainly another possibility, but it just doesn’t seem correct to me. I clearly wanted to add that person to get email updates. Why NOT add them as a standard Subscriber?
Anyway, these are just ideas and opinions based on what I observed as behavior that struck me as odd. Whatever you decide to do – if anything – isn’t likely to be a huge deal. Thanks for looking at it and thinking about it.
@jason,
Hmm, I’ve been pondering while hacking up some new code. I have a WordPress.com account and I don’t think I’d be happy if another blogger on there could (in theory if this feature existed AND WP.com used Subscribe2) add me as a registered user and subscriber to their blog knowing just my account name or email address. At least if it gets added via the Public route I would get an email for confirmation.
The more I think about it the more I feel that a rejection or adding as Public is the right thing to do.