PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Disabling Open Registration not working

s2Member Plugin. A Membership plugin for WordPress®.

Disabling Open Registration not working

Postby bigonroad » November 11th, 2011, 11:15 am

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
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011

Re: Disabling Open Registration not working

Postby Eduan » November 11th, 2011, 11:32 am

Are you using the pro-forms? These are independent of the default WordPress registration process.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Disabling Open Registration not working

Postby bigonroad » November 11th, 2011, 11:41 am

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.
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011

Re: Disabling Open Registration not working

Postby Eduan » November 11th, 2011, 11:48 am

Have you got s2Member Pro installed?
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Disabling Open Registration not working

Postby bigonroad » November 11th, 2011, 11:51 am

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.
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011

Re: Disabling Open Registration not working

Postby bigonroad » November 11th, 2011, 12:10 pm

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"?
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011

Re: Disabling Open Registration not working

Postby Cristián Lávaque » November 12th, 2011, 3:16 am

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?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Disabling Open Registration not working

Postby bigonroad » November 12th, 2011, 5:06 am

Hey. Thanks for that.

Weirdly, that's changed since yesterday, without me changing anything - it was just showing the normal registration form.

Weird!
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011

Re: Disabling Open Registration not working

Postby Cristián Lávaque » November 12th, 2011, 3:20 pm

lol yeah, weird! Oh well, sometimes happens, oddly. Could also be a caching thing.

I'm glad it's fine now. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Disabling Open Registration not working

Postby bigonroad » November 14th, 2011, 9:16 am

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".
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011

Re: Disabling Open Registration not working

Postby Cristián Lávaque » November 15th, 2011, 2:11 am

Hmm... When I go there I get "User registration is currently not allowed."

What s2Member and BuddyPress versions are you using?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Disabling Open Registration not working

Postby bigonroad » November 15th, 2011, 4:17 am

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?
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011

Re: Disabling Open Registration not working

Postby Cristián Lávaque » November 15th, 2011, 1:54 pm

I emailed Jason asking him how that could be customized or redirected.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Disabling Open Registration not working

Postby bigonroad » November 15th, 2011, 3:58 pm

Thanks for that. Any ideas as to a cause for the open registration glitch in firefox?
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011

Re: Disabling Open Registration not working

Postby sgtcory » November 16th, 2011, 6:13 pm

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".
Webmaster Services - http://rentedweb.com
User avatar
sgtcory
Experienced User
Experienced User
 
Posts: 24
Joined: May 28, 2011

Re: Disabling Open Registration not working

Postby Jason Caldwell » November 17th, 2011, 1:40 am

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 ()
    {
        /* 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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Disabling Open Registration not working

Postby bigonroad » November 17th, 2011, 2:17 pm

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.
User avatar
bigonroad
Registered User
Registered User
 
Posts: 18
Joined: November 10, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron