Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-17T14:17:18-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15872 2011-11-17T14:17:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=53345#p53345 <![CDATA[Re: Disabling Open Registration not working]]> Statistics: Posted by bigonroad — November 17th, 2011, 2:17 pm


]]>
2011-11-17T01:40:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=53281#p53281 <![CDATA[Re: Disabling Open Registration not working]]>
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:
<?php
add_action 
("wp", "my_s2_hacks", 1); function my_s2_hacks ()
    {
        /* Standard WordPress installs. */
        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) /* Redirect to Membership Options Page. */
                    wp_redirect(S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL) . exit ();
            }
        /* For Multisite Networks. */
        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) /* Redirect to Membership Options Page. */
                    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.

Statistics: Posted by Jason Caldwell — November 17th, 2011, 1:40 am


]]>
2011-11-16T18:13:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=53257#p53257 <![CDATA[Re: Disabling Open Registration not working]]>
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".

Statistics: Posted by sgtcory — November 16th, 2011, 6:13 pm


]]>
2011-11-15T15:58:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=53095#p53095 <![CDATA[Re: Disabling Open Registration not working]]> Statistics: Posted by bigonroad — November 15th, 2011, 3:58 pm


]]>
2011-11-15T13:54:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=53059#p53059 <![CDATA[Re: Disabling Open Registration not working]]> Statistics: Posted by Cristián Lávaque — November 15th, 2011, 1:54 pm


]]>
2011-11-15T04:17:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=53025#p53025 <![CDATA[Re: Disabling Open Registration not working]]>
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?

Statistics: Posted by bigonroad — November 15th, 2011, 4:17 am


]]>
2011-11-15T02:11:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=53007#p53007 <![CDATA[Re: Disabling Open Registration not working]]>
What s2Member and BuddyPress versions are you using?

Statistics: Posted by Cristián Lávaque — November 15th, 2011, 2:11 am


]]>
2011-11-14T09:16:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52954#p52954 <![CDATA[Re: Disabling Open Registration not working]]> 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".

Statistics: Posted by bigonroad — November 14th, 2011, 9:16 am


]]>
2011-11-12T15:20:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52886#p52886 <![CDATA[Re: Disabling Open Registration not working]]>
I'm glad it's fine now. :)

Statistics: Posted by Cristián Lávaque — November 12th, 2011, 3:20 pm


]]>
2011-11-12T05:06:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52870#p52870 <![CDATA[Re: Disabling Open Registration not working]]>
Weirdly, that's changed since yesterday, without me changing anything - it was just showing the normal registration form.

Weird!

Statistics: Posted by bigonroad — November 12th, 2011, 5:06 am


]]>
2011-11-12T03:16:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52859#p52859 <![CDATA[Re: Disabling Open Registration not working]]> /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?

Statistics: Posted by Cristián Lávaque — November 12th, 2011, 3:16 am


]]>
2011-11-11T12:10:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52802#p52802 <![CDATA[Re: Disabling Open Registration not working]]>
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"?

Statistics: Posted by bigonroad — November 11th, 2011, 12:10 pm


]]>
2011-11-11T11:51:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52796#p52796 <![CDATA[Re: Disabling Open Registration not working]]>
I don't want a customised membership form, I just don't want it visible when open registration is turned off.

Statistics: Posted by bigonroad — November 11th, 2011, 11:51 am


]]>
2011-11-11T11:48:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52794#p52794 <![CDATA[Re: Disabling Open Registration not working]]> Statistics: Posted by Eduan — November 11th, 2011, 11:48 am


]]>
2011-11-11T11:41:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52792#p52792 <![CDATA[Re: Disabling Open Registration not working]]>
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.

Statistics: Posted by bigonroad — November 11th, 2011, 11:41 am


]]>
2011-11-11T11:32:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52790#p52790 <![CDATA[Re: Disabling Open Registration not working]]> Statistics: Posted by Eduan — November 11th, 2011, 11:32 am


]]>
2011-11-11T11:15:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15872&p=52783#p52783 <![CDATA[Disabling Open Registration not working]]>
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

Statistics: Posted by bigonroad — November 11th, 2011, 11:15 am


]]>