Page 1 of 1
Disabling Open Registration not working

Posted:
November 11th, 2011, 11:15 am
by bigonroad
Hey.
I'm using BuddyPress and WP (and s2member, obviously)
However, when I visit
http://exploringfoodandwine.com/register/, open registration appears to be available, even though I have this turned off.
What setting do I need to change?
Bless,
Chris
Re: Disabling Open Registration not working

Posted:
November 11th, 2011, 11:32 am
by Eduan
Are you using the pro-forms? These are independent of the default WordPress registration process.
Re: Disabling Open Registration not working

Posted:
November 11th, 2011, 11:41 am
by bigonroad
Really sorry, I'm a newbie, and don't know what they are.
I know that last time I installed s2member, when I set open registration to closed, trying to visit "/register" redirected you to a "become a member" page that you could select.
Now I can't find any options for how to do this.
Re: Disabling Open Registration not working

Posted:
November 11th, 2011, 11:48 am
by Eduan
Have you got s2Member Pro installed?
Re: Disabling Open Registration not working

Posted:
November 11th, 2011, 11:51 am
by bigonroad
Nope, just testing out the free one. If we can get it working, then we'll upgrade, but we've not had much luck with membership plugins yet, so hesitant to spend money.
I don't want a customised membership form, I just don't want it visible when open registration is turned off.
Re: Disabling Open Registration not working

Posted:
November 11th, 2011, 12:10 pm
by bigonroad
Seriously, plugin seems fine, except the register page is accessible to everyone. This slightly defeats the purpose of a paid registration service.
Visit
http://exploringfoodandwine.com and you can see that the link on the right to the registration page is still working. How do I redirect people from this to the "Become a Member Page"?
Re: Disabling Open Registration not working

Posted:
November 12th, 2011, 3:16 am
by Cristián Lávaque
Chris, /register/ gives me the message "User registration is currently not allowed." And I couldn't find a registartion link in the home page.
I'm guessing you solved this already. What was the problem?
Re: Disabling Open Registration not working

Posted:
November 12th, 2011, 5:06 am
by bigonroad
Hey. Thanks for that.
Weirdly, that's changed since yesterday, without me changing anything - it was just showing the normal registration form.
Weird!
Re: Disabling Open Registration not working

Posted:
November 12th, 2011, 3:20 pm
by Cristián Lávaque
lol yeah, weird! Oh well, sometimes happens, oddly. Could also be a caching thing.
I'm glad it's fine now.

Re: Disabling Open Registration not working

Posted:
November 14th, 2011, 9:16 am
by bigonroad
Yeh, its erratically done this again: On IE and Chrome I can't access
http://exploringfoodandwine.com/register/, but on Firefox I can see the registration form, even when I empty the cache, etc.
Any ideas? I'd also rather that it forwarded you to the "Join the Community" page than just saying "Sorry, registration is currently closed".
Re: Disabling Open Registration not working

Posted:
November 15th, 2011, 2:11 am
by Cristián Lávaque
Hmm... When I go there I get "User registration is currently not allowed."
What s2Member and BuddyPress versions are you using?
Re: Disabling Open Registration not working

Posted:
November 15th, 2011, 4:17 am
by bigonroad
I'm using latest versions of both buddypress and s2member (and wordpress)
Have you tried it in a few browsers? Very weird it shows the registration page in firefox alone.
It just shows a blank page on filling in the registration form, but that is the result I am having after payment also - as in my other thread
http://www.primothemes.com/forums/viewtopic.php?f=4&t=15863&p=53024#p53024.
I'm really confused by what is causing this!
PS. Any way to change the "User registration is currently not allowed." to forward to the join the community page?
Re: Disabling Open Registration not working

Posted:
November 15th, 2011, 1:54 pm
by Cristián Lávaque
I emailed Jason asking him how that could be customized or redirected.
Re: Disabling Open Registration not working

Posted:
November 15th, 2011, 3:58 pm
by bigonroad
Thanks for that. Any ideas as to a cause for the open registration glitch in firefox?
Re: Disabling Open Registration not working

Posted:
November 16th, 2011, 6:13 pm
by sgtcory
Hello -
Maybe I missed something - but if you are logged in as admin, and you go to your registration page - you will always see the registration form. (Could be a cookies issue. You said you cleared the cache - but also Logut and clear your cookies.) In all browsers you mentioned - I am seeing "User registration is currently not allowed".
Re: Disabling Open Registration not working

Posted:
November 17th, 2011, 1:40 am
by Jason Caldwell
Cristián Lávaque wrote:I emailed Jason asking him how that could be customized or redirected.
You might try something like this.
Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )- Code: Select all
<?php
add_action ("wp", "my_s2_hacks", 1); function my_s2_hacks ()
{
if (!is_multisite () && bp_is_register_page () && !get_option ("users_can_register"))
{
$paid_for_registration = c_ws_plugin__s2member_register_access::reg_cookies_ok ();
if ($paid_for_registration == false) wp_redirect(S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL) . exit ();
}
if (is_multisite () && bp_is_register_page () && get_site_option ("registration") === "none")
{
$paid_for_registration = c_ws_plugin__s2member_register_access::reg_cookies_ok ();
if ($paid_for_registration == false) wp_redirect(S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL) . exit ();
}
}
?>
* Note. This really shouldn't be required in most cases though. BuddyPress/WordPress/s2Member should not be introducing a registration page to anyone who does not have access to it. The message you see on that /register page for BuddyPress, is placed there by BuddyPress, only in case someone makes an attempt to reach the page by typing in the URL directly, perhaps. If your theme introduces this page to someone who is not allowed to register, something is wrong. Either the theme is not running conditionals to test if the User is allowed to register, or you have a plugin conflict somewhere.
Re: Disabling Open Registration not working

Posted:
November 17th, 2011, 2:17 pm
by bigonroad
I emptied the entire Firefox history, and FF stopped showing the link to the registration page, so that's a win. Thanks guys. I'll leave the message as is, because as you say, no one should be seeing that page unless they type it directly.