Page 1 of 1

Not Allowing Open Registration Allows Open Registration?

PostPosted: January 8th, 2012, 12:52 pm
by bradjbarton
I have set the Allow Open Registration parameter to NO.

Image

However, the login page shows a link to the registration page -

Image

When that register link is clicked, it brings up a registration page -

Image

When someone fills out that registration page, it allows registration at level 0. What other things may be affecting this, so I can eliminate open registration?

Re: Not Allowing Open Registration Allows Open Registration?

PostPosted: January 8th, 2012, 11:38 pm
by dreamscape
Amen. I need to know what file to go in and remark this link out because installation is doing the same thing. I want to offer a Login link on the homepage for members only, but be able to send folks to the registration page after they've paid.
Please advise!

Re: Not Allowing Open Registration Allows Open Registration?

PostPosted: January 9th, 2012, 11:02 pm
by Raam Dev
When Open Registration is set to No, you should not see the Register link (s2Member removes it).

Also, attempting to access the Registration page should result in a message that says "User registration is currently not allowed".

Screen shot 2012-01-09 at 23.01.20 .png
Screen shot 2012-01-09 at 23.01.20 .png (64.11 KiB) Viewed 142 times


If that's not what you're seeing, I recommend disabling all your plugins except s2Member to see if there's a conflicting plugin that is causing issues.

Also, if you've used an s2-hacks.php file to make any modifications to s2Member, please post those here so we can look at them.

Finally, I suggest deactivating s2Member and then reactivating it. Be sure to enable Deactivation Safeguards before doing this so that all your current settings are saved (WP Admin -> s2Member -> General Options -> Deactivation Safeguards).

Re: Not Allowing Open Registration Allows Open Registration?

PostPosted: January 9th, 2012, 11:27 pm
by dreamscape
Thank you, Raam! However, I still want people to register on their own, but through from the s2Member 'thank you' page; not through a Register link at the bottom of the login panel. If they arrive at the 'thank you' page, it's presumed they've paid for the membership. If they register through the login panel, they end up gaining Level 0 access which is not a level I plan to use right now.

I did find the following: http://wordpress.org/support/topic/disa ... gistration , however it looks like you have to hack at the WordPress login script every time you run an upgrade. Since WordPress upgrades.. what.. every week? This is impractical.

Finally, I found a plugin that may have done the trick. It's called 'simple-login' and can be found here: http://wordpress.org/extend/plugins/sim ... her_notes/ . It is showing me my login panel just as I had configured it, sans the Register link. I'll roll with this for now.

Thank you!
Matt

Re: Not Allowing Open Registration Allows Open Registration?

PostPosted: January 9th, 2012, 11:36 pm
by Raam Dev
Thanks for the update, Matt, and for sharing those plugins! Glad you found a solution. :)

Re: Not Allowing Open Registration Allows Open Registration?

PostPosted: January 9th, 2012, 11:51 pm
by bradjbarton
Well, I'm not sure I want an additional plugin to do something that s2Member is doing already.

Instead, I just figured out that I'm an idiot. I normally use Firefox, but working on a separate issue I also had IE open, so I could login with my level 1 test account without logging out as admin in Firefox. When I logged out of the test account in IE I noticed that it did not have the Register link that I showed you above. Further more, when I copied and pasted the the Register URL into the address bar it showed the message that Raam said it would show.

So, I logged out as an admin in my Firefox browser, and guess what, the Register link is not there on the login page. It appears that the only reason that we could see the Register link is because we were logged in as an admin while we were looking at the login and registration pages. Thanks Raam.

Re: Not Allowing Open Registration Allows Open Registration?

PostPosted: January 10th, 2012, 9:21 am
by dreamscape
pfft.. bradjbarton, you're absolutely RIGHT! Logged out of WordPress, refreshed the login panel and sure enough, the Register link went away. Uninstalling that unnecessary plugin right now. GOOD CATCH!

Re: Not Allowing Open Registration Allows Open Registration?

PostPosted: January 11th, 2012, 12:01 pm
by Raam Dev
Haha :) Good catch! Glad you figured it out.