I activated the plugin and went to test it and it didn’t block my post?
Make sure you log out of the admin before you test. If you are logged in as admin, you will be able to click through to view the post. (To know if you are logged in, we suggest using the WP-Members login widget, included in the installation. However, you must have the widgets plugin and a widget enabled theme to use this feature.)
Also, for posts, be sure you are using the `<!–more–>` tag. The blocking only takes place on single posts. Without this tag, a full post would display on your home page or on an archive/category page.
Check your settings for both posts and pages. The default installation is to block posts by default but not pages.
How can I show the login status on the sidebar?
If your theme is widget enabled, activate the widgets plugin, then add the WP-Members widget to your sidebar. If you do not have widgets, you can call the function by adding this to your sidebar:
<?php wpmem_inc_sidebar(); ?>I’m really only using this to add user fields and have the login integrated into the site. I would rather that posts be unblocked by default. How do I do that?
WP-Members gives you the ability to change the settings for how the plugin blocks content. The default setting is to block posts and allow individual posts to be set to unblock at the post level. You can change this setting so that all posts will be viewable by default. If you then have a post that you want blocked to registered members only, you can set the post to block at the post level.
How do I block (or unblock) an individual post (or page)?
If you are using the default settings (as mentioned above), and you have a post that you want to be unblocked (viewable by any user, not just logged in users), on the Edit Post page add a Custom Field with the name “unblock” and set the value to “true” or “1” (either will work). This post will be now be viewable by anyone. If you have set WP-Members to unblock by default and you want to block an individual post, use a Custom Field with the name “block” and set the value to “true” or “1”. Important: custom fields are case-sensitive! Be certain that you use all lowercase or it will not work.
How to I change the registration fields that are used and which ones are required?
These settings can be managed on the WP-Members admin panel found under Settings > WP-Members
Where do I find the users registration information?
WP-Members was designed to fully integrate with WordPress to allow maximum compatibility not only with WP, but also with other plugins that rely on WP user registration information, such as discussion forums, email newsletters, etc. The user information is in the main WP users page under Users > Users, then click “Edit” under an individual user. Any non-native WP fields (WP-Members custom fields) are added to the bottom of this page and are fully editable. (Note: if you don’t have any registered users yet, i.e. a clean install, these fields will not display until there is data in them.)
New in 2.5: There is now a WP-Members bulk user edit panel where you can see a list of users, view key details such as email, phone, and country, as well as do bulk activations and exports. This is found under the WP Users menu: Users > WP-Members. For bulk user export, WP-Members keeps track of users that are exported so that you don’t have to export the full user list just to get a few new subscribers, but you can also export the full list.
Users are not being emailed their passwords, what is wrong?
WP-Members uses the native WP function wp_mail to email passwords. This is the same function the WP uses if you are using the WP registration process. If it’s not configured properly or for some other reason not working, neither will WP-Members’ registration process.
You can test this process by creating a new user via the WP admin panel. Go to Users > Add New in the menu and create a new user. Make sure when you do this “Send this password to the new user by email” is checked. If you do not get an email, then wp_mail is not working. If that is the case, you are probably going to have to do some troubleshooting to fix it. Try the WP support forums for this: http://wordpress.org/tags/wp_mail
Can I change the email address that messages are mailed from?
Most people are unaware that WP-Members uses the native function wp_mail, and that wp_mail sends messages from wordpress@mydomain.com. But it is easy to override this. You can do it with a couple of filters added to your functions.php file or you can do it with a plugin.
Can I customize the way the login and registration forms look?
Yes! You can specify a custom style sheet for the default login and registration forms. These forms are tabless and customizable using CSS.
CSS can be applied to the legacy forms, but must be applied via an outside stylesheet (such as your theme), and since the forms are table-based, the customization options are limited.
The login and registration fields overlap my theme pages. How can I fix that?
WP-Members includes a default stylesheet that was developed using the (formerly) default TwentyTen theme. Depending on the theme you are using, this may not fit your theme right out of the box. But the forms have been developed to be very flexible by relying on CSS for their layout (see above). If you have issues of overlap or other issues with the form layout, these are addressed by customizing the CSS.
Can I customize the plugin?
It is not recommended to make direct code changes as they would need to be reimplemented in the event of a plugin upgrade.
I only want the login form to show in place of protected content and have a separate registration page. How can I do that?
If you turn off the registration in the plugin options, the registration form will not show on protected content posts/pages or the members area. Specify a registration page following the plugin instructions and set this page’s location in the plugin settings.
I need customized registration fields. How can I add/subtract fields?
The registration fields used by the plugin are stored in an array in the WP options table. NEW in version 2.6: New text, text area, and checkbox fields can be added in the Fields admin panel in the plugin’s settings menu. Alternatively, a description of how to customize the fields programmatically is available in this post.
Kim says
I am signed in to WP as admin. and I cannot access Settings for this plugin. I was able to do so a week ago, but now says I have insufficient privileges. Please help!
Chad says
There is a fix for this posted here…
Dino says
In several places in the instructions, it is mentioned that users can reset their pasword if forgotten. I know I can allow this functioin by creating a members settings page. OK, I created a seperate page for this, but now what? How do I get the features and fields for them to reset their password?
I cannot find anything in the plugin that creates the necessary functions for members to reset their forgotton passwords. Please advise.
Chad says
Dino – if you have created the members settings page, that’s all you need to do. There are no additional settings or functions necessary.
If you set the page up properly (created a page, used the members area shortcode), if a user who is not logged in goes to that page, they will see “forgot password?” under the login. Clicking that to the appropriate dialog for resetting a forgotten password.
If you added the url to the members area page in the WP-Members settings, then the “forgot password?” link will show in all login dialogs and clicking that link will take the user directly to the password reset process.
Dino says
Thanks for the quick response. I tested the reset password link and it just took me to the page I had set up for member settings with nothing in it. Perhaps I didn’t set up the page properly. I’ll start the process over again from scratch to see if I missed a step.
Chad says
If you are blocking pages by default, it is probably necessary to unblock the members area page.
Dino says
Chad:
I don’t know what I’m doing wrong…
1. I created a page called Members. It’s the only page of my site I have blocked so in the custom field section I used “block” –> “true.” The page comes out fine with all the fields to register, just as I set it up with the plugin.
2. I created a second page called Member Settings (Members is the parent of Member Settings). This is where I want my info for lost/reset password. There is a link on the Members page right below the login button that says: Forgot Password? Click here to reset. I click on that link and it takes me to the Member Settings page. So far, so good.
3. On that page, however, is no information for the member to reset their password. Since I have not put anything on that page yet, all I see is a blog comment box.
4. I’m a little confused by the shortcode so I tried putting it in the body of Members and it did nothing. I then put it in the body of Member Settings and I got nothing.
Shortcode I used: [wp-members page=”register”]
What am I missing?
Dino
Dino says
None of my pages are blocked except for the members page. I’ve tried blocking it and unblocking it. Still the same result.
Chad says
You are using the wrong shortcode. The register shortcode creates a registration page and registration page only. If you want a page the handles forgotten passwords, user information update, and ability for a registered user to change their password, you need to use the members area shortcode.
Also, if you block this members area/settings page, it will not work correctly. Blocked content will be replaced with the login form and the registration form (if turned on), so it will appear to be functioning. But if it is blocked, the other functions of the page will not work correctly.
Robert says
Hello,
I made a couple of posts at the end of August on the “protecting pages” page of your site but haven’t seen a response yet. Could you look into it and give me some insight please? Basically, I want people to be able to log out from each page but I can’t add the ‘login’ shortcode to a page without it showing my content. I’ve checked all the settings and everything according to your site. Please help.
Robert
Chad says
Robert – I’ve posted a response to your questions. Take a look over there, and direct any followup to that thread.
Wlodek says
Hello Chad. I am having problem blocking pages using the WP-members plugin.
– I selected: Block Posts by default;
– I unselected: Show excerpts by default;
– Just to make sure I added custom field: block value: true
I am working locally using MAMP. Is that possibly causing some conflicts?
Thanks.
Ben says
Hey Chad,
Hope your doing awesome!
Just a quick question or two. It is no longer e-mailing me with a new user registration for me to approve and also the reset password does not seem to work properly as the page where you enter username and e-mail to reset it just refreshes on form submit
Chad says
MAMP wouldn’t cause any problems. If you want to block pages, you need set to block Pages by default (the plugin installs with this turned off)
Chad says
For the email, you might want to make sure wp_mail is functioning properly. Best way is to use the WP admin panel to create a new user and select to email the password. If you don’t receive that, wp_mail is not functioning. The new user registration uses wp_mail to send, so you need to verify that is working first.
For the password reset, it could be a permalink issue. Are you using default permalinks? You might try just refreshing the permalink setting by going to Settings > Permalinks and not changing anything click Save Changes. Also, if you have set to block pages by default, you need to make sure the members area page is unblocked.
Ben says
The e-mail is being received fine when I create a new user manually and when somebody registers and I approve them. Its just that I don’t get the e-mail telling me that a new user has registered.
With the reset password its on the page /?a=pwdreset and then when I submit the reset password form it just refreshed the page and goes to /
I am using the same permalinks as I have always done which is a post name structure.
Both of these have never been an issue and have worked fine until recently so they have been working fine until now
Ben says
I have managed to sort the reset password by deleting and re installing the plugin. Still no e-mail with new registration, can’t seem to figure it out.
Chad says
I’ll look into this as I have one other user reporting a similar problem. Nothing has changed in that area of the code – but ya never now. I’ll review this evening.
charles loflin says
Great plugin!
If I read correctly, the plugin has not been tested for WordPress Multi-site. I of course, am running multi-site (with sub-directories as opposed to sub-domains). So, far everything is working great, except for one issue I’ve found. If I enabled the sidebar widget, logging in to one of the sub blogs (i.e. mydomain.com/blogs/subblog) actually redirects me to the main blog (i.e. mydomain.com/blogs). So, my question is do you have any plans at the moment of tackling multi-site functionality? BTW, I’ve created a workaround by creating a custom menu that contains links to the login, register, and settings functionality (which works). The only drawback is I don’t get the login form in the sidebar which is quite elegant and incidentally one of the huge benefits of the plugin, imho.
I completely understand if this isn’t on the radar. As a freelance developer, I know how valuable your limited time can be. Before I roll up my own php sleeves, I just wanted to check to see if this was on the roadmap.
Thanks!
charles loflin says
Hi Chad,
I may have found a solution.
I modified one line in wp-members-sidebar.php.
Around line 74 in the is_home() function, your code reads:
$post_to = $_SERVER[‘PHP_SELF’];
by changing that to:
$post_to = site_url();
You may know better than me if this is a safe change, but it does solve my problem, for now.
Chad says
Unfortunately, that particular code had been site_url in previous versions, but it caused problems for quite a number of users, so that is why it was changed to what it is now.
Chad says
Charles – thanks for your comments and questions. I would say that if the primary problem is the sidebar login, it might be advantageous to develop a custom one for your purposes. If you approach this from doing a hack, fix, or some other workaround within the plugin code, you will need to reapply in the case of a plugin upgrade – and that’s not a good thing. But, the plugin is designed to work with the WP user construct. In otherwords, you are not restricted to using the sidebar widget included with the plugin. Any login that works with WP’s login scripts should work – including a custom developed option.
I probably will address multi-site at some point in the future, but at this point, it’s not feasible for a number of reasons. The plugin at its core predates the MU integration and there are a few legacy issues that would need to be addressed before it will fully integrate. But the good news is that I am continually rebuilding major chunks of the plugin as I move forward on various items on the project list, so at some point, I do envision more compatible integration.
I hope that gives you some ideas and is helpful.
Eric says
Hi
I’am testing wp-members and everything works great apart from one thing the members area. I’v tested it on two web sites on the same server. On the first one which is very classic it works fine. On the second one the members area shows just a blank content where the form (reset password or user information) should appear.
I first thought that the parameter ?a=pwdreset was not taken into account but it’s not the case because when I try to logout it works. And logout uses the same parameter : ?a=logout
There is an html table on this web site and content is included in a table. When you look at the source code everything is fine except the blank paragraph where you should normally see the reset password form (when you’re not logged in) or the user info when you’re logged in.
I am using the [wp-members page=”members-area”] shotcode. What should I do?
Thanks a lot
wawan says
how to create a registration page?
david says
I have some troubles! The plugin is working as opposite it should be.. I have change to not blocking by default but it is blocking every content WHILE not blocking the pages that I set to “true”
Any help please?
Eric says
I found the solution. The double quotes in the shortcode on the second web site were not correct…
Chad says
How about reading the instructions, the quick start guide, or the user guide.
Chad says
Glad you got it working Eric!
Chad says
I would say double check your settings – remembering that pages and posts are not the same and are handled independently. You have one default setting for posts and one for pages.
Andy says
I like the plug in. Wondering if you have a way to differentiate free from paid members and incorporate PayPal?
Chad says
There is a subscription/payment module in development, but I don’t know when I’ll have it completed. In the meantime, your option is basically doing a manual process.
timoto says
Well spotted Eric, I couldn’t figure out why the shortcode I had copied out of the manual would not work.
[wp-members page=”register”]
[wp-members page=”members-area”]
Both the above are copied out of the manual and should be:
[wp-members page=”register”]
[wp-members page=”members-area”]
Please update the manual if you have time Chad.
Cheers 🙂
Ben says
Hey,
Did you have any suggestions for me to try about my email?
Its still not notifying me when new users register who need approving. Thanks
S. Lohuis says
Hi,
I have installed and activated the plugin.
But when new members want to register, they only have to give the default email and password.
Why are the other fields not showing up on the registration page?
Kinds regards
Chad says
Did you follow the installation instructions or the Quick Start Guide?
Could you give me a link to an example?
Chad says
Sorry Ben, I did some significant checking on this and I have found nothing in the plugin that would prevent this particular email from being sent when wp_mail is otherwise working.
The good news is that the entire 2.7 project focuses on email (changes/updates/improvements/new features) so most of the mail functions are going to be completely overhauled and rebuilt, so this note is on the project list.
sergio says
Hi Chad, I have the reset password issue. I have read this faq, the Quick Guide and the Manual. I have set appropriately the value on fields Members Area URL and Register Page URL on the WP-Members setting page but the Reset Password Page not displayed when I click on the Forgot Password link. Link Logout on the members-page, also, does not log out the current user, just redisplays the same page. The same link LogOut on the widget in the side bar running fine. Why? You can help me ? I have the wp-members rel 2.6.2 Thanks.
Shena says
Hi, I love your plugin. I am stuck, and I am hoping you can help me. I like the login widget, however, I don’t want my subscribers to have access to the dashboard. How do I remove this option from the sidebar? I have everything else redirected so that my subscribers never see the WordPress dashboard. Thanks in advance for your help!
Chad says
You probably need to unblock the page. If you are blocking pages by default, this page needs to be unblocked. See the user manual or the above FAQs on how to unblock an individual page.
The members page does not generate a logout link in the body of the page. The link you are referring to is probably being generated by your comments template.
Chad says
The WP-Members widget does not direct users to the dashboard. It sounds like you are referring to the Meta widget that is included by default in WP. If that’s the case, just remove it from the sidebar.
sergio says
Hi Chad, thanks for your time, I have mistake, the page where is the link Logout is the login page, and that link not function.
The page is not block, I have check it now. Thanks.
sergio says
Hi Chad, I found the solution. The issue is on the permalink option. I have the permalink option setting on value Customized Structure and the value on field is “/%postname%” (without char “). With this value your plugin does not work properly but setting this value on “/index.php/%postname%” your plugin work fine. I hope that this information can help you to improve your plugin. Thank for your time and for your job.
S. Lohuis says
Yes I did.
To be sure, I deleted the plugin, uploaded the original (downloaded) folder, changed $chk_force to true and reinstalled (activated) the plugin.
But still no fields when you want to register.
url: http://www.studieverenigingkic.nl/wordpress/
Looking forward to a suggestion 🙂
Kinds regards
S. Lohuis says
Already done it, now having a registration form 🙂
Is it normal that not all fields are display’d in the profile(backand) page? And that the address is in the last name field, and lastname in the firstname field?
Also when I add a new user trough the wp-users admin page (where you also activate pending users) that not all fields are shown as on a user registration page?
Kinds regards
Chad says
If you installed it correctly, any field that you have selected in the plugin options will show on the user detail pages (not the same as “add new user”) and the correct field data will display in the correct field.
Extra fields will not display on the Add New User page in the admin, I have not found a way to hook the plugin into that page. If you add new users that way, additional data can be added once the user is created by going to the user detail page.
Chad says
Actually, a permalink setting of /%postname%/ will work fine if your web server is set up to handle mod_rewrite permalinks.
More info on setting up mod_rewrite and PATHINFO permalinks available here.
Efishinsea says
Hi Chad.
It is interesting that this is the last comment as I am curious as to the same thing. I believe what Shena was asking about is, when a user is logged in to their account, WordPress by default shows the “admin bar” across the top of the page, which as a “subscriber” they only have access to their profile/account, and to the “dashboard” (which in the case of a subscriber) only shows the stock WordPress RSS Feeds you see as an admin.
I think the solution we are after would be how to hide the “admin bar” options (which you see when logged into WordPress) and show only the wp-Members “Edit My Information” and “Change Password” forms instead. A second reason this would be important is if you have custom fields added, the WP Dashboard User Profile editor does not include these.
I’m not sure if there would be a way to disable the Dashboard view from users completely either by hiding it, or literally disallowing it and forcing them to use the wp-Members forms instead, but that would be ideal.
Thanks for your help.
Efishinsea says
as a follow-up..
I think if you could set the wp_usermeta value of ‘show_admin_bar_front’ to ‘false’ when new accounts are created, that might solve the issue. This would turn it off by default.
However, nothing (as of yet) would prevent this user from navigating to http://www.YOURWEBSITE.com/wp-admin/profile.php and seeing that page, which is an additional problem.
Chad says
Thanks for your comments.
Actually, having the plugin automatically set the admin bar off for new accounts is way to presumptive since it does not provide enough flexibility to the plugin’s users. A major philosophy of mine for this plugin to be as flexible as possible while still providing a wide range of options. With that in mind, it is far easier to simply add a filter to keep non-admins from having the admin bar. That way it is available to those that want their users to have it and those that don’t can turn it off.
I’ve had this question asked a few times recently, so I put together some info on how set this up easily.
Elen says
Hello Chad,
I’m interested in creating a membership (educational) site.
How many membership levels does the plugin allow for?
Thanks 🙂
Chad says
The plugin at does not have membership levels. It the default user role set in Settings > General.
Henry says
Hello,
Even though I have “Turn off registration” checked off, the registration form still appears on my pages.
What would be the best way to completely remove wp-member, including dbase data, so that I can start from scratch if there is no definitive solution to removing the registration form.
Thanks
Chad says
To fully remove, deactivate and then select the delete option in the plugin control panel. That will activate the uninstall process.
Henry says
Something has to be broken somewhere. I uninstalled and verified all content was gone, include dbase elements. After reinstalling and disabling reg form, it still appears on pages and posts for users who are not logged in. Is there a file that I can look at to manual disable the call to the reg. function? I’d also like to kill the call to the login function as I’d prefer users to utilize the sidebar widget for login purposes.
Thanks for your prompt reply. Can’t wait for the version that also include payments/subscriptions.
Mitch says
Was so excited to find this awesome plugin! But I must be doing something seriously wrong on the site i’m putting together (http://socialservicesbenefitsaustin.com/) because the first installation went fine but after a few hours the reCAPTCHA vanished and I was never able to get a single new registration to go through. I set up the Members Settings page and the registration page, put those addresses into the fields in the backend, unblocked the pages and ….. nothing. I’m definitely not logged into the site because any page I go to will not display (good) and then has the login AND new registration form. Not really what I wanted since at the bottom of the ‘Existing users Login’ box there is a link for new users to register on the new registration page (with a registration form directly under that link……no need for both in my opinion but no big deal). In any case…..neither form works.
There is oddly no field for the user to choose a password and obviously that would be why the form isn’t working i’m assuming. By not working I mean I fill out all the fields, fill in the reCAPTCHA (that only showed up again after deactivating and then uninstalling the plugin completely and then reinstalling it again), pushing submit and then…..nothing…..it brings me RIGHT back to the same page I was on….still showing a login AND registration form.
The backend shows no users pending.
So CAPTCHA comes and goes apparently as it pleases and no successful registrations. Can anyone point me in a direction to look for the culprit because this is SUCH a cool plugin and i’d really love to be able to use it.
Thanks!
Mitch says
Fixed it! Had made an error in the members settings link which apparently caused all of the issues and everything appears to be working great. Thanks for such an outstanding plugin.
Sean says
Chad,
Thanks for all of your wok with this plugin.
I’ve gotten the plugin to work “mostly”. I tried to test it by creating a user “tester”. I received all the emails that I should, but when I try to log in with the default password that was supplied in the email, nothing happens. Any suggestions? I’m sure it’s something simple that I’m forgetting.
thanks,
Sean
elena says
i have same pages with an own templete, in this pages I Cant lo block this content,
I am using de custom fiel but it is not work,
What can I do ?,
Thanks and sorry por my bad English
Chad says
Blocking content in a custom template
Freda Hill says
Hello Chad,
Thank you for all the help info from this site I am using.
But, I am trying to add my own TOS doc but have messed
up and now even your TOS is not displaying. Do you have
any guides up somewhere for me to follow?
And, yes, I have temporarily unlinked you because I got mad!
Please help me fix my sign in process, thanks,
Cheers, Freda
Chad says
Hi Freda – the TOS is nothing more than placing your HTML markedup document into the TOS field on the Dialogs panel. You do need to consider that it must be (1) only what would go inside the body tag (the head is already generated) and (2) it must be simple HTML – if you get too fancy, you run the risk of breaking it. Paragraphs, ordered lists, headings, etc and you should be fine.
Caps says
Is a there shortcode. The reason is on the right side of the registration, I would like the client to be able to add promo info – benefits for registering.
Chad says
The available shortcodes are listed in the Users Guide. If you are talking specifically about the registration page, you can add content above the registration as you suggested using the logged in/out shortcodes (using the logged out content shortcode above the registration shortcode). If you are talking about what comes up on restricted content, then change the dialog for “restricted post” in the plugin settings.
Jan Bletz says
I stumbled upon this question: which cache plugin do you recommend? (See: http://wordpress.org/support/topic/best-cache-plugin-for-wp-members?replies=1). Is there an answer to this question yet?
Chad says
Hi Jan – I don’t have any specific recommendation…
Jan Bletz says
Too bad… thank you for looking into it though.
Freda Hill says
BIG Thank you Chad, it was so simple! Thanks.
One more question about people registering.
Do I have the “allow anyone to join” on the default wp settings, turned off or on? I skim through your notes but miss it every time. Someone tried to join and I found the registration page is not working at all. What have I broken this time, please? Thank you again for this plugin, I do like it so far,
Cheers, Freda
Freda Hill says
oops, found it, it was unchecked, but still cannot use registration.
Please help me, thanks Freda
Freda Hill says
Hello Chad,
I have put the recaptcha codes in but no box displays, maybe what’s causing the registration hiccup. Where do I fix the call for the prove box? Thank you for your time, Cheers, Freda
Chad says
Hi Freda – the recaptcha is automatic, if you have put in valid keys, then it will display.
Joe says
Hi all,
my hosting provider 1blu supports wordpress 3.2. I’ve installed WP-Members 2.6.2 and the properties of “Block Posts by default”, “Block Pages by defaul”t are set with a checkmark. Unfortunately, every post is still visible for unregistered users.
What’s the problem?
best regards for any help
Joe
Chad says
99% of the time, people who ask this question are not using the ‘more’ tag (discussed in the very first FAQ). Please also review the Quick Start Guide and/or the Users Guide available on the plugin page.
Joe says
Hi Chad,
I know about the more tag but i really want a default block behaviour. This means a closed member blog without any header and body information for the public.
The “more” approach will show that there are articles available and is not comfortable to use it every time.
If this default function is not properly available I have to choose another blog technology.
best regards,
Joe
Ish says
Hi Chad,
Thanks so much for the plugin.
How can I change the URL in the “You may login at: http://www.example.com/blog” which is part of the mail that goes to users who register. It currently points to the wordpress URL and I need it to be the site URL which is the root e.g. “You may login at: http://www.example.com”
Would I have to make a change in the code somewhere? Thanks for your help.
Chad says
Yes – you would have to make changes to the code that generates the email. That is found in wp-members-email.php.
Incidentally, the upcoming version 2.7 which is currently being developed will provide the ability to customize all of the emails, as well as adding some additional email features. No release date has been set yet, but it is being worked on – I suspect it should be ready for testing by November.
Ish says
Thank you so much. Look forward to version 2.7.
Roger says
Hi Chad,
Thanks for the great plugin. I like the new feature to create custom fields in 2.6.2
I would like to use some of these custom fields in other plugin, for instance, I am using WP Members List and this picks up the new customer fields OK. But I am also using GEO MashUp and I want to use some of the custom fields in the marker popup. Any ideas would be appreciated.
Chad says
Hi Roger – any custom fields are stored in the usermeta table, so they can be retrieved by other plugins – but that kind of depends on how the other plugin retrieves this information. Sometimes, developers opt to use a direct query which actually makes things less flexible (IMO). In a case like that, you are probably going to have to do some hacking to pick up additional fields – not the best solution, but it can work. If a plugin uses something like get_users( ‘fields’=>’all_with_meta’ ) then any custom fields you added would be grabbed automatically. In cases like that, it’s something that will integrate on it’s own and you shouldn’t have to do anything. Of course, there are possibilities that are kind of in between these two examples as well…
Hope that helps.
Roger says
Hi Chad, Thanks for your feedback. I managed to pick up all the data I need from the usermeta table by using the following:
get_user_meta($user->ID, custom-field-name, true)
Thanks again
Roger
Joe says
Hi Chad,
I like your plugin but I have to know what the real use case is.
See first FAQ entries: “The default installation is to block posts by default but not pages.”
This is not happening. You told me to use the tag. I appreciate your work which you provide for free but I still have a simple question:
Is there a configuration possible to hide any post by default for the public or have you planned that features for the next release if currently not available?
Thanks in advance for a clear answer as I don’t understand the first FAQ explanation.
best regards
Joe
Chad says
That’s another good method – thanks for posting…
Chad says
Joe – Unfortunately, I’m not really clear on what’s not clear… Do you have a link you could send me as an example of what is not working for you? That would give me something to go on.
Joe says
Dear chad,
I wanna have a closed member blog. This means only user that have been created by me will be able to write and read any blog articles.
The blog start page will only have a login entry but does not show new articles by users for the public.
Is there a possibility to use a DEFAULT standard method that the attribute !more will support this? The best way would be if the attribute is not needed. The users are not familiar with the internet and blog systems. It should be really keeped simple as possible.
Following configuration I’ve made in the wp-member area:
Block Posts by default = checkmark
Block Pages by default = checkmark
If you could tell me where I can find your e-mail address I will send you the URL.
best regards,
Joe
Chad says
Joe – my email for plugin support is in the header of the plugin or you can use the contact page on this site. But based on the description you provided here, this isn’t the plugin for what you are doing. In fact, you don’t really need a plugin at all. What you really need to do is just block the WordPress Loop based on login status. You are creating the users yourself, so you don’t need registration features, and only registered users can see anything or write anything.
There’s a related example here, but essentially what you need is a template like this:
Brandon says
I have private site set-up using WP-members plugin. I have “Block Pages by default” set to on. And I have a custom login Page created with the shortcode “[wp-members page=”login”]” entered in the content. all works great except i would like for all blocked pages to redirect to the custom login page if user is not logged in.
what is the best way to handle this redirection?
Chad says
That’s not entirely necessary since the way the plugin is designed is to replace any blocked content with the login form (and if turned on, the registration form). This is by design as the less clicks/pages a user has to wade through, the more likely they are to convert. That’s a long way of saying: the plugin isn’t built that way.
If you are dead set that is how you want it to function, the best way would be to do this at the template level. Something like this:
Mark says
On my registration page it states that I’m logged on as “member name” and beneath it say begin using this site. The link from “begin using this site” takes me to index of /wordpress. How do I change the link so it goes to the front page of my website?
Brandon says
thank you very much. this is exactly the solution that i implemented. i was just wondering if there was a better method within the plugin. thank you!
Chad says
That’s not something that can be changed at this time…
Mark says
Thank you, Chad, for you reply.
Mark says
So that also means that any of my members can access the back end of my site? oh well.
Chad says
The link in question shouldn’t be directing users to the WP dashboard if that’s what your asking. However, while any registered user does have access to the dashboard, this is a benign access (this is always true of registered users – not just with this plugin). Many newer WP admins express concern over this unnecessarily as users with an assigned role of subscriber basically have access to limited user edits at best (unless you are running a role management plugin that gives the subscriber role additional access).
If subscriber access to the dashboard is an insurmountable hurdle for you, then you can just direct them away from it with something like this in your functions.php file:
Mark says
Thank you very much, Chad. That has sorted my issues out. I think I was getting a little too anxious about member access. Thank you once again.
Chad says
No problem!
Andy says
Hi there,
Just installed and network activated the WP-Members plugin on a multisite. Upon activation I see nothing in the multisite backend that allows me access to this plugin’s options. There is no tab for it in the left side menu, no options anywhere. Is it compatible with multisite or am I doing something wrong here. Thanks!
Chad says
It is not multisite compatible at this time.
Owen says
Hi,
i’ve installed the plugin and everything is working fine except for the admin notification. I can register successfully and the new user is added to the database but even though i have “Notify Admin” ticked i do not receive the appropriate email.
Any suggestions? Cheers
Chad says
Please refer to the FAQ “Users are not being emailed their passwords, what is wrong?” above. The same holds true for admin notifications (since it also uses wp_mail). Verify that other emails are being sent – if new user registration emails are not being sent along with the admin notification, then you need to troubleshoot wp_mail. Also if you haven’t already, double check your spam filter.
Owen says
Hi Chad,
the user emails are being sent/received ok – its only the admin notification that isnt working 🙁 …… and nothing in the junk mail.
Andy says
Ok, thanks for the quick reply. I’ll look forward to maybe seeing it multisite compatible in the future!
Chad says
Agreed! I know there’s a demand for it so it will probably find it’s way onto the project list sometime in the future.
Chad says
Odd that you’d get one and not the other as they are sent at the same time, but I’ll check into it.
shan says
hello I’ve tried figured out a lot that how can i protect the content with post or pages..? for instance if some of my content are not suppose to publish in post or page then i won’t be able to protect that specific section or page..? i desperately need to know this solution ASAP
Chad says
The plugin manages the contents of the wordpress global variable $content – that means the content that is displayed within the Loop. If what you need to protect is outside of that, then you’ll need a custom solution.
Kristi says
Chad – YOU ARE A LIFE-SAVER!!!!
This is exactly what I needed for a new corporate website’s private sales portal. I plan on donating to this as well!!! 🙂
One question that I’ve searched hi and lo for in your instructions but I can’t seem to find it… is a custom email message.
Here’s the scoop… Instead of the user registering themselves, I am going to register them and give them a specific password.
I notice that the email that’s generated gives them the URL of the regular WordPress login. I want to have the message say… “Welcome to the new sales portal… blah, blah…” Login here: http://www.mysalesportal/users…. or something like that.
Possible? Hope so. 🙂
K
Chad says
It’s possible, but it’s not a simple process. You would need to know something about WordPress hooks and filters to set something up. (I’m speaking directly about the email that is generated when you create a new user via the WordPress admin panel, which the plugin does not currently hook into). If you are not familiar with this process, it would probably be easier for you to have some type of external process or template that you use when you create a new user.
(If you are creating the users via the plugin’s registration process on the front end, that’s a different story – you could make the modifications you need to wp-members-email.php)
The new feature release that is currently in development (2.7) focuses around customizing the email messages that are generated by plugin. I’ll probably look into hooking into the backend process as well.
Kristi says
Thanks for the quick response… “simple” is my kind of language…
So, if I were to register them via your plugin’s registration process, where about in the wp-members-email.php would I make this modification?
OR
Here’s another scenario. Could I turn off the automatic email message and generate a custom email myself? Just a handful of people that would be registered.
Thanks again for your help.
K
Kristi says
SOLVED!!!
Found a plugin called “New User Email Set Up” — works like a charm!
Chad says
Perfect!
Kamal says
Hi Chad, First I must say how happy I’ve been with the plug in and it was working great till yesterday when I installed the update. After that everything seem to work except when I try to activate the members. I keep getting a 503 error message saying the server in busy. I have been trying this for the past day or so and even register myself as another member to see if may be there was a problem with the last members registration, but it does the same for me. Is it possible to revert back to the old version while this is fixed at all?
Thanks for a great plug in.
Laurens says
Hi Chad, quick question: I have different sidebar templates for different parts of my site, I would like to add a WP-members-widget to all of them. I can add the widget to one template, but then it disappears from the “available widgets” area, where other widgets usually remain so they can be placed again on other pages.
It this behaviour intended and why?
dan says
When I click the forgot? link my site takes me to the not found page. The register and member area seem to work fine. Not sure what I am doing wrong.
Chad says
Dan – I took a look at your site. You have specified the location of the members area to be http://pursuitofstrength.com/members-area/, but the page is http://pursuitofstrength.com/edit-my-info/. You either need to change the slug of your members page, your change the url you set for the members page to be the actual url of the page.
Michael says
Thanks for a great plugin.
Can you please tell me how to change the message at the bottom of page that comes up on restricted content.
When selecting a page that is restricted the login/register page is shown and at the bottom of the page (below the registration fields) is the following text:
“This post is password protected. Enter the password to view any comments.”
Which in the context of having selected a page (not a post) could be confusing. I was hoping to either remove it or to change it to something more generic so suitable for posts and pages.
thanks
Chad says
Michael – that’s a great question, but more related to WordPress themes than the plugin. The plugin simply tricks WP into thinking the post or page is password protected (with WP’s built-in password protection) so it gives whatever message is in your theme’s comments.php template. Since themes can vary, I’ll give you an example based on the default TwentyEleven. Your mileage may vary based on your theme, but if built properly, it should be somewhat similar.
The comments process is managed in the theme’s comments.php file. At the very beginning of that file in TwentyEleven, you will find that the first step is to check
. The plugin is setting this value to true if the user is not logged in. You’ll find the message you are looking for after this.
You have some choices here. You could just change it to something generic, like “This content is…” or you could get fancy with a conditional statement based on whether it is a page or not:
Becky says
Hi,
I’m also have trouble with the reset their password. I created a testing site and I still can’t get it to work.
I had 3 pages.
1. registering page
2. member area page
3. protect content page
after I realised the reset password wasn’t working I created
4. log in page
it didn’t make difference.
I can register and login but not reset.
Thanks
Becky
jo says
Ive loaded your plugin and added a page for registration, Ive added the shortcode [wp-members page=”register”] and the page appears as I expect however I cant type in any of the window boxes???
I have both pages and posts unblocked.
I figure Ive got something upside down??
jo says
Chad,
Sorry i forgot to add my website, its in construction stages.
Ive also add a login page but again it seems inactive.
Im using Woothemes “listings” them.
Thankyou
Jo
Chad says
If you set up a members area page and cannot get to the reset password, it means you are trying to do this on a blocked page. The members area page cannot be blocked so if you are blocking all pages by default, you must unblock the members area page with a custom field (see the users guide for how to do this) -OR- if you are not blocking pages by default but have set the members area to be blocked, you need to unblock it.
Chad says
Jo – Thanks for posting the link – I took a look at it, and honestly, I don’t have an answer for you. It does look like there are some CSS rendering/compatibility issues between the forms and the theme.
Becky says
Block Posts is Ticked.
Block Pages is not Ticked
Show excerpts is Ticked
Members Area URL: I’ve given
Register Page URL: I’ve given
Custom CSS: I moved your CSS files and then give that address
In feilds I’m only useding
Name (I created the new feild in the wp admin settings of WP members)
email
TOS
Dialogs I left as is
in WP member settings
I used the [] shortcode on the pages.
The only page I have a custom field on is the content page is showing the content partly blocked because I used the more tag.
I’ve set this up 3 times following the guilds. I’ve read the faq and comments plus the comments on you WP members page. I searched online and in warrior forum and checked out videos on youtube.
I’m must still be doing something wrong, it not working but can figure it out.
Becky
Becky says
When I click the Forgot password? link I’m sent to http://testing.pooktre.com/extras-area/%20?a=pwdreset as a 404 page.
Michael says
Thanks for your reply – explains why I couldn’t see any reference to it in your plugin 🙂
Chad says
That “%20” in between the “/extras-area/” and “?a=pwdreset” is URL encoded whitespace. That means you have a trailing space in the members area url that you put into the plugin settings. It is likely that you picked this up if you copy/pasted it into the settings. Go to the plugin settings and remove any extra spaces at the end of the members area url and save your settings.
Becky says
Thank you, thank you…. I spent hours trying to get this to work. Just in case anyone else also copies and pastes the Permalink: url (in wp page edit mode) make sure you don’t also grab the last backslash, as it won’t work with that in the link.
Thanks
Becky
dan says
Hey that worked! Thanks so much.
dan says
Is there a way members can change their avatars?
jo says
Where do I start in trying to unpick this, or is it a waste of time
Regards
Jo
Chad says
Avatars are generally managed in WordPress based on email address. You can manage your site’s avatar settings under Settings > Discussion
Chad says
Is it a waste of time? I can’t answer that, but it could take a significant amount of time, depending on your working knowledge of PHP, CSS, and WordPress.
It looks like there are some CSS incompatibilities between the plugin’s CSS and the theme’s. If you can find the incompatibilities, the plugin allows for customized CSS, so you could develop a compatible stylesheet.
I don’t know if your theme is using different templates on different pages/posts, but the login and register pages have sidebars and the About page (which works) does not. Likewise, the individual posts have working forms, but those have sidebars. Is the template the same for the posts with sidebars as the pages with sidebars? These are the things I would look at first.
A combination of Chris Pederick’s Web Developer toolbar and Firebug is indispensible for tracking down things like this as you can turn off certain elements and also track down inherited properties, etc. Using the web developer toolbar to review your site, I could disable the theme’s main stylesheet and see that the form was responsive. I was also able to disable just the plugin’s stylesheet and see that the form was responsive then as well. So something between these two things (and the above template questions) are some areas to explore.
dan says
I had this problem. I had to change the format of the text to match exactly as it was in the document. My theme made it italic and that threw off all the boxes.
jo says
Chad,
Your time and comprehensive response is appreciated.
Yes my theme uses different templates for types of pages and posts. I changed the registration page to a template with sidebars and it worked, I was able to register and login!!! you were dead on the money!!!
Given that my site contains pages and posts without sidebars do you see this plugin working on my site or is it designed for side bar page /posts sites.
Kind Regards
Jo
Marcelo says
Hi,
First of all, thanks for a great plugin.
I have a little problem to make it work as i want – i can´t block my posts page. It works fine blocking all other pages and unblocking as well, but the page that i define as my posts page wont block. I´ve tried to use “block/true” or the oposite, but nothing happens.
Any clues?
Thanks,
Marcelo
Chad says
It sounds like your “posts page” is a summary template of posts? If that’s the case and it is showing full content, then you are not using the ‘more’ tag to create a post excerpt. This is covered in the users guide and also the quick start guide.
hitsbots says
Hi, first thanks for this great plugin.
I use the latest version 2.6.4 and latest wordpress 3.2.1.
I set that admin has to approve user registration. So, when user register, I get email showing the users details and a link “Approve User” in the bottom of users detail. So, when I click the link, it goes to http://mydomainname.com/wp-admin/users.php?page=new-user-approve.php
And then this error appear, “You do not have sufficient permissions to access this page.”
But I can still approve or activate the user manually using the User->All User or the WP-Members tab. But I think it is easier if the “Approve User” link in the email is working. Is there any problem with the link? How to fix this?
Thank you.
Chad says
The email that the plugin sends to the admin when registrations must be approved includes the following link:
http://yourdomain.com/wp-admin/user-edit.php?user_id=123
The plugin has no such page new-user-approve.php (which would be why you are getting that message). I have no idea where that link is coming from because, unless you changed the email that the plugin sends, it is not coming from the WP-Members plugin.
hitsbots says
Hi, I dont change anything about the email.
What is the file that I supposed to edit to get the real link? Can you help?
Chad says
You shouldn’t be editing anything – the real link is in there automatically.
I did some research and it looks like you have another plugin New User Approve? I’m afraid I can’t help you with that. WP-Members has its own process for approving registrations – that I can help you with, but the link you are talking about is from the other plugin.
hitsbots says
Oh yes, before this is use that plugin. But already delete that plugin and install yours. So maybe that is the problem. Now I dont know where to edit to get the real link.
Chad says
Did you delete the other plugin using the admin panel, or did you just delete the plugin file? I don’t really know anything about that plugin, but if you simply deleted the file, then if it had it’s own internal deletion process to clean up any settings it makes, then you would not have removed those. Regardless, you should not have to be editing anything with WP-Members. As I stated, it has its own process for moderating registration and sends its own email. There are no hooks or filters for the process so even if that other plugin left remnants in the system, it should not effect the WP-Members process.
Make sure WP-Members is set to moderate registrations in the plugin’s options. Also in the plugin’s options make sure that you have set it to notify admin of new registrations. That is the email that will have a link to activate the user, as long as the user registers via the plugin’s registration process.
I would recommend that under your WP Settings > General you have unchecked “Anyone can register” – this will deactivate WP’s own registration process (where you would not receive the appropriate email). Also, if you have some other method of registration plugged into your WP installation, I would suggest you remove that. The only way you will get the the registration email with the link I indicated is if the registration is coming from the forms set up by WP-Members.
hitsbots says
Yes I dont change anything on WP-Members and everything is set like you said from beginning. The plugin was deleted from FTP not from admin because I cannot access admin when the plugin is there. I think this is why the problem happens. Thank you for your great support.
Marcelo says
Hi Chad,
yes, my posts page is a summary template. It works using more tag to block posts, but what i want is to block this page with the posts. I tried everything so far but can´t make the page blocked.
Regards,
Marcelo
Derrick Rath says
Thanks for the great plugin! I have it working but need to make some css adjustments and need some help. When I go to the Edit Your Information the field titles on the left line up with the text boxes on the right. But when I got to the login and registration form the text boxes are shifted down. How can I line them up? Also the checkbox for Remember Me is really wide which pushes my login button to the right making it stick out of the form. Also the Clear Form and Submit buttons are too wide and stick out of the form. And the last problem is the Forgot Password and New Users text lines are cramped together how can I pad these to look more clean? I know this is a lot of questions but hopefully have simple solutions if I knew more about css. You can see this page at http://sccky.org/members-area?a=edit. Thanks in advance!
Chad says
The “page” you are referring to is not a page in the WordPress sense of the word. It is an archive template. WP-Members does not block this. The purpose of the ‘more’ tag is to create an excerpt of “teaser content” that is displayed to the user on summary template such as this, with the full content of the post being blocked. That is the way the plugin works.
You could customize your template to not display the Loop if the user is not logged in to accomplish what you are describing by doing a modified version of the process I described in this post, basically putting the Loop inside the true condition for is_user_logged_in().
Chad says
Hi Derrick – I took a look at your link and the issues you are having are likely inherited CSS properties from your theme’s CSS. You’ll need to do some customization to the plugin CSS to override the inherited properties. More information on customizing the CSS is here. I would highly recommend getting the Firebug browser plugin for Firefox or Chrome. This allows you to inspect individual elements in the generated source and it will show you all CSS properties that are applied the element, both defined and inherited. That way, you can define the element in the specific property that will override the inherited property.
Paul says
Hi,
I am using WP and Buddypress for a prototype site – is this plugin compatible with Buddypress or do the registration/login/user aspects conflict?
Chad says
Well – it’s untested (although I do know there are some users using the combination. WP-Members uses the WP users and usermeta tables in the same manner as WordPress, so any conflicts should be minor.
Lewis says
Hi Chad,
is it possible to setup pages that can only be seen by certain users using your plugin?
What I was thinking of was page that only Super users can see, a page that only standard users can see, and neither page can be seen by people that aren’t logged in.
Is that possible?
Thanks
Lewis
Chad says
It is possible but not from within the plugin interface. You could work some things into your template to determine if the user is of appropriate role. If you are familiar with role designations, you could use a combination of conditions to determine what you will show. For example, manage_options is generally limited to admins, so determine if a user is admin:
There is a similar discussion in this post that could be amended to determine user role designations.
Paul says
Just installed your plugin…. BRILLIANT!!!….
Thank you so much, works perfectly..
I haven’t really dug deep yet but there seems to be tons of documentation…. on this page alone!
Sweet! 🙂
SeanE says
Hi Chad, getting used to your plugin here, thanks for all the effort. It seems to be running okay, but the problem touched upon above, but perhaps needing further guidance from you, is that when I have 2 custom fields in my WP-MEMBERS register form (simply phone # and company name), and a user registers and logs into the site, the wordpress dashboard toolbar appears at the top of the site. The user (most of my users will be author level) can then “EDIT MY PROFILE” from the dropdown or go to PROFILE using the WP dashboard nav. When he takes a look at his own profile, the custom fields (not just the information submitted but the fields themselves also) are not present. When I log in as ADMIN, I can see the phone number and company name info there in their profile, but they cannot. Any suggestions? Users obviously need to be able to change their custom field profile info.
Thanks.
Chad says
Hi Sean – thanks for the comments. There are a number of clarifications here.
First – the plugin is designed to offer the users a method of editing their profile info on the front end. This is accomplished through the Members Settings Area. Setting this up as a special page is simply a shortcode (covered in the Users Guide) and give the users the ability to update info and change passwords, and also if they are not logged in, the ability to reset their password and have it emailed to them.
On the dashboard, I probably will institute some changes, but for the time being, the reason that the extra fields do not load into the dashboard profile is these functions are included with the admin functions. The plugin only loads the admin functions when the user is administrator. It was set up that way because before the inclusion of the toolbar on the front end, this was not necessary to include for subscriber level users, as they can update their profile using the method described above. Changing this probably will take place in the near future, but it isn’t a pressing priority for most users as I find that most people are generally trying to steer their users clear of the dashboard side anyway (although as you seem to understand, that’s not entirely necessary).
If you did want to simply remove the toolbar for subscribers, see “How to disable the WordPress admin bar.” Another possibility would be to make an edit to the the function
wpmem_chk_admin()
in wp-members.php. You could either change the role capability forcurrent_user_can()
to something lower, or eliminate the condition altogether and just load the wp-members-admin.php. (The admin functions aren’t kept from loading for security reasons, but rather to make the plugin load more efficient when the user has no need of the admin functions.)Kim says
I am using your plug-in for an alumni association website, in conjunction with another plugin (member list) to create a member directory. Two requests: (1) the member directory would be a nice add-in to your plug-in, and (2) it would be great to have a photo field option – I’d love people to be able to upload a headshot as part of their registration info.
SeanE says
Thanks Chad.
Maybe I’m not looking at this from the right angle, but here is my dilemma. Users profile information is divided using this plugin. There are other plugins that allow you to add extra fields to the standard wordpress “user profile” interface AND non-admin level users can see and edit their extra fields.
I am interested in WP-Members because it beautifully (and perhaps uniquely? from what I can find) allows you to collect extra fields within the contact form and do 2 things: 1) moderate the registration request BEFORE allowing access to the site based on those extra fields, and 2) it passes through the field data to the user_meta table, which means you do not have to ask users to enter information twice.
Using your members area shortcode “out of the box”, I only see the ability to edit email, plus the information that was set up as “extra” fields. So a user cannot change their other associated profile info generated by wordpress. On the flip side, if they go into wordpress dashboard, and are not an admin, they cannot see or edit that extra info they filled out in the wp-members form.
disabling the dashboard/wpadmin bar seems to only be an approach to those who don’t have permission to create a post or page. We are setting up a members only site in which everyone can create a post. So even if we custom code to pull the extra wp-members fields and all of the wordpress-generated user profile fields in the wp-members members area page, they still need access to the wordpress dashboard to create posts/pages and therefore can choose to edit their user profiles there (and cannot see their extra wp-members fields).
So I am guessing logical solution is to make those fields viewable in wp dashboard for all users/not just admin. Then we can turn off your members area page and people can edit ALL their profile info through wp dashboard. I guess I do not understand why since the information is there, and other plugins let users see it, why that capability is not possible in wp-members? please drop me an email if you could. Thanks much.
Sean
SeanE says
Kim,
I also am using it with another plugin for a sortable member list. They seem to be working fine together (although this site is still in beta). Drop me an email and we could compare what we’re doing : )
doit(atsymbolhere)searchlightinteractive(dot)com.
Sean
Geeq says
This is a great plugin,
thank you so much chad
Frank says
Hi,
Would love to find out how this plugin integrates with PayPal for membership payment… I’ve search your site, but its a topic that I don’t see or I may have just totally missed?
Please advice,
Frank
Jon says
Hi Chad,
Just wandered if there was a way to export all of the users at once? At the moment, it only seems to export 10 at a time. Or, is there a way of increasing the 10 to more? I know that WordPress now has screen options to change the amount displayed but this obviously isn’t availablewhen you view the members.
Doug says
I’m new to PHP. Love your plugin.
Could you provide a sample of the modified text in wp-members-email.php?
I’m guessing the following lines need to be changed?
$body.= sprintf(__(‘You may login at: %s’, ‘wp-members’), $url).”\r\n\r\n”;
$body.= “$wpmem_msurl”;
I just not sure how to code in the URL of my choice.
Chad says
It is NOT recommended to make any direct changes to the code plugins (or themes) that may be upgraded in the future (such as this one). The reason for this is that when you install the upgrade, you will overwrite your changes. That being said, in the near future, I’ll be releasing WP-Members 2.7, which will center around customizing the emails that the plugin sends out.
You could just replace $url with ‘http://yourdomain.com/some-page/’ (including the single quotes).
Chad says
Jon – I’ll probably need to address this in the next version. The pagination is new. You’ve got a few options until it’s addressed. First, but not necessarily recommended, rollback to 2.6.2 which is prior to the users table being paginated. Second, and probably better, is to select the list of “not exported” – this will not paginate and will give you a full list of users that haven’t been exported (since you’ve already exported some, obviously this won’t be “full” for you, but it will give you a complete list of the remainder that you can append).
Hope that helps.
Chad says
That piece hasn’t been done at this point.
Doug says
Chad,
You are a Rockstar of the Plugin world! Thanks for the quick reply. I look forward to the update. I’m going to donate. Your efforts are appreciated.
Chad says
Well… I don’t know about Rockstar… maybe garage band 😉 Thanks for the comments and the donation – both are appreciated!
Bill says
Hello
Plugin works okay but with a minor problem: login for existing users on home page
Users may register, but when they receive their approved email with generated password and try to use the login (just above the registration form), nothing happens. However, using the WP login form located lower right under the Meta heading existing users can login.
I have searched for means to change the existing user login url without success.
Any suggestions?
Chad says
Bill – Between comments on the blog, email requests, and wordpress.org, I get a lot of support requests every day. I try to get to them all in a timely manner as I am able, but sometimes comments slip through the cracks. The best way to ask for support is through the contact form.
Can you give me a link to an example of what you are describing above?
Bill says
I can appreciate how busy you are; sometimes emotion rules common sense as in my case.
http://www.glnb.org/blog
Just below you will see the “Existing Users” login form…it doesn’t work. On the lower right, under the heading “Meta” is another login link (the original WP link) that does work even when using wp-members registration.
No doubt I goofed up somewhere, but darned if I can find out where.
Chad says
I think the issue could be the result of a couple of things coming together – Looks like you have set the blog to be http://www.glnb.org/blog and that you have set a static page as the front page. I’ll need to set something up to test a similar configuration and see if I can reproduce this behavior. I’ll get back to you sometime this afternoon.
Chad says
Under Settings > General, are Site Address and WordPress Address both http://www.glnb.org/blog ?
Bill says
Aye…they are.
Chad says
In looking at the configuration and also looking at the generated source on the home page, I’m not seeing a reason why this would not be working. That leaves the possibility of a plugin conflict (a caching plugin, perhaps?) I would suggest disabling other plugins and testing. If you get a valid login at that point, bring up plugins one at a time and test each one.
Bill says
The plug-in that seems to be causing the problem is SI CAPTCHA Anti-Spam. Once I deactivated, wp-members login worked fine. I suppose the fact there is no captcha for login is moot since the registration form requires it.
Thanks for looking at this and pointing me in the right direction.
Chad says
I suspect that plugin hooks into wp_signon to add the captcha to the required elements for a valid login. That would prevent WP-Members from a successful login as it would only be passing username and password to wp_signon.
Glad you got it working!
Ajay says
i am not getting admin notification of new user registrations,
how to solve it ?
Parthvi says
Hi,
I have the same problem.
Admin didn’t get the email when new user register even i check the box.
New user getting email after registration but admin cant’t.
Chad says
Have you checked “notify admin” in the plugin settings?
Are other emails being sent? If not, it is wp_mail.
Chad says
If you have set the plugin to notify admin and the other emails are functioning, the only reason I can think of why one would go and not the other is that your host throttles emails. The admin notification goes just after the user email and uses wp_mail (which is similar to php mail) and some hosts might throttle that process to prevent spammers from abusing it. If you believe this is the issue, a possible solution might be the WP Mail SMTP plugin, which essentially plugs wp_mail to use and SMTP mail server rather than through php. Since this involves authentication with the mail server, you shouldn’t be subject to the same kind of controls.
Ajay says
Hello again,
Chad
Thanks for quick replay, now i want to stop sending a password & login information notification for those use who register.(like editing any php code to stop that)
I know this is not fair, but you know clients and there minds.
They wants to approve register user manually.
Thanks in advance.
Chad says
Ajay – there is not a simple answer to that as it depends on how the plugin is set up. Login credentials are sent in the registration process (wp-members-register.php) unless the admin is moderating registration, in which case it occurs when the user is activated (in wp-members-admin.php). I would HIGHLY advise against making direct edits to the code as that puts you in a difficult situation when it comes to upgrading.
If all they want to do is approve users manually, there is a plugin setting for that. Just set the plugin to moderate registration, which requires admin approval for each registration.
Art WebMaster says
Hi there,
We’re updating our existing Church website, and I was wondering whether Verse-O-Matic is “free” for non-profit Churches.. What are the terms I need to be concerned with?
Thanks.
Art WebMaster
Chad says
Yes – the verse-o-matic is a free plugin.
Dee says
Note – I had to re-post to set the noticed by e-mail here – sorry! please reply to this one!
Hope you can help. Firstly, what a WONDERFUL plugin and amazing job you’ve done with it, as well as the organization of the manual and this site – THANK YOU!
Now for my issue (LOL!) I spent the last 2 days setting it all up on a site I am doing for someone else. She has a site with a few public pages explaining her project, but wants the main content to be available only to those who sign up to the mailing, which goes then to PayPal donation and lands them back on this site where they can then sign up via your WP-Members registration.
Once registered then they can see the Members page that has more premium content, giveaways etc. This is the page where she will be posting content. (The other public pages are static pages that will not be posted to.)
There is basic test art & copy up there now.
However as I now am LOGGED OUT of WordPress and just going to the site url as a “regular” person, I can easily still type in the member’s only URL and see the page content even though it says at the top that I’m logged out and I’m not in WordPress at all.
I have the default setting to block all pages. I do not have anything checked for blocking posts. How can I still be accessing the Private Members Only page if I’m not logged in and haven’t even registered yet? Does my cache just override the setting? If so, then won’t that happen to anyone?
Any help you can give would be appreciated!
Thank you!
Chad says
Do you have a link to an example? Specifically the page that should be blocked?
Are you using a caching plugin of any kind?
Dee says
Hi Chad:
Thanks for the response. The website is http://takeback.me – the page that should be blocked is http://takeback.me/members-only-content/
I have a few plugins running – nothing specific to caching (that I know of) – an aWeber widget plugin, a Display Widgets plugin (that allows me to show or hide widgets on certain pages), WordPress SEO, Formidable (to make forms) and Wp-Members.
The only thought I had when typing this, is that the aWeber widget (and the WP-Members one) are the only 2 that I cannot hide from the page using the Display Widgets plugin. I’m wondering if that aWeber that seems to override the ability to be hidden on that Members only page, is also somehow making the page visible?
Thanks for your help!
Chad says
The problem here is semantics. http://takeback.me/members-only-content/ is not actually a page, but a template displaying posts for the category ‘members-only’ (also as http://takeback.me/category/members-only/). If you look at the posts in this archive, such as http://takeback.me/2011/12/07/my-fabulous-new-post/ you can see that you do in fact have settings to block posts. What you need to do is use the ‘more’ tag in your posts. This will create an excerpt for the post which will display on the category template, but the user will need to be logged in to view anything beyond that. This is covered in the Quick Start Guide and more in depth in the Users Guide.
Dee says
Thanks for the reply Chad. I admit I am confused. I’ve gone over this section in the guide and am confused by this:
<>
This is exactly how I had it, but last night after I posted here I did try and change various settings to see if that made a difference – that is when I added the category and checked “block posts” as well. That may have been when you looked at the code.
I created a new separate Page called Members Only Content. This is the ONLY page where any posts will ever appear, along with premium content. Much of the premium content will be in the sidebars. I don’t want excerpts or anyone to be able to go to this page AT ALL without being a registered user and/or logging in.
I only ended up adding the “category” because when I first did a test post (which defaults as uncategorized) it was also pulling all the static page content onto that page.
I have now put the settings back as I originally had them. The Page Block default set but not the Posts and no excerpts and no category.
If I am not creating a Page correctly by creating a New Page in WordPress, how else is that done? Or are you saying that because the page I want to block contains posts rather than being static, I must also have blocked posts excerpts?
Bottom line: Is there a way for me to block this Members Page that contains the post content so someone has to login to see any portion of the page (including sidebar content)?
Thanks so much for trying to help me!!!!!
Dee says
Just to clarify the above, here’s the re-typed snippet from page 12 of the Guide I was trying to quote:
<>
Thanks!
Dee says
One more try:
However, unlike posts, pages are not generally summarized as they are in a
blog. So excerpts and the use of the ‘more’ tag are not required to fully protect content. All you
need to do to begin restricting pages is to turn on Block Pages by Default.
Chad says
Ultimately, the content you are trying to protect here are posts. You need to start by setting posts to be blocked by default. As I pointed out, it doesn’t matter how/where you are displaying these (page or otherwise), they are posts, and all it takes is for a user to go directly to the post itself to view the content. So start with that.
Next, I am not sure what you are doing to create http://takeback.me/members-only-content/ because you are telling me this is a page. But the behavior is that it is displaying a loop of posts. Are you using some kind of shortcode to display posts within the page?
Dee says
Thanks so much Chad. I think I get it now… any “page” containing posts need to be blocked at the post level, as each post creates its own “page.”
All I did was create a “New Page” in WP called “Members Only Content” and then go into WordPress Settings:Reading and choose Front Page Displays: a static page, “Home” as the Front Page and “Members Only Content” page as the posts page.
This is what’s forcing the posts to appear on that page.
I’m thinking I should try and simplify this more and maybe just create a blocked Members page with the premium content and another blocked page for Member posts & comments, where there I block the posts. And solve my problem by not having any premium content in the sidebars, so they’d never be visible except on the Members Only Premium content page, where they’d not be in a sidebar.
Does that sounds more workable?
Chad says
Either way will work, but you are going to need to be using excerpts as mentioned earlier as the content you are working with here are posts. If you set up a “page of posts” or have them in an archive template, the end result is the same.
Dee says
Okay – I’ve made the changes. Just making sure I’m clear – I can NEVER block a page that contains posts. Even when I have the default to block pages and posts and use the more tag. Correct?
This is what I now have on http://takeback.me/lets-hear-from-you/
Chad says
That is essentially correct (except that the “page that contains posts” is not a “page” in the WordPress sense – regardless of whether you set it up in the page editor, or simply rely on an archive template). If you want to block that entirely, I would suggest learning how the templating system works, then creating a custom template for the theme that would contain the loop that you want. I have a post on how to get a custom template to display the login/registration or specific content when logged in here. It’s not “plug-and-play” for your situation, but the concepts are there if you learn how the templating system works.
Another idea… you can put the ‘more’ tag at the very top of the content, then nothing for each post will show but the ‘more’ link. You can combine this with a custom ‘more’ link function in your theme’s functions.php file… something like:
Maarten says
Hi Chad,
I have a question. After login I want my visitors to go to a specific page, namely a ‘start page’. But now, after logging in, you’re redirected to the index all the time.
How can I set up the url where visitors are led to after login?
Thank you in advance.
Chad says
The login actually does not take the user anywhere but rather puts the user in a logged in state on whatever page they were when they logged in.
Maarten says
Thanks for your answer Chad.
I have another question. I wanted it to export my wp-members but when exporting I got the following error: there was an error and no users were exported.
Any idea what might be the cause?
Thanks in advance.
Chad says
Did you check the box next to any users you wanted to export?
Andrew Wheeler says
HI Chad,
Great plugin and thanks for the detailed FAQ and User docs.
With regard to the redirection when someone logs in via the sidebar, can you advise on a way to redirect them to a specific page?
Many thanks and keep up the good work.
Andrew
keyon says
I need help. For some reason, i keep getting a message that says “Login Failed!”. I tried using my wp login information, and I even created a new user in Admin->WP Members, and tried that. Please tell me, what I’m doing wrong or what I need to do?
Chad says
I would start by making sure there aren’t any other plugins conflicting in some way (disable plugins, bring them back on one at a time, testing each time). Also, you cannot be blocking cookies. WP-Members utilizes the wp_signon function which establishes login state with a cookie.
Chad says
Thanks for the comments Andrew. There is no redirection via the sidebar login, it is simply to put someone into a logged in state, not take them somewhere else. However, the WP-Members sidebar function wpmem_do_sidebar in wp-members-sidebar.php is pluggable, so it can be customized. If you want something different, as long as something hooks into the WP wp_signon process, it would be compatible.
bar says
Hi Chad,
thanks for the plugin, it works well for me.
Would you consider adding the ability for the administrator to be able to see when a member last logged in and what pages they viewed?
Chad says
Thanks for the comments. Actually, I hadn’t really thought seriously about that, but I do like the idea – possibly as an add-on module or something.
Kevin K says
Not sure if this is the best place to post this question but….
I’m hoping to use WP Members for a membership site of Hispanic Neuropsychologists Society. We need to import the public directory (currently at http://www.hnps.org/find-a-spanish-speaking-neuropsychologist/) into custom fields in the user profiles so we can query that to build the directory.
Is it possible to import the contents of the google doc (e.g. as a CSV file) into custom fields I’ve created using WP Members? I’ve looked through the FAQ and User Guide but didn’t see anything about CSV or importing member data.
Thanks!
Chad says
Hi Kevin – while there is no internal import process, it wouldn’t be too difficult if you are handy with PHP and/or MySQL. WP-Members leverages off of the existing WordPress user tables which are users and usermeta. A description of the database is available in the Codex. If you wrote an import process within the WP construct, you could loop through the users and insert using wp_insert_user (which returns the newly created ID value), then use the ID value to add_user_meta for each of the fields not in the users table. If you did it within PHP and/or MySQL directly, you could do something similar with direct insert queries, following the database structure.
Andrew Wheeler says
Hi again Chad,
Thanks for this information. Would you be available on a freelance basis to code this for us? Do you take payments via Paypal?
Many thanks
Andrew
Chad says
Sure thing Andrew – I do take on freelance work and I generally invoice via PayPal. Best thing to do is contact me via the contact form. Then you can give me the project scope and I can provide feedback/ideas based on that.
Johan says
Hello,
How do I prevent the content (exerpt) of my protected posts (using the more tag) and the RSS feed?
Password protection work just fine on the blog but not on the RSS .
Thanks, Johan
Chad says
Have you followed the recommended settings of setting the “For each article in a feed, show” to “summary” (found under Settings > Reading)?
If you need more control than that, you could apply one of these filters to your functions.php file:
To set all of the feed items to a single specific length:
Or, to trim the feed items at the ‘more’ tag:
Johan says
Thanks Chad,
I tried that code but it did not work but I found an existing filter in the Twenty-Eleven theme.
I changed the default ‘return’ value there and now it works.
Wanda says
Not sure this is were to ask but here goes.
Looking to use WordPress for an internal company site to share company information, news etc., restricting access to EVERYTHING unless you are permitted registered user. Registered users would only submit content via a input form they would all have access to. Would your plugin be a good choice for this? (Where basically everything is until login and then only the input for is only entry users can make).
Thanks.
Chad says
That’s not really what it does…
Valérie says
Hi!
First of all I love your plugin (and excuse me for my maybe poor english). I see the textarea to type my terms of use, in the panel Dialogs. But I can’t find, is there a checkbox somewhere to enable the terms and conditions?
I thought it was something like a checkbox that the user have to check to be registered; like “I have read and accepted the Terms and Conditions (with the link)”. Could you explain it to me?
Thank you very much!
Chad says
Whether you include that in the registration or not depends on if you have that field enabled in the fields. It is the TOS (Terms of Service) field.
Valérie says
Thank you for your fast answer!
Hmm I see. And what if this field is not there? Is it supposed to be there by default, or I have to create it? Because right now I have like name, website, bio, etc. but nothing about TOS. Maybe I removed it by error… Could you tell me if I habe to check something in the code or add something? Thank you!
Chad says
Since it installs by default, you must have deleted it. You can easily add it back with in the add field area by creating a checkbox field with the label TOS, option name tos, and set the checked value as agree.
Valérie says
Thank you very much, it works perfectly 🙂
By the way, I translated your plugin in french, once it will be final I will post the link here if you want.
Andrew says
Hi Chad
Looks like a great plugin, I have read both the Quick start guide and looked over the full guide but could not find an answer to my question, which is Can paid for membership be handled by the plugin?
Thanks for the great plugin, hope I can make use of it.
Chad says
It doensn’t have an integrated payment gateway at this time, although I am working on a payment/subscription module that will be released in the future (yet to be determined when that will be completed).
Franz says
Hello
I have installed WP Access Control. In the general settings, I have not blocked pages. There is one page that should be blocked. I added in the admin panel for this page the custom page blocked = true. With this, everything works fine, login form appears for login. And I can also see the link to this page.
However, if I use also in the admin panel for this page the WP access control menu, and I click on “only for members” (selecting a certain user group”), then the link for this page will disappear If I log out. Thus, it is not possible to login on the protected page. I am using weaver as theme. Is that a problem linked to the theme?
Chad says
If you are setting the page via WP Access Control that it is only for members, then that plugin is going to remove it if the user is not logged in. So I’m not sure why you would use both WP-Member AND WordPress Access Control. If you want the user to login on the protected page, take it out of access control.
Reindra says
i use this plugin and all of the content is work for me except 1 thing.
when i was activate the user, they receive email.but to login and change the password, the link does not exist?
I mean the (members-area) are not visible in the email recipient.
you can login and change your password here :
???? nothing here..
what should i do chad??
Franz says
Hi Chad,
thanks for your reply, I mixed up two plugins! I have now one problem: I would like to give access to a selected page only for a defined user group, not for all users. Is that possible with WP member plugin?
Kind regards
Franz
Chad says
Then you haven’t set up the location of the members area. The URL of this page must be set in the plugin’s options.
Chad says
No, the plugin does not have differing access levels at this time (although that’s probably something that will be added in the future – just don’t know when).
Valérie says
Hi Chad,
I have a couple more questions for you…
1- I have some problem with my emails; some of them are sent, some not:
-“Registration is Moderated”; I receive it
-“Registration is Moderated, User is Approved”; I do not receive it
-“Password Reset”; I receive it
-“Admin Notification”; I receive it
-and, should it be an email send when the user choose another password, by the area members?
I read the User Guide and everything, and I tried the test “add a new user” to see if it would send me the password, and it worked.
2- Is there a way to choose to who the “admin emails” will be send? Because as I’m the webmaster, I’m the only admin user of the website. But I’m not the one who will manage the site all the time; so I would like to set the email address for a new registration, for example.
Thanks a lot!
Chad says
Sorry, I don’t know why you wouldn’t be receiving certain emails. They all work and have been thoroughly tested, especially since the new version focuses predominately on rebuilding the email process for the customized emails. There is no email sent when a user sets their password in the members area – only in the case of a reset.
On the second question, you can set the email “from” address in the email settings in the new version 2.7. It should be noted that all of the emails are sent using the internal WordPress function wp_mail, which you can set a filter to change, but it’s an all-or-none setting (meaning when you change it for one, it is changed for all, so you could not have a registrations@mydomain.com and a passwords@mydomain.com)
Hope that answers your questions.
Valérie says
Hi,
Thanks, I will check for the emails, but I really don’t understand 🙁
For the second question, I think I don’t express myself right. I would like that, in the case of a new registration, it send a email to someone else that is not the admin of the blog, instead of send it to me. Is it possible to set it somewhere? Thank you,
Chad says
Ahhh… yes, that is possible. The plugin sends to the address that is set in your WP General Settings.
Valérie says
Thank you!
For the emails, in fact, the only thing that doesn’t work is the email when the user is approved… Don’t you have any clue or something I should look for? It’s a big problem for us 🙁
Chad says
There are two places to activate a user – the Users > WP-Members menu and the individual user profile. They both fire the same function, but have you tried both possibilities? Have you tried deactivating other plugins to determine if there is something interfering with the process?
Valérie says
I just tried it; the both options, and then desactivate all the other plugins. Still doesn’t work 🙁 I will try to see in the email.php but I’m not so good in .php and anyway I don’t think I have changed anything there… If you have an idea feel free to share it with me 😉 When I’ll find the answer I will write it here…
Thanks a lot, a wonderfull plugin anyway, I will certainly donate for this!
Reindra says
can i have the explanation chad?
i really confused where to find it and change it
Chad says
If you haven’t set the location of the members area in the plugin’s settings, there is no url for the plugin to put in the email. Have you reviewed any of the plugin’s instructions on setting this up? It is discussed in the the Quick Start Guide (page 4) and in depth in the Users Guide, both of which are linked to here: http://butlerblog.com/wp-members/.
Reindra says
I’m sorry chad, but i’ve already adding a new page called
“members area” but it’s still didn’t work for me..
please text me here how i have to do??
i read the guide over n over but still coulnd find my problem..
thanks before
Lambert says
Is there a way to prevent duplication of usernames? Once logged in to my site, the users have access to a forum, and with duplicated usernames, things will get confusing.
Chad says
WP-Members registers users via the WP registration hooks. Using the WP functions
username_exists
andemail_exists
, it does not allow duplicate usernames or email addresses that are in the WP users table. So if your forum relies on the WP users table, then you should integrate just fine.Lambert says
Thanks for the speedy reply Chad, It was working all along 🙂
Hinson says
I’ve followed the instructions correctly (I think) but cannot figure out where the ‘registration’ link is supposed to show up. I tried putting the widget in the sidebar but it only shows log-in user/pass fields. No register link. What am I doing wrong?
Chad says
If you set up a registration page using the register shortcode and if you put the URL of that page in Register Page URL setting in the plugin’s options, then a link to the registration page will show on both the sidebar widget and the login form that shows in the body.
If the Register Page URL setting is left blank, then this link will be excluded.
Hinson says
Chad; thanks so much for the prompt reply. That was exactly what I was looking for and had created the page but didn’t realize I needed to put the URL in the settings section. Link now shows up as expected.
Thanks again;
Hinson
Jonathan Carbaugh says
I am having a similar issue with my registration page. The first name label appears in the right column and then all of the following text boxes are pushed down. This is happening in IE, but not in FF or Safari. I’m not sure the issue is the same as Derrick’s since it is not all of the text boxes, and it is not all browsers.
Any help is appreciated.
Chad says
Same issue, same answer as above… You need to change the width of the fieldset and the elements inside accordingly.
Jonathan Carbaugh says
Thanks for the help and quick response!
Chad says
no problem
Ken Blackman says
I’m having a problem since installing version 2.7. The user gets created but no email goes out, to them or to admin.
I’m increasingly certain the problem is isolated to this plug-in. I’ve tested a bunch of times:
Create a new user in the Admin Panel using Add User:
– user created
– emails go out
Create a new user using the wp-members form:
– user created
– NO emails go out.
Additional information:
This was working fine before, now it’s not.
I have it set to auto-approve the user, and this working as expected.
I’ve checked the installation against a freshly downloaded and unzipped copy, and the contents are identical.
Nothing showing up in the error_log related to this.
Any suggestions on how to proceed?
Mel says
Hi Chad,
Great plugin and works good for me. I am only using it for logins not registration.
I added your members login widget to my sidebar which i really like. So my question is:
1) when a user is not logged in and click on the members-area page they get your
message and login form. I would only like a message to appear because the widget
already shows the login form.
Thanks for a great plugin…
Mel
Chad says
I understand what you are asking, but that’s not an option that the plugin offers.
Usman Ahmed says
Hey guys, you are doing a great job. I love this plugin and using it successfully. I will certainly make a donation to you. You really deserve it. You really deserve appreciation for such a great work without any fee. Thanks 🙂
Ravi says
Hi Chad,
1) I see that the new version 2.7 is available! If i allow members to choose their own password, will they still get an email with their login information?
2) Is it possible to let the members automatically login after the registration? especially when they are allowed to choose their password.
Thanks.
Chad says
Yes on both counts.
Hinson says
Mel; what I did was create a text widget with link for the password and profile info and placed it on the sidebar under the log-in widget. You can see what I mean here. http://www.hinsonroots.org/wp
Is this something that might help you?
aj says
I am trying to find a way to work WP-Members with Alo EasyMail Newsletter without having to use Alo EMN for subscription purposes. I added a field to use for opt-in on the WPM fields tab. Installing Alo adds the Yes/No field for newsletter with the native WP user login/reg; and I can import subscribers from WP-Members into my newsletter subscribers, but when I do that it grabs all registered users with no way to select only those that have checked the field I added to WPM. Since WPM already pulls the native field from WP into the field tab, any way that I can also pull Alo’s optin field to WPM’s field tab?
Mel says
Hi Hinson,
That looks good and would remove my having two login forms…. I will give it a try… thanks…..
this forum is great and love the plugin….
Wanda says
I want to secure my WordPress website to use as a company private intranet. I have a list of users (names and e-mail) and they will be the only ones to access for company information. The only changes they will be making will be to submit reports via filling out a capture form. So anyone accessing our URL will be presented a login screen (nothing else publicly visible) and then they can see the site once logged in. Is your plugin suitable for this and is it a simple setup to block ALL or do I have to go level by level to do this? Also, what ‘role’ (level) would be assigned to these users to accomplish this with your plugin?
Chad says
This is probably not the plugin you are looking for.
Chad says
IF Alo’s optin field is stored in the usermeta table, you could probably add this to the WPM fields. You would need to know what the meta_key for Alo is, this would be what you would set in the option name when creating the field in the WPM fields tab. I assume it would be checkbox, so you would also need to know what value it stores in the meta_value, which is what you would set for stored value if checked.
aj says
Great – thanks – this gives me something to start looking for and see what I can figure out.
Anton says
Awesome plugin, I’ve minimized the form, using css and changed the structure and use 100% width etc etc – I’m now trying to add the form [shortcode] into a widget – but it gives me an error, how do I add this form to a widget?
Regards
Chad says
There are a number of issues here. First, shortcode processing in text widgets is not necessarily enabled by default. You can do that by adding a filter to your theme’s functions.php file:
However, the WP-Members shortcodes are not intended for use in widgets, so while you can enable your widgets to execute shortcodes, you probably will find that this not going to work very well.
What exactly is it you are trying to put into the widget area? The plugin already has a login widget available.
Moak says
WP-Members is great I’m glade I found it. This does every thing that I wanted and it was easy to set up but I do have one Issues and after viewing the guide and the forum I don’t see any thing on it.
I have my site unblocked by default and have one page block so only subscribers can use it but I’m have a issue once they get their and sign in the page opens but when the leave the page it not loging out when they come back to that page it open and the can view it. I thought maybe it was because they weren’t using the log out option on the top of the replay box header so I made sure they retried and use the log out and when there do it they end up with this ( You are attempting to log out of NYTRO Inc Do you really want to log out?) they click on the log out and they get dricted to this page NYTRO IncYou are now logged out.
WordPress
You are now logged out
Username
Password
Remember Me
Lost your password?
← Back to NYTRO Inc
So you would think they are logged out but know if there to go back to the site and click on the button for that page instead of getting the log in box the page is open to review.
What am I Missing here?
Thank you
George says
Hello,
I use this plug in and i’m 100% pleased.
The last days I have a problem. When a new user registers, the email that takes is blank. I take the same email because i’m the admin and it’s blank to me too. I made a new user through wp and i received the mail with the right content. I suppose that the bug is in wp_members plug in. Can you please tell me what to do?
Chad says
Is this in WP-Members 2.7? If so, check the email tab in the plugin settings to make sure the default messages loaded during the install/upgrade:
http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Natalia says
Hi there,
Great plugin, I just have a small problem. I have one page on my site that is restricted to members only. This page features links to posts displayed as a thumbnail and the post title. The restriction works fine for the posts – you click and it asks you to login, but I don’t want the thumbnail/titles to be visible at all on the page. All post links display below the page login area. Any idea how I can hide these links until the user has logged in?
-Thanks.
Andrew says
Great Plug-in!! Thanks for developing it.
Is there a way to resend login credentials to all users at once. I got caught in the 2.7.0 email issue. I activated a bunch of users and they did not get log-in credentials, before I noticed the above post.
Thanks have a great week.
Chad says
Sorry to hear that Andrew – I’m sure that’s frustrating. The easiest way to do that would actually be directly in the database (make a backup FIRST!!). You can use PHPMyAdmin or some other tool.
Essentially, the activation process puts a flag ‘active’ in usermeta for the user. If you delete this meta value for any user you activated, you can then go an reactivate them in the plugin. It will definitely be a plus if you know which users you activated.
Did I mention, make a db backup BEFORE trying this?
Get a list of the users that you activated in order of the user IDs:
SELECT * FROM `wp_usermeta` WHERE meta_key = 'active' ORDER BY user_id;
Then you can see where you need to delete. I would doublecheck the user IDs you are working with, but if they are sequential, you could use something like the following, making the assumption that all users with a user ID higher than 41 (but not including 41) need to be reset:
DELETE FROM `wp_usermeta` WHERE meta_key = 'active' AND user_id > 41;
This would delete all the records where the user ID is greater than 41 and the meta_key is ‘active’. Then you could go into the plugin’s user management table and do the activation process again.
If you are dealing with just a few users, it might be just as easy to reset the passwords in the user profile and send them a personal note. If it’s more than a few, the above is probably your best bet.
Hope that helps!
(Incidentally, the 2.7.1 update will include a deactivation process so you could deactivate the users (although not in bulk), then reactivate (individually or in bulk). If you want to try that, I will have a release candidate out for public beta trial sometime tonight. It will be posted on the blog.)
Terry says
Is there a way to remove the “This post is password protected. Enter a password to view any comments.” on the password protected pages?
Also, is there a way to remove the powered by wp-members? Maybe with an upgrade?
Thanks!
Rachel says
Hi Chad,
Is there a way to change the field legend? I would like to change the text that says
“Existing users login” and “New user registration” on the registration page.
Thanks!
Ashish says
Awesome Plugin .. Thanx a ton !!
Please help me in removing the wordpress status bar that appears on top of page after the user logs in.
Thanks..
DJ says
Hi, I am using a landing page and once a member logs in I would like redirect them to a page of recent blog entries is this something that can be done with wp members. Love the plugin its a lifesaver to the php impaired.
Thanks DJ
Chad says
http://butlerblog.com/2011/09/23/how-to-disable-the-wordpress-admin-bar/
Chad says
You can test the 2.7.1 beta. There is a filter hook for a login redirect, although the hooks included in that release are subject to change. (Information what is in the release and where to download here.)
An example of the wpmem_login_redirect hook would be to add something like this to your functions.php file:
Chad says
The only way to do that would be with the pluggable functions feature. The functions involved would be found in wp-members-dialogs.php. I have to warn you that in this case, it would be a little messy. You would be making a custom function for the entire registration form to change just the heading. Even though you can upgrade cleanly using this process, you’ll still need to monitor upgrades for changes to that particular function.
Dj says
Thanks Chad Ill give 2.7.1 a try
DJ
Ashish says
Thank you so much !!
Claire says
How do i delete a registared member?
mikael Boldt says
I have upgraded to the latest version, and now I am facing some problems with the email communications with the users.
There are 4 emails in in admin area:
Registration is Moderated.
Registration is Moderated. User Approved
Password Reset
Admin Notification
but to whom are the mail intended? and what should be the content of these?
Chad says
You can delete a user from the Users > All Users menu. However, if you delete a user, that frees up that email to be registered again, so if it’s someone you are trying to keep from re-registering later, it would be better to change their password to something random. (Also, if you use user moderation/activation, the new 2.7.1 beta adds user deactivation.)
Chad says
Mikael – Sounds like you are one of the ones experiencing this problem: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Also, the 2.7.1 upgrade will fix this (and provide some additional features). It is presently in beta, but most of it is fairly seamless. Just doing some additional testing on the new activation/deactivation features. http://butlerblog.com/2012/01/30/wp-members-2-7-1-beta-release/
Saint Castro says
Hey Chad,
I’m having a few issues over here with trying to get these short codes working on my pages. I’m building a site for a client who wants restricted access to a few pages and a way for people to register to the site. I have your plugin installed and seemingly working fine, but I’m unable to see anything on the pages I add the short codes to.
I’m adding both the registration code [wp-members page=”register”] and the members a [wp-members page=”members-area”], but even though I’m adding these codes they’re not showing up on the pages. I don’t have any pages/posts blocked by default, and I even have the custom fields used for unblocking a page. Can you please give me some help kind sir?
Chad says
Have you tested this with other plugins turned off to see if there is a conflict with something else?
Hinson says
Also check and see if the theme you are using requires you to either check or un-check pages somewhere in the settings to have them show up on the nav bar. My theme (suffusion) does.
Russell Smith says
This is probably something embarrassingly simple, so I beg pardon in advance. Nonetheless, I can’t seem to find a definitive statement on how to access custom user field information in page code.
I’ve added a custom user field called “theme” which I want to use to select the background for various pages, so on the code for that page or category, I get the current user, then what? All I want is the string saved in the “theme” custom user field to append onto my file name url.
Saint Castro says
I turned off a few plugins I wasn’t using and that did the trick I believe. Thanks Chad, Killer plugin!
Russell Smith says
Well, I bloody well figured it out and it was just too simple 🙂
echo esc_attr(get_the_author_meta(‘theme’,$current_user->ID));
Chad says
Or using the get_user_meta function (http://codex.wordpress.org/Function_Reference/get_user_meta)
Per Laustsen says
Hi
I am not sure this it is “Out of the box”.
I have put the widget “WP Members login” in the sidebar, but I don’t see any link to users where they can register themselves.
I installed the plugin via wp – searched for wp mebers – activated it and folloved the quick start guide.
Nothing is locked.
Chad says
“Out of the box” means that you don’t have to do anything but install it. Unlike some other plugins, you do not have to wrap protected content with shortcodes (although that option is available). You can just specify that you want all posts to be blocked by default.
If you followed the instructions in the Quick Start Guide correctly, you should be blocking content. Perhaps you did not understand all of the instructions? Remember that Posts and Pages are handled separately and on Posts, you MUST be using the ‘more’ tag. Also when blocking pages, if you have selected to show excerpts, you MUST use the ‘more’ tag. These are the two most common issues when someone says, “nothing is locked”
There is no automatic link on the widget to register. If you have set up a specific registration page using the [wp-members page=”register”] shortcode, then specifying the location of that page in the plugin’s options will display a link to it in the login form. Likewise, if you set up a the members-area page for managing user registration information using the [wp-members page=”members-area”] shortcode, and specify the location of that page in the plugin’s options, it will display a forgot password link in the login form.
Gary says
I am having the same issue as a couple other people. When a new member registers, they are not receiving an email with their password. I have tried setting up a new user in the WP User area and it works fine, WP emails the password to new user. When I create a new user on the WP-Members Registration page, the user is created but does not receive a confirming e-mail.
1) I have disabled plugins recently installed
2) Tried resetting the permanent links
3) Checked my settings in the WP-Members Settings panel
Thanks to anyone who has a solution!
Gary
Chad says
Is this a new install that never was working or is it an upgrade that was working before?
Gary says
I installed WP-Members back a few months ago and it was working fine. It’s only a demo site so it’s not being used everyday. At some point it stopped sending password e-mails to new registrations, not sure when?
I haven’t added any new plugins to the site except maybe updated WordPress.
Chad says
This will likely solve your problem: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Saint Castro says
Hey chad back again,
This time I’m having issues with registration. It seems everytime someone fills out the registration form an error is made.
Fatal error: Call to undefined function validate_username() in /home/content/30/8870630/html/wp-content/plugins/wp-members/wp-members-register.php on line 67
I don’t know what to do, any suggestions?
Chad says
That is very strange – validate_username is a native WP function that is part of the User API, so there’s not a reason that it would not be loaded. I took a look at your site and it seems to be working to me.
Jeri says
I installed WP Members into my WordPress site using the theme Elbee Elgee, and it was mostly working fine to block users that were not logged in from seeing certain pages…..instead the user was presented with the Existing Users login fields. I had to change my theme to Theme 2011 to have the archives and categories in the sidebar display full text to users who were logged in. Now, for a user that is not logged in, the page is blocked and the Existing Users login field is displayed but I’m also seeing a comment or footer at the page bottom telling me that this post is password protected…and it’s not. If I do a “view source” I find these lines
This post is password protected. Enter the password to view any comments.
in the source for the particular page id.
I’m not a programmer so I’d rather not change any of the source code files. Is there a setting or conflict of settings that I’m running into?
Chad says
In order to prevent comments from displaying to users that are not logged in, WP-Members generates a password on the fly for any content that is blocked. The text you referring to comes from your theme’s comments template.
Wanda says
After reading your setup documentation, I am confused by your response.
If I set your plugin to block all posts and all pages, won’t people be required to login to the Website and only those people will be allowed to see what’s in the site? (blogs and pages?). All that would be visible to public is the login that would be required at the home (blocked) page?
Wanda says
If I understand your plugin capability after reviewing the documetnation, it appears that all members have the same access. (i.e., once a member is logged in, they will have access to anything any other member has access to – that there is only one membership ‘level’). That will work for my needs if correct.
I have a team of members already established that I’d like to add to a new site. Can I import a list of members into the USERS list (e.g. name, e-mail address, password)?
So my thoughts on the process would be:
1. Install WP
2. Add your plugin (block all pages and content)
3. Import members. (maybe this is #2 step instead?)
Now only members can access content on he site. Correct?
Chad says
That depends on what you mean by “the site.” If you are looking for something that blocks users from viewing anything as you described in your original question, this isn’t going to be what you want. This plugin restricts content specifically. The navigation structure will remain intact (although you can make customizations to your theme to allow for different menus based on login, etc).
Also, as you previously indicated, you asked about users being able to post content via the plugin, which the plugin also does not do. WordPress does already have built in solutions for this with different user levels. The plugin will assign all registered users whatever you have set in WP as the default role. You can set that to something that allows content posting if you want.
You won’t be able to straight import passwords. WP encrypts passwords in the database using PHPass. If your password import is PHPass encrypted OR MD5 Hash encrypted, then you would be ok to import directly. (If passwords are MD5 encrypted, WP can read the password and will re-encrypt to PHPass when the user logs in.)
Childless Parent says
I thought I did everything right, but when I log off then google certain posts, sometimes I can get them in their entirety…sometimes I’m directed to the registration page. I’m not at all well-versed in code, but do I need to go to “screen options” for each post and make sure it’s blocked there in addition to having the “block posts by default” button checked? I’ve had terrible trouble with lurkers and a stalker and need to make sure I’ve buttoned down every bit of access to anyone who is not a member. Thanks for your help!
Chad says
You are not using the ‘more’ tag in your posts, hence the full content of each post is available in category archives. Please review the information on protecting posts in the Users Guide and/or the Quick Start Guide (page 3) or the very first FAQ on this page for more about this.
aybeniz says
Hi, thank you very much for the WP-Members plug-in. I plan to use it for a site to display primium content only for the members. While learning the plug-in, i checked “Holds new registrations for admin approval” option at Manage Options. But then whenever i tried to edit a user and update User, without checking the check box “Deactivate this user?” option turned to “Reactivate this user?” and “Activated?” area of the user turned to “No”. I looked at the file wp-members-admin.php. I found out that if the check box is unchecked; it sends the value=”0″ which is the value which has to be send when “Deactivate this user?” is checked. So “Deactivate this user?” always sends the checked value whether it’s checked or not. To fix this i have made 2 little changes at wp-members-admin.php
$label = __( ‘Deactivate this user?’, ‘wp-members’ );
$action = 2; //$action = 1; to$action = 2; at line 118
break;
and
elseif( $wpmem_activate_user == 2 ) {//$wpmem_activate_user == 1 to $wpmem_activate_user == 2 at line 168
wpmem_a_deactivate_user( $user_id );
}
I didn’t define anything for the case $wpmem_activate_user == 0 because if the check box is unchecked everyting should stay the way it was.
I tested it carefully and it works very well now. Since i am very new to php and WordPress, i am not sure if i did something wrong. But i like to think as long as it’s work it should be fine. Maybe there is a better way to fix this but unfortunatelly i could not figure it out by myself 🙂 If there is a better way, i would like to know about it and correct my code.
Chad says
It is never a good idea to be editing plugin files directly. Obviously, in some instances, you might have to if a plugin is not longer supported. But it is generally a very bad idea to get into this habit. If you make a direct change to a file in a plugin, that change will be overwritten when you upgrade the plugin. When upgrades are available, it is a good rule of thumb to upgrade. (NOTE: it is also a good rule to test an upgrade in a testing environment before upgrading a live site.) When a plugin is upgraded it is generally fixing something.
What version of the plugin are you using? The problem you are describing was limited to the 2.7.1 release and was fixed in 2.7.2. So if you are using 2.7.1, you just need to upgrade. If you are using 2.7.2, you need to let me know so we can look into why this is a problem.
I do like your solution and although the fix is already in place, it’s similar to a direction that I considered. I may still change it completely. However, the problem isn’t exactly because “if the check box is unchecked; it sends the value=”0″.” It actually sends and empty value ”. In php, comparison operators can be a little tricky. The problem is that using “is equal to”, ” == 0 is true. But these are not identical because 0 is an integer and ” is not. So I probably should have used the comparison operator “is identical to” or ===. This would have been false because ” === 0 is false as they are not of the same type (unlike ” == 0, where type does not matter). Hope that makes sense.
aybeniz says
Thank you very much for your reply. I have upgraded to WP-Members 2.7.2 and the problem is solved.
Kathleen says
Can I set up the plugin so that only certain people need to register and login? I want most of my content viewable by anyone without logging in or registering, but I need to have an area that sellers can log in to so they can view their sales and the shipping information they need to see. Is WP-Members a good fit for this application?
Chad says
Yes, what content is blocked and not blocked is up to you. The plugin installs one way be default, but you can change the plugin settings to suit different applications such as only requiring certain content to be blocked.
Please review the users guide and the quick start guide for more information on blocking/unblocking content.
Per Laustsen says
I have made a danish DA_DK.PO file and uploadet it with the mo file, but I don’t understand why several of the names on the registration page is not translated to danish.
Vælg et brugernavn* – this is translated, but as You see – the rest is not!
First Name*
Last Name*
Address 1*
Address 2
City*
State*
Zip*
Country*
Day Phone*
Email*
Where to fix it?
Chad says
Per, please see: Forcing translated field names when use translation files with WP-Members
IvanPsy says
Is there a way to integrate WP-members with Aweber, so that when a visitor subscribes to my site he’s added to an Aweber list?
Or…is it possible the opposite process: a visitor subscribes to Aweber –> he’s added to WP-members?
TNX!!!
Chad says
wpmem_post_register_data is a filter you could hook into to grab the user’s registration data so you could post it to Aweber. There is some info on this in the User’s Guide. Here’s a framework:
Neill McShea says
Hi there,
I have made an effort to read most of the comments and FAQ’s so I’m sorry if I have already missed an answer to this:
I have checked that my WP site is adding new users and sending login details correctly which suggests the WP_mail function is working correctly. However, users who subscribe through the members page set up through this plugin are not currently getting an email even though they appear in the list of users after signing up. Any suggestions as to how I can trouble shoot this?
Neill
Chad says
First, double check the spam folder to make sure they’re not ending up there.
Verify that the default emails loaded correctly (check the email tab in the plugin’s settings). These may have not loaded at install. More on this here.
If that’s not the problem, I would suggest trying the WP Mail SMTP plugin. Some hosts restrict emails sent from php scripts. Even if wp_mail is functioning correctly, if you have the plugin set to notify the admin of a new registration, 2 emails are being sent at the same time. Your host may have restrictions on this and throttle the emails (they do this to prevent spammers from sending emails via scripts).
These should cover the known problems. Hope that helps.
Neill McShea says
Thanks chad, it was the upgrade that did it. I wasn’t aware one of the other guys updated the plugin. Thank you.
Neill
Hinson says
Since last night, I’ve had 3-4 people register on my site with similar registrations. All the activations look similar. Here is what I get in the email sent by WP-Members
The following user registered for (and is pending approval)
username: OVSZgjAcbHVpbPieDO
email: wxbdgato@qsiaedgl.com
First Name: Aqub
Last Name: Aqub
How Did You Find Us: Aqub
City: dxitROWTyJKqoTW
State: OtLHAjDRPgI
Zip: gHFvJHhtNxwVAQhweve
Two questions: what is happening here and
when I go to the activation page, I do not see any method of deleting these members other than activating and then deactivating/deleting.
Help
Chad says
I truncated your post to just what we need to make the point. That is coming from a bot or some other automated process. You can use reCAPTCHA to avoid these.
Deleting users can be done from the Users > All Users page.
Neill McShea says
Hey Chad,
Since fixing that email issue, I have had a new issue. When I go to the login or register page the forms are showing up 3 or 4 times in a row. As I mentioned this was all working before the update to the plugin, so I’m not sure if we have changed anything on our end.
I found this: http://wordpress.org/support/topic/plugin-wp-members-registration-fieldsforms-repeat-several-times-on-page but I’m not sure what this means.
Hinson says
Yes, but I have to activate the user first. Is there any method to deny a user?
Hinson says
Thanks for the response. I thought I had captcha enabled. It is now enabled and hopefully will end the problem.
Chad says
You don’t have to activate them to delete them. Just go to the Users > All Users menu to delete the spam registrations in bulk.
Chad says
It’s possible that you are using a theme that has more than one instance of The Loop. Or, you would could similar behavior if you are using multiple WP-Members shortcodes on a page. But the first is more likely. Try testing in a simple theme (such as TwentyTen or TwentyEleven) to confirm.
Raygun says
Hey Chad,
Your plugin works great here! I have one question on login form. Is there any hooks or filter to change the text above the login form that says ‘Existing users Login’?
Keep up the good work!
Thanks man!
Chad says
At this point there is not. But I may include that in a future release.
Hinson says
I would like to see the ability to hide menus/menu items also. Any possibility of that?
Jim says
How do I get WP-members to NOT overwrite my home page? I have the registration page set up and I have the widget with the registration button established, I don’t need all the registration stuff on the home page too.
Chad says
If you are seeing a login and registration form on your home page, it sounds like you have a static home page set up? If that’s the case, you would want to have that page be unblocked (otherwise the plugin will recognize it as any other blocked content).
Jim says
It is static. It’s been a while since I created it. I don’t mind the home page being open, it’s everything behind it I want secure. The home page is set to public.
Jim says
If it’s NOT static, then all the blogs go onto the home page, and it’s the blogs that we are trying to keep OFF the home page. We call our blogs “news” and post them to a news page. Our home page is just a static, hello, how are ya, this is who we are, register or log in page. It looks great once users login. Its a 1 column with content page, and I have the wp-members widget on the top of the right column that says login or register. I just dont need all the repetitive log in and register stuff on the main body of the page. There has to be a way to do this.
Chad says
What you need to do is make sure the home page is unblocked per the instructions for unblocking pages in the WP-Members Users Guide. This amounts to setting a custom field of unblock for the page (since I assume that you have set the plugin to block pages by default, or it wouldn’t be showing the login/registration forms).
Jim says
Well, nuts.
I just discovered that when I use a sidebar template (twenty-eleven) all the content in the sidebar are public, if they are on a public page. So I am doing a little redesign on the fly. Is it possible to put the wp-members widget on a page without it being on a sidebar?
Chad says
You can’t call a widget directly unless the area is registered as a widget area. However, you can call the function directly with
wpmem_do_sidebar()
. That function generates the sidebar login and returns it as an html string, so you’ll need to echo/print the result:Jim says
Ok, I’ve got all the issues resolved. Access seems to be tied down pretty well. I like your program and will send a contribution tonight. Do you have a paypal button somewhere?
On another topic, the “Forgot? ” button on the log-in widget seems to not do anything other than return me to the same screen I’m on, which is the home screen.
How is it supposed to work? I assume that I have missed a configuration somewhere, but in searching the user manual, I don’t see it.
Thanks,
JIM
Chad says
Glad you like it! Yes, there is a paypal button in the plugin, and also on http://butlerblog.com/wp-members/
The forgot password link will take you to the forgot password dialog on the members area page. It only shows if you have set that URL. The URL you put in there should be the location of the page on which you set the [wp-members page=”members-area”] shortcode.
Jim says
Boy, this is like hitting a moving target.
I get one thing working and then the other end goes bananas.
Now, a blog on the page /mysite.com/news/ is open to the public when the direct url is typed in. This happens when I am not logged in, but just type in the direct url for my news blog, which is supposed to be locked out to non registered users. It comes right through. It’s supposed to give the “registered users only” message.
The excerpts on the home page stop at the tag, but the direct url opens it right up. Im about to break the computer.
Jim
Chad says
Is the /news/ page a WordPress Page showing posts? Or is it a category tag showing posts. If it is a category archive template, you would see the post excerpts stop at the ‘more’ tag. If, however, you are using a Page to display posts, you may need to set up a custom template for that. I’ve had some users set things up that way and have set up an outline describing the process here:
http://butlerblog.com/2011/10/04/blocking-content-in-a-custom-template/
Jim says
Yes, the /news page is a page that is showing posts. I set it from the reading (or writing? I forget) panel under WP settings. The same place I set the home page as static. I will look at your link and see if that helps. Thanks for your support so far. I haven’t been at this very long and learning WordPress is hard enough by itself. Add in a few plug-ins and it’s like dancing in the dark in a room full of holes.
Jim
Chad says
Well, if that turns out to be either too complicated, or doesn’t fit your situation, I do have another possibility.
This example uses the WP action
pre_get_posts
:You would add this to your theme’s functions.php file.
You may/will need to make some adjustments to this to fit your case. First, I am assuming that the page in question has a slug of ‘news’. For
is_page()
you can give it the ID# of the page, the slug, or the Title. Adjust as needed. You’ll also need to changewp_redirect()
to the appropriate url.In this example, I’ve just made this redirect the user to home page if they are not logged in when they come to the ‘news’ page. You could redirect this to a login page or something else as well.
Hope that helps – it may be easier for you than the other example.
jo says
Hey Chad,
I’m looking for different levels of access.Is it possible to move the whole content with user login details from wp member plugin to other membership plugin without any hiccups?
Thanks,
jo
Chad says
Sorry – I really don’t know the answer to that. The plugin doesn’t make any changes to content, and the users are stored in the wp_users table, following the same protocols as WP, so it whatever you move to follows that, then you should be fine.
Fred says
This looks like a nifty plugin. I’m putting my client’s existing static site into WP, and need to implement a Members Area. I want our org’s members to be able to login to, or register for, the member’s area with their membership ID, to be held in a mySQL or (shudder) Zoho database. Can the wp-members plugin be set up to authenticate to an external database, or would I have to feed membership IDs into the WordPress database to allow members to self-register? I really prefer the former because I want the access to lapse if a member doesn’t renew her organisational sub.
There are a lot of membership plugins around and not much time (I have to run this site in my personal time, hence posting this at 11pm!), so it would be nice not to have to kiss too many frogs before finding my princess :o)
Fred
Chad says
The plugin runs off of the WP users table. If you end up trying to sync from an outside table/db, you’ll need to make sure that you fully understand how WP structures user data (http://codex.wordpress.org/Database_Description)
jim28100 says
Hi Chad,
Solved most of my problems by trawling through your tips and trick pages. However, I can’t seem to get the ‘wpmem_login_redirect’ function to work? I’ve purposely built the test site using a ‘child’ of the twentyTwelve theme to ensure there are no theme-specific issues.
Any ideas?
This is I have in the child function.php page.
Jim
Fred says
Thanks for the reply, Chad – that’s useful.
Daniel says
Hi. I’m not looking for a solution but yes for some clarification.
Can I :
Block page/post 1, 2 and 3 to be viewed by user A – While user B can view page/post 4, 5 and 6 ?
Is there any way to limit the time a user or member can have the subscription active ?
I’m trying to offer to some of my users to edit some specific posts containing their business info. My ideal goal is to let them do it but first they will need to become members of the site, second they will need to pay a fee that will expire 12 months after their registration. A very basic concept but I don’t know if your plugin will suit my need or if at least will make a great start (requiring some modifications) .
Thanks in advance and sorry for my poor English
Daniel
Chad says
Daniel, thanks for your post, but the plugin does not do that.
Matt says
Hey Chad,
I don’t have a “forgot password” function showing up on my login/registration form. Should that be there? Is there a way I can have it there?
I have been having some issues with users not being able to login because their passwords are being denied so I need for them to hit a forgot password function and have it emailed to them. Any suggestions?
Chad says
If you have set up a Members Area page using the the members-area shortcode, set the url of that page in the plugin options. That will display a forgot password link in the login forms.
barbara says
Hey Chad, awesome awesome plugin, does exactly what we need.
One problem: The “you must be logged in to comment” blurb is still taking people to the default wordpress wp-login — not the nice inline wp-members one. I have defined both the registration and members area pages in the plugin settings, but these don’t appear to have an effect.
What do I need to do to force wordpress to use the wp-members registration page instead of the default WordPress one?
Chad says
That’s actually part of your theme’s comments.php template. You can make an easy modification to the theme comments.php file at the end where it generates the comments form with comment_form() – replace the comment_form(); call with this:
Update the url accordingly…
Also, it is highly recommended that if you are making modifications to your theme files such as this, that you be working in a child theme. That way if you are using something like TwentyEleven, your changes won’t be overwritten when you upgrade WordPress. Likewise, if you are using a theme from a developer that releases updates, working in a child theme will keep you from having your changes overwritten when you update the theme.
John North says
I suspect the issue i’m having is related to what Barbara describes. I setup a register page at: http://50plus20.org/register and specified it in WP-Member settings area. However my blog articles (e.g. http://50plus20.org/archives/574) under “Leave a reply” only offer the option “You must be logged in to post a comment.” pointing to wp-login.php. I checked comments.php (Solostream responsive template) and assume you are referring to the line that reads: ID); ?> which needs to be replaced?
thanks, John
John North says
Correction on previous post: I checked comments.php (Solostream responsive template) and assume you are referring to the line in angle brackets that read: php do_action(‘comment_form’, $post-“>”ID);
barbara says
YES! This did the trick.
Thank you very much for the awesome support! I am going to donate to this plugin right now.
(I suggest others on this comment list do the same — I’m a WP developer and I know that responsive plugin authors are hard to come by!)
Thanks!
-barbara-
Chad says
That is where they are accessing the comment_form. However, by adding the do_action, they are creating an action hook, so it may be that you need to use add_action to hook into it.
Chad says
Thanks barbara for the donation! It is appreciated!
Glenda says
Hy,
Is there a payment module integration for wp-members?
sorry for my bad english.
Thank you!
Chad says
Not at this time
Oskar says
Hey!
Loving the plugin and everything works perfectly except for the widget – I get “logged in as” and then the username won’t show. (The site uses the Swedish translation and reads “inloggad som”)
Any idea why? I haven’t been touching the original files at all.
I’d be very thankful for input!
Chad says
Sounds like the string variable for the username was not included in the translation file you are using. The string is “You are logged in as %s” and the %s should also be in the translated string.
Oskar says
That was it!
Please be patient – I will make a donation after I’m finished!
Rae says
I think what people are trying to say is that the link IS appearing where you say it does, but clicking on it doesn’t do anything—it just redirects to the login page.
I’m currently in the process of developing our church site. I love the plug-in so far and I think it will be a huge help for the site, but we really need a functioning password reset. Aside from that the plugin is fantastic.
Chad says
The plugin does have a functioning password reset. If the link is going to a login, then you do not have something set up correctly.
These are the correct directions:
(1) Create a members area page as outlined in the Users Guide or the Quick Start Guide.
(2) Make sure that if you are blocking pages by default, that this page is not blocked (following the instructions in the guides for unblocking an individual page).
(3) Set the URL for that page in the plugin settings for the Members Area.
Rae says
1) Check
2) Pages are unblocked by default
3) I set my members page created in step one as the Members Area URL under WP-Members Settings
Here’s the page: http://www.westark.org/members/
After digging through your plugin code it looks like in wp-members-core.php you call off to wpmem_reset_password() when the query string contains “a=pwdreset.” However, wpmem_reset_password() only has a case for a form POST, and no password reset form is ever displayed.
Chad says
Rae – I took a look at your site – your members area page is not http://www.westark.org/members/. It is http://www.westark.org/members/edit-my-info/. Put that in the settings and you will find that the reset password link will direct appropriately to http://www.westark.org/members/edit-my-info/?a=pwdreset
Rae says
Ah I see. My apologies. I suppose I had assumed my members page was my “Member Area” and I mixed up the terminologies.
Chad says
No problem – it’s kind of a legacy nomenclature issue. Now, six years down the line, there are some things like naming conventions that I would like to change, but it effects too many users. One of the overarching philosophies of this plugin has been to make upgrades so that users do not have to make any changes to implement the upgrade. I’d like to switch “members area” to “user settings” or something like that, but that would require thousands of users to get in and make a wholesale change. In my experience, I have found that the vast majority of users do not read the update notices and simply apply the upgrade to a production site without noting the changes or consequences, so making a change like that ends up breaking a lot of sites. I’ve found it best to keep those to a minimum.
ian robson says
http://ddmcomputers.com/~srct/wp-blog/ is the url to the development site. My question is that i placed the login widget in the sidebar but it does not show the forgot password or register links when I am not logged on. What have i done wrong.
Chad says
If you have set up shortcode pages for the members area and registration, set these urls in the plugin’s settings. This is covered in the Users Guide (and also the readme file under Special and Optional Shortcode Pages).
Kenny says
I’ve installed the plugin and have all the content filtering working fine. However I’m having issues with the user registration. I’ve confirmed that the wp user registration is working and sending the emails, so it seems wp_mail is working. My issue is that I’m not getting any email notifications to the admin or user that a new user has been created.
Please advise.
Chad says
I would start by checking to make sure the default email fields were properly loaded at install:
http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Makar says
Hello Chad,
Thumbs up for the plugin,
I’ve a few questions and tried to find my answers in the other posts, but didn’t find them, maybe you can point me to the right direction.
1. I have the sidebar login activated but I’m not able to stop the login in the content container.
2. I’ve blocked all the posts and pages and tried to use the exerpt to show a post next to the sidebar on the login page but it isn’t showing.
3. I want to get the login form in the sidebar but the logout in the menu bar/header menu.
Thanks in advance,
Chad says
On the first two items, you can’t do either of those. There is not a shut-off for the login in place of blocked content. And as for creating a login page with the shortcode, that’s all that page does. It is designed to be a single page, not a content page, therefore there would be no excerpt.
To put a logout link anywhere, any link to yourdomain.com/?a=logout will do it. If you want to take it out of the sidebar, you could do that with the wpmem_sidebar_status filter hook.
Rob says
Hi Chad..
Can this plugin be set up to allow a variety of roles. For example allowing a registrant to choose between a custom vendor role or customer role (I use Justin Tadlocks Members Plugin to create and manage custom roles).
Can this plugin be used to detect a user acct on another blog in a WP multisite environment and assign the aforementioned role to the “new” user of the blog? For example, we have users who register for one blog in the WP Multisite install, but are only given a specific role on that blog. As they proceed to explore our other blogs and register, they need to be able to have a roles created on these new blogs..
Jeff says
Chad/Rob –
I just came to ask the same question. For me, which sounds like what Rob is asking is….
When someone registers, can I have it automatically register them under a certain role? I’m not using a WP Multi site, just a solo WP where people can post to a classifieds area, that’s it.
Like Rob, I’m also using Justin Tadlocks Members along with Adminimize to control that users access abilities.
I’m really hoping this is possible. Thank you Chad for this awesome plugin!
Chad says
Rob – the plugin itself doesn’t presently allow for role differentiation, but it is possible that I may go that direction in the future. Also, it’s not officially multisite compatible. While there are possibilities for it to function in a multisite environment, I’m not sure that it would be able to do what you described.
Chad says
Well, while it doesn’t differentiate in terms of roles, it does assign a role to the user based on what you have set as the default role.
Chad says
Actually, I think there will be a solution for your question on removing the login form. I completed some hooks today for the login and registration forms, and while it wasn’t the intent to use these hooks to remove the login form, it would be possible. You will be able to remove the form and also replace it with other content (such as text/link directing the user to login). This is in development, but should be included in the next release.
Wayne Capriotti says
Hello,
I have installed your WP Member plugin on my site.
I allow unregistered members to view the content on all pages and posts on my site.
If they want to add a comment they must register and become a member
However, WordPress either by default or my theme writes a message at the bottom of a post
“leave a comment Cancel reply
You must be logged in to post a comment.”
And creates a link that redirects to wp-login.php
I do want this, so is it possible to change this link and redirect a potential member to a registration page that I have created for mew member sign-ups??
I can send you deails of my site if you require them.
Chad says
That’s actually part of your theme’s comments.php template. You can make an easy modification to the theme comments.php file at the end where it generates the comments form with comment_form() – replace the comment_form(); call with this:
Update the url accordingly…
Also, it is highly recommended that if you are making modifications to your theme files such as this, that you be working in a child theme. That way if you are using something like TwentyEleven, your changes won’t be overwritten when you upgrade WordPress. Likewise, if you are using a theme from a developer that releases updates, working in a child theme will keep you from having your changes overwritten when you update the theme
Rob says
The basic problem I am trying to solve for is to allow users to register for a variety of blogs on a network without them knowing or caring if these blogs are run as stand alone or within a WP network… Why should users care?.. and why should sub-site owners care?.. A site registration should function identically for site owners and users regardless of the fact that they happen to be taking advantage of WP Multisite management capabilities.
I am using WPMU Blog Registrations to allow independent site by site registration (here is the code for this plugin http://pastebin.com/qU1KpMRD ) ..
This plugin is no longer supported by Aaron who is now working for wpmudev… many people are upset by this actually and are still using this code because its the only one that allows multisite sub-blogs independence in managing its users – as far as I know anyway. (see this thread if you are interested http://premium.wpmudev.org/forums/topic/about-mp-blog-register-quick-hack-please )
This plugin has its flaws but it does the job its supposed to do, that is provide WP Multisite sub-sites some independence in managing user registrations as they see fit.
So with Justin Tadlock’s Member plugin that allows subsite owners to create roles, WPMU Blog Registrations to allow these roles to operate independently during site by site registrations..
Only 2 challenges remain:
1) Finding a plugin that allows these sub-site owners the means to provide a prescribed set of roles to their registering users during registration (this can be achieved through multiple registration pages – one for reach role, or a drop down on the registration page to allow users to select from a list of pre-determined roles, make no difference the end effect is the same)
2) Finding a plugin that can loop over the wp_users table during registration, looking to see if the email address exists and quietly assigning them a role in the blog they are registering on. – perhaps a simple
add_user_to_blog( $blog[ ‘blog_id’ ], $user_id, $role );
Where $role is the value set by the option on the registration page.
This older plugin, http://wordpress.org/extend/plugins/add-users-sidebar-widget/ did this job, though no longer compatible with WP3.3. Unfortunately this only solved for existing users, not users who are unaware that they may have an acct on a sub-site within a network.
There is a growing base of WP Site owners that take advantage of WP Multisite management capabilities and infrastructure (WP Network level shared stores, classifieds, help desks, discussion forums, ad management, affiliate management.. etc) provided by platform developers like myself.
Seems to me there is an opportunity for WP-Memeber to be on the forefront of this growing market.. Technically, this does not seem to be a huge undertaking.. just an ignored market due to the complicated set of issues that need to be corralled and presented to someone capable of executing a solution..
I would LOVE to see WP-members integrate WPMU Blog Registrations capabilities, role creation and management similar to Justin’s plugin and an auto-detection function that silently assigns new roles to registering users of sub-sites..
I think this would set WP-Members way ahead of the pack.. Hell I would pay for this actually. lol
Chad says
Rob – thanks for the comments. That is quite a lot to consider and think about, but in general, I do think this is a direction that I am interested in going. When the plugin was originally developed, MU was separate from WP. I have thought about what the plugin would be like now if I were to start today rather than six years ago (WP has come a long way since then). I’ve been working on some things in that regard. I’ll definitely put some thought into this.
Rodwin says
Is there a way that i can just block a certain post? is there a shortcode for that? Also where can i set the post level / user level.
Thanks,
Reaver
Chad says
For blocking just a certain post, please look above in the FAQs for unblocking an individual post. (You could also use the status shortcode described in the User Guide for blocking just certain elements of the content on the page.)
There is no post level. As for user level, users are registered based on the default role in your WP settings.
Tom says
Have been installing … so far so good. Running WordPress 3.3.1 and Thesis 1.8
A few questions:
1. I’m receiving my moderated email with Username and Email; however just echos my other fields names verses displaying user data.
2. Would you have a sidebar conditional statement: if user logged in is true … then display ‘Begin Using Site’ (or any other)?
3. Once logged in after Member Registration: how to change the ‘Begin Using the Site’ pointer link to another page?
4. The redirect after user logs in; and the redirect after user logs out; both are not working in Thesis. The DIY folks seem to agree a Thesis header problem. Any talk from other users on suggestions?
Chad says
hmmm… I don’t know what to tell you on the redirects.
For the links on the register page, wpmem_register_links will filter the links generated on the register page in the logged in state.
I’m not sure about your question number 2, but you could do a couple of things. If you can execute php code, yes, you could set up a conditional statement in the sidebar. Alternatively, if you can execute shortcodes in your sidebar, you can use the status shortcode like [wp-member status=”in”]This is logged in content[/wp-members] or [wp-members status=”out”]This is logged out content[wp-members]
Hope that helps.
Tom says
what about question #1, on my moderated email I receive. thanks.
Chad says
If there is data in those fields, I can’t really think of a reason why they would come through the email empty unless there is something from Thesis that is interfering with the process. Does thesis have a shortcode that conflicts?
makar says
Thanks for the quick respons chad,
I’ll be looking forward to the next release.
Tom says
Is there a Chad-to-English dictionary somewhere (ha, ha) as I can only conclude that this plugin be for only developers. So what do you ‘charge’ to do these requests? Most seem to be a common request in reading your Q/A’s and I’m sure many other non-coders are equally attuned.
Fronteira Frio says
How can I add registration and login page into my home page? I have installed wp-member plugin. It works.
Chad says
It’s actually a very easy plugin to use when it is used with the standard options. However, when you want to start digging it to custom fit it, yes, it helps to have some development skills. But the skills you need are the same that you would need working with similar aspects of WordPress plugins or themes.
Thesis is a pretty involved framework, so I can’t guarantee that it is going to fit well in that environment, but generally, it should be ok.
If you do need contract development, you can contact me via the contact form with a project scope.
Chad says
You would need to be using a static page. Under Settings > Reading under Front page displays, select static and then select a blocked page. You could also use a login page or a registration page for this using one of the shortcodes, but you cannot use the login and registration shortcode on the same page.
olivia says
Hi Chad,
First of all, I would like to tell you that your plugin is excellent. Not only functionality but support and documentation. Well done and great work.
Please help me with a couple question please….. I did go thru lots of documentation, but still not sure, that why I ask.
1) I read your instruction for customizing the stylesheet:
1.Copy the included default stylesheet /css/wp-members.css.
2.Save it to your theme folder.
Sorry to ask such a silly question, as I am newbie…… But how to copy? where is the theme folder? from the cpanel?
2) my page is http://www.coffeebreakonly.com and if you go to http://www.coffeebreakonly.com/register/, you will see there is a registration form at the right side bar, how to remove it?
Really appreciate your help.
Chad says
Hi Olivia,
Ideally, you would have an offline copy of your entire installation. Barring that, to put a copy of the stylesheet to your theme folder on a live site, you would need to FTP transfer it using either an FTP client like Filezilla or if your host provides a web-based FTP you could use that. Depending on your server access, you may need to copy the original file to your local system, then transfer it up to the theme directory.
Your theme directory would be one of the directories found in /wp-content/themes/ and will generally correspond to your theme name. The fact that you are asking this question tells me you are likely not using a child theme. If not and you are making any customizations, you should be learning to do this in a child theme. That way if there is a theme update you are not overwriting your changes. (That would include the added stylesheet as well – so if you are doing this in the parent theme, then you should keep an offline copy of your customized stylesheet.) Some info to get you started on child themes is in the Codex.
The sidebar element looks like a case of a second instance of the WordPress Loop in your sidebar. WP-Members is really only compatible with a single instance of The Loop. This looks like it is probably coming from a widget? In that case, you need to figure out which – it looks to me like the most commented articles. Your fix is to either not use that, find something similar that doesn’t use The Loop, or modify it to only use The Loop when the user is logged in (which would involve some knowledge of php).
olivia says
Hi Chad,
Thanks a million for your advice and knowledge, I really appreciate it. I took your advice to create a child theme and learning more. Thanks again. You are wonderful.
Mary Callahan says
Hi Chad,
Love this plugin! It’s just what I needed!
My questions: This is for a small club. I just need to allow them to register, and manage their registration.
1. when I go to register them myself under users – I’m not seeing fields for the wp-member form, only the default WP fields? I wanted to register them initially and setup passwords for them.
2. Is there a shortcode to list a directory of their names on a page? If so, can I sort by fields?
Thanks so much for the time and effort! I’ll make a nice donation!
Mary
Chad says
Hi Mary,
Second question first, there isn’t a way internally in the plugin to do a member list page (although I have thought about how I might include such a feature). I believe there are a couple of plugins out there that do this. WP-Members stores members in the same way as WordPress, using the wp_users and wp_usermeta table, so you should be compatible with other plugins. In terms of custom fields, though, that may or may not be picked up by another plugin.
The question of registering users yourself depends on a few different things, so I’ll give you a bunch of info and you can see if any of that works for you. First off, the WP-Members fields will not show on the WP backend new user page. I simply haven’t been able to hook into it at this point. (There seem to be some hooks in that area, but they are not documented, which makes it harder to hook into – but I digress…)
So, if you are creating the user accounts yourself, you have a couple of options. You can create the user in the WP backend as you are looking at doing, then once the user is created, you can access the user profile screen and add the data for the WP-Members fields. Alternatively, you could just add them via the front-end registration. If you do it via the front-end registration process, the plugin will email the user a random password which they can login and change. If you do it via the back-end process, you have the option of the password being sent to the user via that process.
An important note is that if you do this via the back-end process, any emails generated and sent to the user are generated via WordPress. If you are going that direction and you don’t like the default emails, you can override this process. Let me know if you need that and I’ll send you an example.
David says
Hi,
Is it possible to make the wp member payment a one off payment for say 3 months access rather than a subscription where users are charged ‘every 3 months’?
I’d like to just charge user a one off and not continue to charge them unless they choose to re-purchase. I think having the charge as ‘every 3 months’ may be putting some customers off.
If it’s not possible to do this will customers be automatically charged again at the end of the 3 month subscription period?
Thanks!
Chad says
If you are here asking about wp-Member, I think my head will explode.
http://butlerblog.com/2010/10/20/statement-regarding-the-use-of-the-name-wp-member-by-smartmediapro/
Joeri says
Hello,
I’ve installed your plugin but i have got a question, I cant find the registrer page, can you please help me ? Thnx
Chad says
Creating a registration page is covered in the readme file included with the plugin, the Quick Start Guide, and the Users Guide (see http://butlerblog.com/wp-members).
Andy says
Hey Chad,
First of all, the plug in rocks. I do some design work, and have a client that has asked for a log in area for members, and your plug in fits the bill. My question is that once someone logs in, I want them to be directed to a specific page that will not be viewable unless you are logged in. What code do I need to change to send the user to http://abc.com/123 after logging in?
Thanks.
Andy
Chad says
Hi Andy – you shouldn’t ever change code directly in a plugin. That makes things a challenge for upgrades. WP-Members has pluggable functions and many hooks so you don’t have to do that. You would want to use the wpmem_login_redirect filter hook for this. You can find information on that hook and others in the Users Guide (which you access from here: http://butlerblog.com/wp-members)
Roger Nuttall says
I need to be able to allow members only to see each others contact details etc.
Is this possible on a single page.
Great if there was a search facility…
Forrest says
Darn. Really excited about finding this plugin, but no roles means it wont work for my usage. I need to create three groups of people who will have access to different pages.
rob says
Hi Chad,
Great Plugin! I have a question though. Is it possible to restrict visitors to a certain category of a blog and have all access to all others? Thanks!
Chad says
There isn’t a process for that via the plugin. However, it could be done at the template level using the WP is_category and is_user_logged_in functions.
Lisa says
Hi Chad,
Great plugin and pretty easy to use and follow with thorough documentation. My problem is that I’ve got it installed and customized a registration page.
Tested the registration and it can’t send emails (both notification as newly registered user or the userid/pass). However, I have followed the FAQ and tested it with registering via the “add new” and it did send the email out. Any thoughts on how to further test and narrow down the issue?
Appreciate your support and help!
Lisa
Chad says
check to make sure the default email messages actually loaded during the installation process. If you check the plugin’s settings under the email tab and the emails are blank, you either need to reinstall or follow the instructions outlined here: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Gael de Kerdanet says
Hello Chad,
Thanks for your plugin! 🙂
I need to translate your form / its content into French for my client.
Happy to do the work and share it with you for all to use…
However, I do not have hips of time, and – trying to understand how the whole .pot / .po / .mo file am slightly lost.
What I need is a simple explanation on how to get about sorting out the translation / file so that I can suspend my time translating and NOT finding how to do this translation! 🙂
Cdlt,
G.
Chad says
WordPress (and any plugin that properly uses the WP plugin API) translates based on what is called gettext. A simplified explanation of how that works is that any translateable string is stored in a file and anytime that string is used, it is replaced with the translated string.
The .pot file is what is given as a template of what will be your .po file. The .po file is the human readable form of all of the translated strings. In the case of WP-Members, these are the English strings coupled with your translated strings. The .mo file is the machine readable compiled file of your .po. This is what is needed to deliver the localized version of the text when the page is loaded. A good description of these files is in the WordPress Codex.
Some important things to note: You MUST be running WordPress with the same localization for WP-Members to work. You will need the most recent .pot file if you are starting from scratch – you will find this included with the plugin download in the /lang/ folder. When you save your translated files, you will need to have them in this folder and they will need to be named wp-members-fr_FR.po and .mo (assuming you are using the French translation of WP).
I would suggest using Poedit to do your translation, but there are other tools available.
http://butlerblog.com/wp-members/wp-members-translations/
http://butlerblog.com/2011/07/13/forcing-translated-field-names-when-using-translation-files-with-wp-members/
Gael de Kerdanet says
OK – how do you generate the .mo compiled version of the .po file then? 🙂
Also – if I just wanted to edit initially 10 fields in the original file so as to make them bilingual – ie Username | Nom Utilisateur so as to generate a bilingual form – where should I go / do it?
Cdlt,
G.
Chad says
Using a tool such as Poedit. As for bilingual fields, that would probably require some customization to the plugin (unless you created your own custom fields, which you can do under the fields tab in the plugin settings).
Kellie says
Hello! I am testing my website as a subscriber with the WP-Members plugin and can still access the back end of the website just by adding wp-admin to the end of the URL. When a person subscribes to the website, I want them to be able to access additional information on the front end, NOT be able to get to the admin side of WordPress.
Is there a way to restrict who can get to the back end of the website based on their user level? In other words, subscribers should not be able to access the admin pages of WordPress but higher access levels can.
Thanks!
Chad says
In WordPress, by default, a subscriber has access to a limited dashboard and their user profile. Unless you change the definitions of the subscriber role, there really isn’t anything they can access via the back-end.
Martin says
Hi,
I want that my members can change their password as they want. How i can do this?
How can I add on my Web site a “Logout” link for my members?
Thanks
wazid says
I am looking for a answer that how i would mange the permission of any plugin to the general user instead of admin.Can any body tell me????
Rose says
Hi Chad,
I am considering using your plug-in, as so far it appears that it will work for what I need – (and will be happy to donate if I do use it). 😉 The question I haven’t been able to find an answer to is ‘can you monitor the activity of registered users?’ I will need to create two member levels and each will have access to different documents. The client wants to be able to monitor when a member logs in to view the documents.
Thanks!
R
Chad says
That is described in the Users Guide and the Quick Start Guide. Visit http://butlerblog.com/wp-members
Chad says
Hi Rose – thanks for posting. Just to let you know, the plugin does not support multiple user levels at this time. There isn’t anything built into the plugin for tracking user activity. HOWEVER, I do have a stats add-on that I put together. It’s not quite ready for public release yet, but essentially, it provides usage stats specifically ties to logged in users (it does not track general stats for non-logged in users – there are already packages for that). I am working on a member-based premium support site (that will be running on WP-Members) and it should be ready for launch in the next couple of weeks. This add-on (and others) will be available to users of that site. I’ll be making an announcement on this blog when that site is launched.
Karen Burton says
Curious.. the sidebar plugin with your plugin my client wants it to say “The Student Center” instead of “Already a Member?” I have looked through every single file and cannot for the life of me find where that text is being pulled in from. Can you help?
Karen Burton says
nevermind – i feel like a fool… i found it
Chad says
Hopefully what you found was the filter and you didn’t change the core file? Otherwise you’re just going to be changing it again anytime you update the plugin…
Also, not sure we are talking about my plugin here as I don’t think it says “Already a Member?” anywhere.
Ben says
Hello Chad,
I am trying to use your great plugin and all is working well but I am getting this “[wpmem_txt] [/wpmem_txt]” above and below my login when I am calling in my header. Any ideas on why? I can’t seem to get rid of it.
Tony Smet says
Hello Chad,
I would like to have a “forgot password” option in the WP-Members sidebar widget. I think there is a way to do this, but I cannot find it in the user manual. Is this possible or is it only part of the short code for Member area page?
Thanks,
Tony
Chad says
You can’t call the login form directly. It was not designed for that. What you are getting is a shortcode that cleans up the extra html p and br tags that WP puts into things in the body. If you want a login form in your header, you need to either build a login form that mimics the sidebar, or use the one in the sidebar.
Chad says
It’s in the User Guide, but evidently not readily apparent. Look under Plugin Settings > Options > Members Area URL or the section on Members Settings Area
Ben says
If I build a form myself how do it I integrate it into the plugin?
Chad says
You don’t need to integrate it into the plugin – just implement it in the header (if that’s where you are putting it). Something like:
if( is_user_logged_in() ) {
// user is logged in, show login status here...
} else {
// user is not logged in, show the login form
}
Do something similar to the form that is the sidebar function. As long as the fields are named appropriately and you pass a hidden field “a” with a value of “login”, you should be fine.
Mike says
Hello Chad,
I was wondering if there was a way to only allow users to register if their email ended in a certain domain? for example @gmail.com otherwise not even allow them to register.
Thanks A bunch
Mike
Vicki says
Is there a way to track activity by registered members?
Vicki says
Sorry…I read through too fast. I see it’s something you’re working on.
Chad says
Mike – that’s an interesting proposition. I believe it could probably be worked in using the action wpmem_pre_register_data. This action occurs after the form data has been validated but before the user is registered. Using this action you would be able to test the email for the presence of a certain domain, and then move forward or throw an error at that point.
Mike says
Thanks for the response Chad, after I had sent the message a spent a few hours and was able to build in a function in that exact spot. I love when a plug-in can be altered to my needs 🙂
Thanks a lot
Tyler says
Is it possible to allow the user to create their own password upon registration, so that they don’t need to wait to receive an email before logging in? That way the user can continue on the site already logged in without having to go into their inbox to proceed.
Chad says
Absolutely. This is discussed in the Users Guide that can be found at http://butlerblog.com/wp-members
ba kumar says
Is it possible to change the WP-members HTML form, and
I want crate multiple forms for different registration it Possible, please give your response quickly.
thanks
BA Kumar
J says
BA Kumar, as this is a free plugin and the developer dedicates a ridiculous amount of time in supporting the WP community…for free…I find it offensive that you so openly demanded that he respond “quickly” to your inquiry.
…perhaps be a little more polite next time.
Achyuth 401 says
Hi Chad
This is one of great plugin in WP for form building…, But i have few problems
1. How to create multiple forms for different registrations
2.How to customize the HTML code with with my own CSS
these those are every important for me please give your response ASAP.
thanks
Achyuth 401
Chad says
Unfortunately, the plugin does not support multiple forms – there is one single registration form.
As far as changing the form – you can add/delete fields as needed through the plugin settings, and the display of the form is CSS-driven so that can be customized as well. Much of that is described in the User’s Guide and some of the linked posts at http://butlerblog.com/wp-members. If you have a need of major customization of the form, it is pluggable, so you might want to review the post linked on that page describing how use pluggable functions.
Chad says
Thanks J for your comments! I definitely appreciate your sentiments 😉
I am giving BA Kumar the benefit of the doubt though as I often find that certain things get lost in translation so something that wouldn’t necessarily be meant one way might sound like it when translated. (so I’m hoping that’s the case here.)
Chad says
Thanks for your questions Achyuth. The plugin does not support multiple forms.
As for customizing the CSS, there is documentation available on this at http://butlerblog.com/wp-members. You might consider reviewing the User’s Guide and/or some of the links there regarding customizing the stylesheet. Hope that helps you in your quest.
BA Kumar says
Hi All
i am heart full sorry for all Blog members , but i need solution for above and below Achyuth401 comments, if anybody know this kind plugins in wordpress
please suggest me.
thanks & regards
Achyuth
Sander says
Hey,
Been looking around for member plugins and this one is exactly what i seek. Thumbs up for this awesome plugin 🙂
But I have one question. Is it possible with this plugin to show an overview of all registered members when a member is logged in? With some kind off hook or something?
I hope this makes any sense. English isn’t my native language so sorry for any grammer mistakes.
Thanks!
Sander
Chad says
Hi Sander – glad you like the plugin. At this time, there is not functionality within the plugin to do a directory as you described. That might be something I add in the future, but not at this time.
AussieAub says
Please help, this plug-in is EXACTLY what I’m after!
Have followed the install and application exactly as in the user guide, but once reg form is filled and submitted, I’m getting a blank page with the message “Could not open socket”…….any ideas?
Cheers,
jack says
Hi,
I’ll do a multisite and want the office manager to approve registration.
Can WP-members handle this?
Cheers,
J
Tyler says
This is great! Thanks a lot for your help!
Shinshuri says
I have an issue with the plugin not displaying the registration page to Guests. I get a page with the following message when try to access my Register page as a guest.
“Sorry, you must be invited to join this community.”
I do not want this page to show, but it does. I would like for any one to setup a new account and become a member.
Here is the page link. http://oraclesoftruth.org/register
Michael says
I read the installation guide and implemented the plugin on my site. I’ve set all pages to be blocked by default. Then I set up the custom field “unblock” for ABOUT, REGISTER, and LOG IN so non logged in members can access these pages only until they become a member.
Though the restrictions work ( non logged in users are re-directed to registration page should they click on those block pages), The page links in the main navigation are all shown. I only want to show the non-restricted pages upon the first visit (not logged visit) so that’s HOME, ABOUT, REGISTER and rest are not shown until the user is logged in to see MEMBERS and PROJECTS.
How do I go about doing that with this plugin or do I need another plug in to hide the nav links based on log in satus? Visit my site to see what I’m talking about. Please help. Thanks
Chad says
That sounds like a possible conflict with something outside the plugin (such as another plugin, or your theme). I would suggest testing with other plugins disabled to see if that is the case.
Chad says
Possibly no, because the plugin does not officially support multisite. But as far as the registration approval goes, a non-admin user could approve registrations via the user profile pages (individual approvals) if you assigned user management role privileges to your office manager’s role. However, at this time, unless that user is an admin, the bulk user management screen would not load for them (that would allow bulk activations for multiple users). That will be changing in an upcoming release, though.
Chad says
First, I would have no idea where that message would be coming from (unless you have put this text into one of the plugin’s dialog messages). But also, did you get this corrected since this post because when I look at that URL, I see the registration just fine.
Chad says
What you want to do in that case is display different menus based on the user’s login status (see this post: http://butlerblog.com/2011/11/21/show-menu-based-on-wordpress-login-status/)
Shinshuri says
Hi Chad:
Yes. I figured it out. It was a plugin conflic. I deactivated the troublesome plugin.
Shinshuri says
New issue on use of the plug in. I have the TOS feature added to the new registration set up page. When I click to see the TOS I get a missing page error display. How do I point the link to display the TOS in a popup window so that new registrations can acknowledge and confirm the TOS by reading it before they click the submit button?
Thanks,
Shinshuri
Steve says
Hi. Thanks for all the work and support you put into this. I’ve been reading through the manual and the faqs and haven’t found a way to have different groups of users see different content–i.e. to have more than one category of members. For example, if I had a music site and wanted guitarists to see pages a b c and violinists to see pages d e f and everyone to be able to see everything else.
Did I just miss it–maybe I just have to go back and read more carefully.
Thanks.
Steve
Chad says
Odd that you would get a 404 error. Are you using the default TOS page, or are you using the shortcode method? Do you have an example?
Chad says
Sorry Steve – at this time, it’s one user level/category.
Will says
The plugin is sending out emails from a weird address – I’m not sure where the problem is or how to change it. It sends it out as [myhostmonsterusername]@host302.hostmonster.com. As far as I can find in my cPanel admin, there’s no such email account. I tried adding in the filters to the function.php in my theme like you suggested, but they didn’t work. The plugin seems to be bypassing the wordpress email function and is sending emails from hostmonster. And advice is greatly appreciated.
Chad says
Well, the plugin cannot bypass the WordPress email function as that is the function it uses to send email (wp_mail). If wp_mail was in any way not functioning, there would be no emails going out.
A cursory search indicates that with Hostmonster if the From: header is not formatted correctly, is empty or invalid their system will change the from address. With the default setting, the from address is set by WordPress and not the plugin. So my guess would be that you have set an email address that your host considers invalid (such as “info@mydomain.com” when there is no such valid address in your system). Some hosts do this to prevent spammers from sending from made-up addresses.
Will says
Thanks for the help, but I don’t think it’s something I changed. I installed the plugin on a brand new website (that should work if the problem is me changing my settings, right?), and it still sends emails from the hostmonster address. I can’t figure out why it is doing that. Is it the plugin, or is it hostmonster that I have to change?
Chad says
Is the email address that you have in the WordPress General Settings set up an actual address of the same domain on that system?
Andy Harris says
I am trying to build a website for my BBQ cooking team. I would like the home page to be visible to everyone and the rest of the pages need to be visible to members only. This seems to be possible with your plugin. My question is there a way when people register that their information has to be approved before there registration is activated?
Will says
Yes. I have tried having the email address in the wordpress general settings as just the default (whatever I registered with wordpress, which is a gmail) and also with an address that is myname@mydomain.com which is a real address on my Hostmonster cPanel. Thanks again for taking the time to help.
Chad says
Yes – that would be moderated registration. There is a setting for that in the plugin’s options (as well as notifying the admin of a new registration). Users can be activated on the user profile, or in bulk on the Users>WP-Members screen. See the Users Guide for more information.
Chad says
Would you try testing the email via something in WordPress – like create a new WP user in the admin panel and notify via email. See if you get the same thing. That might help me know if we need to take a look at how we are using wp_mail.
Will says
Hmm.. I added new users through the Word Press dashboard – Users – Add New, and also by going to Users – wp-members – Add New (from what I could tell that’s the same thing). I tried both and still got emails from the hostmonster address.
Chad says
Thanks for checking that. It’s important for the plugin development to make sure that the problem does not lie in the way the plugin utilizes wp_mail. If you get the hostmonster email in both situations, it is most certainly is not the plugin. I was pretty sure that was the case, but I like to reinforce my assumptions just in case.
So… what you need to do is to track down with your host (hostmonster) how to make sure that you have WordPress configured to send email appropriately.
A possibility you could check into would be to use the WP Mail SMTP plugin which allows you to send via an authenticated SMTP connection.
Jeff San George says
Love the plugin but quick question…I am getting the WP post password notification on my login page. “This post is password protected. Enter the password to view comments.” How do i get rid of it. The rest of the plugin functions are working and I have done a lot of style work on it… last item to handle.
http://homelandenergy.com/investor-info/
Thanks
Jeff
Will says
I will look into it. Thanks for your help.
Shinshuri says
Hi Chad:
I am using the default TOS. The best example I have is for you to visit our registration page on our website. Here is the link http://www.oraclesoftruth.org/register
Will says
Just for anyone else having a similar problem – I figured it out. It turns out that wordpress tries to send email from the address wordpress@mydomain.com. However, if not such address exists in HostMonster (and some other hosts do this too), HostMonster overrides and sends from the default email. I just had to create the email address wordpress@mydomain.com in hostmonster, then I was able to change the from email address.
Chad says
I actually should have thought of that (slapping my forehead). For some reason I was thinking in terms of the admin email, which is actually what the wp_mail would be sending user notifications TO, not FROM. Yes, now that I am thinking rightly, you need the from address to match an account with HostMonster. If you want that from address to be something other than wordpress@yourdomain.com, then you would apply the from filters, but those would also need to match an account with HostMonster.
Glad you got it working and thanks for posting this solution!
Chad says
That is coming from your comments template. You want to look in your theme’s comments.php for the password check and update/change the wording (see: http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display#Password_Protection_Check). As an aside, best practices are that you would be using a child theme to make your theme customizations, so that should you update the parent theme, your changes are not lost.
Chad says
I’m seeing the default TOS text, not a missing page error. So it looks like you have it configured correctly, you just haven’t updated the text for the TOS (for the default, there is a dialog box in the plugin’s dialog settings).
Dave Cousins says
Hi Chad-
Your plugin is a gem. Fantastico!
Here’s a question. Say I set up a check box on the member’s profile page called “user group one”. If the user checks it, I’d like them to have access to a page called “user group one page”. If its not checked, they don’t get access. How can I restrict access to pages if Wp Member’s profile info is negative?
Thanks in advance,
Dave
Rebecca says
Hi Chad,
Awesome, awesome plugin. It beats the crap out of the other clunky-looking ones out there.
I’ve read through the Guides and the FAQ, and I’ve set it up just fine. All is good except for two things. One of them you reference in an earlier comment: changing the CSS around the “remember me” checkbox doesn’t work. I’ve discovered by looking at the source code that there are some extra tags right there. But I don’t know how to remove them.
Also, is there a way to have new users register right there on the page with their own password, without having to receive an email? Maybe it’s in the Guide, but I must have missed it.
We’re using Thesis. Here’s the link to our dummy site: http://www.zombieandson.com/members-content/
Thanks!
Chad says
Hi Dave – at this point, there isn’t anything that would allow you to do this without some serious hacking. However, I am working on some new action and filter hooks in the present development version that might fit the bill for this. I’m adding a filter hook in the wpmem_block function (which tests to see if a given piece of content should be blocked or not) and with this filter, you would theoretically be able to look at any criteria such as post category, a user meta (such as a field value you’ve described), etc and be able to return a boolean value of true/false back to the wpmem_block function. It’s going to expand the functionality of the plugin itself as well as provide far more extensibility if this process works the way I expect it to. So watch the blog for the next version announcement as that will be where I mention it. (Note: I don’t have a timeline just yet, we’re a ways off from that)
Rebecca says
Uh, nevermind about the registration without email confirmation/password. Found it.
Chad says
No problem – glad you found it.
On the remember me – I’m not sure you had put when you said “extra tags” since putting html into the comments here generally gets lost as, well… html. But I took a look at your form and the good news is, you don’t really have a problem AND I can tell you how to adjust it.
I looked in the generated source on your site, and I’m not seeing any extra tags that shouldn’t be there, so you are fine in that regard. The issue you have results from having one of your stylesheets (other than the WP-Members one) carrying a general definition for the html input tag that has a width property (in this case, it is the custom Thesis CSS specifying a width property of 45% for all input tags). The problem is that the checkbox (and the login/submit buttons) are also html input tags and are therefore effected by that definition.
So… I’m assuming you have already seen that you can set up a custom stylesheet (if not: http://butlerblog.com/2011/07/25/customize-the-wp-members-stylesheet/). For this, you could set up a custom stylesheet, or if you have somewhere you can add style definitions, you can set up a definition using an attribute selector for checkbox like this:
…or something like that. Hope that helps.
Rebecca says
Fixed. You rock.
Torres says
Hello, Chad. First, I want to thank you for this awesome plugin.
Than, I have a little question to you (but I would be very gratefull to anyone who could help-me).
When I create a register page (I’m using default permalinks, and it’s causing me a lot of trouble to change it now :/), I have to write the shortcut given by you ([wp-members page=”register”]). The register form appears without problem and works perfectly, but the own code continues to be shown on the page. So I ask, am I doing anything wrong? Is there a way that I could stay with the register form without appearing the code on the page (it is very weird, hehe)? Oh, and what about the title of the Register Page when I’m using default permalinks, wich should be? I saw just the name of Members Area. Sorry for my poor english, it’s not my mother language and I’m still trying to increase it. Thank you so much. Bye.
Chad says
As long as you are using the shortcode version (as you indicated – [wp-members page=”register”]), it will work fine with default permalinks. I’m not sure what code you are referring to that is showing on the page, but if it is from the WP-Members plugin, then I would say something isn’t set up right.
It was the old style shortcodes ( ) that did not work well with default permalinks, but those are deprecated and should not be used anyway.
Torres says
Actually, I’m using the [wp-members page=”register”] …
It shows up the register form but it shows the own code too.
Thanks anyway, I’ll try to find what I’m doing wrong to correct it!
Torres says
Ohh, and what should be the Register Page title when I’m using the default permalinks? Sorry for incovenient again. Bye.
Rebecca says
OK, I’m doing some forward thinking here.
I’m only using registration for limited content, but we also host WebEx events, for which WebEx has its own reg page, and we just link to it from our site. Is there, or will there be, any way to make it so that a logged in user’s information can autofill on the WebEx reg page?
I’ve looked at Cisco’s developer site, but it’s waaaaaay above my skill set.
Thanks!
Chad says
The title for the register page and the members area page don’t matter when the [wp-members] shortcode is used, regardless of the permalink settings. Any reference to the need for specific titles was for the old style shortcodes (which are deprecated).
Sorry, but I don’t know what you mean by “it shows the own code too.” What is “the own code”? Just guessing here, but are you using more than one shortcode on this page? For the [wp-members] shortcodes, using the “page” parameter (register, members-area, login), these are intended to be specific pages – you cannot use them in conjunction with any other shortcodes (wp-members or others).
Chad says
Any of the user’s information certainly could be passed to the WebEx page. Picking it up on the WebEx side would require a review of the their API documentation. I could put together some kind of connector, but it would need to be a custom project. If you want to go that direction, contact me through the contact form with a project scope and I can give you a quote.
on says
Is there any possible way we can create a profile page availabl for public uing this plugin? I mean I would like to create a directory of registered members.
Thanks in advance!
CJ says
I activated the WP-members plugin on my website and set it to block all pages by default and leave post unblocked. I set the registration to allow anyone to register, however, now my WP log-in does not work. When ever I try to log-in with my admin password it says “User has not been activated”. And if anyone registers, I get the email with a link to approve but, still get the user has not been activated error when I try to log-in. Is this an error with the WP-Members plugin script? Or is it problem with WP? Or possibly my web-host?
Thanks in advance,
Lock-out my page
Chad says
I’m sure there is, but that’s not a small project.
Chad says
So you are using moderated registration, which requires users to be activated. The admin user account that you are locked out of, is that the same admin user account that you used to set the plugin settings? Admin users also need to be activated. However, when that option is actually set, the admin user that sets it is automatically set as active so that you do not actually lock yourself out (which is to prevent what you are describing).
Pam says
Hi Chad,
This plugin seems to be just what I’m looking for. One question – I’d like to incorporate the log in form into the theme, up in the header area, similar to this http://www.whole-energy.com:8080/ (click on the arrow next to “secure client access”). Right now I have the form here: http://nilzonweb.com/brochure . Can I just view source, copy the HTML and put it where I want it and style it? Will the form still work? Thanks!
Chad says
The easiest thing to review to get something similar would be the sidebar login which would be in wp-members-sidebar.php
CJ says
Thanks for the reply Chad. I understand that my admin account that I was using at the time I turned on plug-in should have been automatically set to active but for some reason it was not…(or I inadvertently deactivated it)…my admin account was not the “original” admin account that set up the website so its also possible that that original admin was the only one activated. That original admin is the one who eventually unlocked my account but I do not know exactly he did so I can say where the issue lies. I’m a little gun-shy about reactivating the plug-in now but for future reference how can I insure my admin is activated after I turn on the plugin… thanks again for your response.
Bo says
Chad, this plugin has worked great for me until the last update. On my site http://www.annadaleco.com when a new person registers, no email is sent. I have checked wp_mail by creating a new user manually and it works fine. It has actually worked perfectly in the past as well. It just started not generating the proper emails. Do you have any ideas that I could check?
Chad says
Depending on what version you updated from, you may need to check to see if the default email content loaded correctly in the update. See this post: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/.
karan says
can i add the timeline in like user can register for 15 days or 30 days only…..
Chad says
I am working on subscription module, but I do not have an estimate on when that will be released.
Dave says
Thanks for making this plugin freely available, hopefully I can it to work.
All I want to do is require registration to comment and block a couple of pages. Otherwise the site all posts and pages will be accessible.
Following the quick start guide, the users manual and a video I found on You Tube I managed to get the plugin installed and it works fine with the blocked pages. However, the for comments, you just get sent off to the WordPress login page. Any one got any ideas on the reason and how to fix it?
Chad says
That’s actually part of your theme’s comments.php template. You can make an easy modification to the theme comments.php file at the end where it generates the comments form with comment_form() – replace the comment_form(); call with this:
Update the url accordingly…
Also, it is highly recommended that if you are making modifications to your theme files such as this, that you be working in a child theme. That way if you are using something like TwentyEleven, your changes won’t be overwritten when you upgrade WordPress. Likewise, if you are using a theme from a developer that releases updates, working in a child theme will keep you from having your changes overwritten when you update the theme
Dave says
Thanks Chad. As soon as I figure out how set up the child theme I’ll do as you suggest.
Chris says
Hi
I’ve installed the plug-in and it’s working great, there’s just one thing I can’t figure out.
The email to users says click here to change your password [members-area] but I don’t seem to have a members area – is this something I need to build myself, or does the plug in create it?
Thanks in advance for any help!
Chris
Arnaud Houdmont says
I sincerely hope this does not come over as completely amateurish.. I had a look at the Users Guide, the FAQs and the Quick Start Guide and could not find an answer to my question… I wonder if I’m missing something here.
Currently my website has a login system based on the default WordPress login/registration. Having now installed WP-Members, I would want this to override the default login/registration completely. However, WP-Members login only appears on blocked pages but not on my login page which remains the same, i.e. the pre-WP-Members login/registration page… The same goes for when I’m asked to login when leaving comments, I’m also redirecetd to the same old login/registration page.
In short, I would like the old registration/login page to be replaced by WP-Members… I would greatly appreciate if you could advise me on this. Thank you.
Arnaud Houdmont says
Perhaps I can put the question / approach the problem the other way around: the native WP login / register page does not seem to be integrated with WP-Members since it doesn’t contain the additional fields added via WP-Members. How can I ensure full integration instead of working with two separate login / registration systems? Thanks again!
Chad says
Yes, you need to set that up yourself. This is covered in the Quick Start Guide and the Users Guide. I think there may also be a brief description in the readme file.
Chad says
You definitely have full integration as the plugin uses the WP process of storing users in wp_users and wp_usermeta using WP’s user management functions. What you want to do direct users to your front-end process rather than the back-end (wp-login.php).
For starters, it is recommended that you turn off the WP setting for “anyone can register” so that you do not have registrations coming through wp-login.php.
You will want to edit your comments.php file (see this comment just above) to direct users to your front-end login.
If you really want to tighten things up, you might consider setting up some type of redirection when a users accesses wp-login.php.
Dave says
Chad, your idea about using the child theme appears to be a bummer with the theme I’m using (Graphene). It appears that the code has to go into the comments.php file as you said. The problem is that will be overwritten every time the theme is updated. The recommendation is to use a child theme but it seems that if I place a comments.php file into a child theme it will bugger up the child and parent themes. I don’t know whether this conflict between child and parent themes is common with all themes and if so has anyone any idea how to resolve it?
Chris says
Thanks, all working, sorry, hadn’t realised it was as easy as pasting that one line onto the page!
Chad says
No problem 😉
Chad says
You should be making any customizations in the child theme so that when the parent is updated you don’t overwrite your changes.
Dave says
Chad, I understand that. The question is how?
Fraser says
This plugin works fine apart from emails being sent to users or admin .. no emails are coming through. When I look at Users, the new user shows as being registered.
However, I cannot for the life of me get emails to work using this plugin?
I have tried adding code to the functions.php as suggested, I have tried the plugin called quick-and-dirty as suggested but neither solves this.
Please help ….
Jasper says
Hi Chad,
First of all, thank you for the awesome plugin!
I translated it to traditional Chinese, I just need to proof read it, once is all ready, I will submit it to you.
I am having trouble to get my TOS working on my site.
I used the [wp-members page=”tos” url=”http://domain.com/tos-page”] code, but it didn’t seems to show up.
The TOS field on my registration form is not clickable, there is nothing to show the terms?
Please advice what I did wrong.
Thank you!
The link is: http://asm.contribuild.com/members/register/
Chad says
Here is some information on child themes in the WP Codex: http://codex.wordpress.org/Child_Themes
If the only real change here is the comments.php, then your child theme is only going to consist of a minimal style.css (essentially just to load the parent theme, in this case Graphene), and the comments.php file. Copy the original comments.php from the parent, make your edits and save that to the child. Any of the other elements will be automatically loaded from the parent.
Chad says
There are a number of possibilities. First, check to make sure default email content was loaded in the install (see: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/). Next, check to make sure wp_mail is actually functioning. Do that by creating a new user via the WP backend using an email address you have access to and have it send the password. If you do not get that, then wp_mail is not functioning, in which case you’ll need to troubleshoot that.
Some hosts restrict email sent from scripts, so you may need to be using an email address that is a real email on your account (you can change the email “from” address in the plugin). Also, your host may require smtp authentication. Many users have found that the WP plugin WP Mail SMTP works well for this.
Chad says
Check your translation file to make sure you have the strings in the link text (%s). If you don’t have those in your translated string, there will be no link.
Fraser says
Chad,
Thanks for getting back to me .. am very much loving the plugin but still experiencing problems.
1. Default email content had all loaded
2. In what plugin should I change the email “from” address ?
3. When trying to set up a new user, i dind’t get the notification email, so it seems WP Mail is broken so I then installed WP Mail SMTP, activated SMTP authentification and set up a new user and I then received the email 🙂
However, When trying to register a new member for the WP Members bit, the emails are still not reaching me?
What should I do now?
Fraser says
just to add to the above … the password is not being generated or sent to the new users email address…
Jerry says
I want to be able to move the logout to a tab labelled ‘Logout’. Been researching this for 4-5 hours and nothing seems to work. Any suggestions? Any shortcodes?
The plugin is tremendous and we will be donating when the site is up and running–the URL is currently a development site that will replace another, antiquated site we have.
Thanks!
Jerry
Fraser says
Hello again,
I have got it working now. I completely uninstalled the plugin and reinstalled everything and for some reason it is now working using WP Mail SMTP
Cheers and regards
Chad says
You can create a logout by appending the querystring a=logout to any url. Generally, you could just do it to the home page (and/or site url) http://yourdomain.com/?a=logout
The WP-Members logout function will drop users at the home page. If you need that to be something else, there is a filter you can hook into like this:
Chad says
Glad you got things working!
Donna says
For the life of me, I cannot get the registration form to appear! I have read through all the materials and I still can’t figure this out. Please help. Many thanks.
Donna says
http://sdnyausa.org/
This where the registration link appears as well as the Registration page.
Chad says
Doesn’t look like you’ve done anything with the registration page other than create the page. Did you add the register shortcode to that page?
Donna says
Where would I get that code?
Chad says
For the simplest description, I would suggest reviewing the Quick Start Guide (it’s on page 4) or the readme file (under Installation – Special and Optional Shortcode Pages). There is a description of all of the shortcodes in there. Also, this is in the readme file under “Special and Optional Shortcode Pages”
ajit says
hi, am use this plugin,but how to send user password to the user after user done registrations. am done all settings but there is no work………..?
plz replay.
Chad says
The password is sent automatically, unless you have the plugin configured for the user to choose their own password and registrations must be approved. If that is your configuration, you must change the default emails to send the password at registration, not the one that is sent when the user is approved.
Kurt says
Hello their,
I have the same problem like Chad. So I’am really not technical, but to setup the plugin was even something I can do.
My question is where I have to put the code like you explain to Chad ?
You can really find everything in the Guide, but not where to put this code.
My second problem is : When people come on a blocked page and they click, the registration form come up! In my case, once the plugin is setup and I can start to sell my product, the registration form only have to show when they paid.
I hope you can help me.
Grtz,
Kurt
Chad says
On the first question – any filter or action hooks that you use go in your theme functions.php file. Alternatively, these can go also in the wp-members-pluggable.php file if you are using one.
As for your second question, you can turn off the registration form display in the plugin’s setting. Depending on how you want your process to flow, I would say that you could set up a registration page using the register shortcode and direct people there to register.
David says
Hey Chad will WP-members work in a multisite setup? Or any limitations there?
Chad says
Some people have indicated that they have been able to use it in multisite, and others have run into problems. Either way, I don’t have it supported at this time (not to say I won’t in the future, but the current project list is pretty full up). So… you’ll need to try it out for your particular situation and if it works, that’s great! If not, at least it doesn’t cost you anything but your time 😉
Manish says
Hi Chad, does this plugin support restricting particular categories to logged in users only. I want that all the posts in a particular category be visible only to the logged in users.
Also, would need an excerpt to be visible to all and full post to members. Does this plugin do that. Regrds.
David says
Thanks Chad, appreciate you answering 🙂
gaurav says
I have all the fields made.
How do I embed this form in any of my wordpress page?
I use [wp members regsiter] something like this , but this shows up the default wordpress register.
I instead want to show it on one of my pages (embedded)
Any help?
Phil Chandler says
Hi Chad,
Firstly, thank you for a superb plugin that was easy enough for non-technical people like me to understand.
I installed WP-Members on a client’s website last year as a means for them to capture user details. All was working brilliantly until earlier this year until my client (against my advice) decided to update all WordPress plugins (now WP-Members 2.7.5), plus WordPress itself to version 3.4.
Now, new users no longer get a confirmation email when registering through http://www.whitesales.co.uk/register/ – is this as a result of the update?
I’ve tried your tip about registering as a new user through wp-admin (and have checked the send confirmation email box) and unfortunately don’t get the confirmation email.
QnD wp_mail filter (v1) and WP-Mail-SMTP (v0.9.1) plugins are installed.
I’m a designer, so am not that technically savvy, so any help or guidance you have will be much appreciated.
Many thanks and kind regards,
Phil Chandler
Chad says
It might be a simple issue with the upgrade. Check out this post: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Phil Chandler says
Hi Chad
Many thanks for coming back to me. Under settings > WP-Members, all the email fields were already filled out. I’ve also disabled the W3 Total Cache plugin, but still no joy – new users still don’t receive a password by email.
Do you have any other ideas? Thanks in advance.
Phil
Fiona says
This is such a great plugin! I have only recently started using it, and had marked certain registration fields as ‘required’ so that people had to fill them in. However, is there a way of matching what’s entered into these required fields to a list I have? For example, if I have a list of offsite members with a membership number, can I set a registration field to match these membership numbers? This would then prevent every Tom, Dick and Harry from trying to register as they’d be greeted with a message along the lines of ‘Your membership number is incorrect’ and wouldn’t be able to proceed with registration. Alternatively, is there a way to set up a ‘Registration not accepted’ email, for those users who don’t end up being activated.
I’m really not technical at all, but I love how easy the plugin is to use, customise and set up!
Arnaud Houdmont says
Hi. I asked a question a few days ago. Thank you very much for the excellent and speedy feedback!
I have two more questions re wp-members before I can beta launch my website:
1. Whereas my “login” and “profile” pages work perfectly, the fields of the “register” page seem inactive (http://www.waziproject.com/register/). I can not click in them, write in them, submit them… I can not use the dropdown lists, etc… These fields do work when they appear in combination with the “login” fields in the “profile page”… (http://www.waziproject.com/profile/) Also, when I’m logged in, a line appears through some of the words when I’m on the “register” page, I cannot select the content to copy and “click here to log out” and “begin using the site” are unclickable…
2. I created archive pages for some of the content on my website. I would also like to protect this and make it only accessible when logged in. However, the archives are based on categories… (http://www.waziproject.com/category/research-dossier/) and I can’t seem to block this content.
Thank you ever so much in advance for your help.
Kindest Regards,
Arnaud
Chad says
It does not do that natively. However, there is another plugin in the repository that works as an add-on to restrict categories (see: http://wordpress.org/extend/plugins/members-category/).
Chad says
The plugin puts the login and registration form in place of blocked content automatically. If you want to set up a registration page, you can embed the form using the [wp-members page=”register”] shortcode. Please refer to the Quick Start Guide or the Users Guide for more information.
Chad says
Are you using the plugin in its default configuration (user registers and receives a random password via email)? Or have you added a password field for the user to choose his/her own password? Are you using moderated registration (the user must be approved by an admin)?
Chad says
There is hook in the registration action that would allow you to have additional validation on the registration info, but you’d need to have some technical php skills to access that level of flexibility.
Phil Chandler says
Users register and then receive a random password via email (default setting). There is no moderated registration – anyone can register.
Chad says
With your first issue, I can’t tell you exactly what the problem is, but there seems to be some type of a focus issue in Firefox. It works fine in IE. These forms have been tested in IE, FF, and Chrome, so there is something in your theme or another plugin that is causing a conflict.
With your question about blocking archive/categories, if you want nothing to show (as opposed to showing just titles and excerpts as the plugin does by default), you could edit your archive template to display content based on user login, such as:
Hope that helps.
Chad says
I went back to your original question and I think I missed this before…
So, there is no email being sent at all, even when you test via the wp admin panel?
Phil Chandler says
Hi Chad
Further to your recent comment, no, no email is sent at all.
Thanks once again for getting back to me quickly.
Phil
Chad says
Ahhh… I’m glad I went back and asked otherwise I was going the wrong direction. Then the problem lies with wp_mail and not necessarily the plugin. If you are using WP Mail SMTP, you might want to check that you have things configured correctly. Also, I would double check whatever “from” address you are using is an actual address that you have with your email service provider – some hosts restrict email sent from scripts and they may restrict fake email from aliases (meaning, if the message is “from” info@mysite.com, you host may require that info@mysite.com be a valid address).
Amberly Steele says
I am trying to set up a log-in for only page on the site. I would like to assign everyone the same Username and Password. Is this possible? Thanks!
Phil Chandler says
OK – will take a look at the mail settings and contact the website host. Many thanks for your help – I feel closer to diagnosing what’s going on!
Keep up the good work.
Phil
Chad says
If you intend to have other data tied to the account (such as the person’s email, etc) then no. Usernames must be unique. If you intend to just create a single user (such as “guest”) and give that information out to everyone, then yes.
Amberly Steele says
Yes, just a single user. How do I do that? Thank you!!!!!!!! (Great Plug-in by the way) 😉
Fiona says
Ah, I see – no worries, I just haven’t been activating the users who aren’t members of our group! My php skills are pretty much non-existant, so I don’t think I’ll do any messing around.
Thanks for the speedy response!
Arnaud Houdmont says
Thanks a million!
In order to fix the first issue I decided to revert to the default wp-members combined login/registration page… Somehow I’m not managing. I removed the “Register Page URL” in the settings, I removed the registration page from my WP pages, I removed the register link and I deactivated and reactivated the WP-members plugin… None of it seems to ensure that the login/registration page features both login and register fields.
Any ideas? I sincerely hope that this will have been the last time I had to disturb you.
Best,
Arnaud
Carl says
Hi
I want to use a widget to list the titles of most recent posts, within a category, on my home page. I want everyone, including non members, to be able to see these titles on the home page, but I want users to have to login or be logged in to go through and read the entire post.
Kind of like baiting and encouraging non members to join.
Is this possible?
Carl says
Ok. I found it in the user manual. I think this is what I’m after.
Something that is important to note about posts is that there are many places that a post can show up. There are theme pages, such as the home page, archive, and search, that will show either full articles or excerpts, depending on whether you define an excerpt or not. You can define an excerpt either using the excerpt field in the post editor, or you can use what is known as the ‘more’ tag.
Either of these methods will cause WP to only display a “teaser” of your content on one of these summary pages rather than full content. In order to protect posts, WP-MembersTM requires that you use an excerpt, preferably by use of the ‘more’ tag. In this way, your specified excerpt will display to anyone on the summary pages, but a registered user must be logged in to view the full content.
Leif says
Hi. I want the entire site to be for members only. I want the login/registration in the beginning and to block all content. I don’t see the settings to do that. Can you please advise?
Thanks
Chad says
You can do that via the WP admin… just create a new user under Users.
Chad says
If you are using the page shortcodes ([wp-members page=”login”] / [wp-members page=”register”]), those are one per page and are for those specific functions only, so if that is what we are talking about, you won’t ever have both on a single page. The members area page will show both as long as you haven’t turned off the registration option in the plugin.
Amberly Steele says
THANK YOU!!!!!!!!!!!!!
Phil Chandler says
Resolved by deactivating WP-Mail-SMTP (not sure why this plug-in was installed in the first place).
Once again, many thanks for all your help.
Kind regards,
Phil
Chad says
sounds good.
Eric says
I want a different home page to be displayed once the user logs in. how do i do that?
Lelet says
Hello,
Can this plugin be used in registering a member without them having an access with the WP dashboard? I just want members to have their separate page where they can change their information without going to the wordpress site dashboard. And like others, they can also comment on discussion forums.
Thank you!!
vicky says
How can I hide a search result page meaning search result page is only viewable by members who registered instead they will see a registration form like the more tag , i added <?php content but didn't work
Chad says
See this post for some ideas: http://butlerblog.com/2011/10/04/blocking-content-in-a-custom-template/
If you are using a custom template for your home page, then you could do something in that template using is_user_logged_in(). If you use the same template for the home page as other pages, you might need to add a condition with is_page() to know you are on the home page.
Chad says
Yes, the registration process is in the site front end. While it does not use the dashboard, it does not automatically restrict access to the dashboard. If you want to restrict access to the dashboard, there are many code snippets floating around that will help you do that.
Nic Jennings says
Hi There,
I am using your plugin and I think it is great, however I would like to be able to notify users/subscribers when a post is added to the restricted area/category.
Is there a way I can make this happen, I can write one which notifies all subscribers but I want to use the sign up field from WP-MEMBERS to select who gets the email for each category.
Thanks
martin eikelboom says
installed plugin wp-members 2.7.5
after logging in as a user, I am not redirected to a page, but get a blank screen. I have to hit enter again to get the page. Is there some setting I am missing?
Chad says
If you are able to write a script to notify all subscribers, it would just be a matter of adding an additional condition to your process. If you added a field in the registration form for notification, that would stored in the usermeta table and the value can be retrieved with get_user_meta().
Chad says
You’ve got something in your theme or another plugin that is interfering with the login/redirect process. To track down something like that, you need to deactivate plugins to test and if all plugins are deactivated and it still does it, test with the default theme. My guess is a caching plugin.
LupoBello says
Blocked Blog page shows page of blocked posts.
Every other page works correctly but any page containing posts shows the registration form for ALL posta (as opposed to only once for the page).
See http://mosaicforum.com/blogdummycontainer
I don’t think this is the intended behaviour. What could be causing this?
Matt says
Love the plugin!
Where can I edit the url of where my TOS page is loading?
Chad says
A list of posts is really no different whether it is a page or it is an archive template, so it will show titles and excerpts. Basically, that means if you want to block the entire loop, then you would need a custom template for that particular page. A suggestion to follow would be this post: http://butlerblog.com/2011/10/04/blocking-content-in-a-custom-template/
Chad says
You can input your TOS in the plugin’s dialogs tab. If you want to override that with a specific page, you can use the TOS parameter for the page shortcode described here: http://rocketgeek.com/plugins/wp-members/users-guide/shortcodes/page-shortcodes/
Matt says
Thanks. I’ve created the short code [wp-members page=”TOS” url=”http://www.conceptuagroup.com/terms-of-service”] and inserted it into the dialogue box, but it still directs to here: http://www.conceptuagroup.com/wp-content/plugins/wp-members/wp-members-tos.php/
Chad says
In reviewing, I think the TOS needs to be lower case (tos). However, I’m still not getting a valid redirection. I’ll have to review it and let you know.
Joe Roberson says
Hi Chad
WP Members is a really well designed plugin. It’s being really useful.
But it’s not working right for me. When the login/register prompt comes up on a blocked page it does not show an option to reset the password for users who have forgotten theirs.
See here http://www.innovationlabs.org.uk/grants/
Please can you help?
Thanks
Joe
Chad says
Hi Joe – the password reset feature is part of the members area page created with the members-area shortcode. If you set up this page and enter the URL of that page in the plugin’s options, that will put a forgot password link in all of the login forms. (Likewise, if you set up an optional registration page with the register shortcode and put that URL in the plugin’s options, a register link will also show in all of the login forms.)
Hope that helps.
Joe Roberson says
It does, and I just worked it out too. Thanks a lot.
Brian says
Hi Chad,
Love the plugin it’s pretty awesome. I’m having issues though with the filter hook
when I insert this in the functions.php my site basically crashes, and I can’t find wp-members-pluggable.php anywhere to put it in there. Not sure what to do, because I want the people that sign up to be redirected to the Members Area.
I’m lost on what to do lol
Thanks,
Brian
Brian says
Ok I got it to not crash or blow up on me, but when I login it just stays on the login page and is not redirecting to the members-area page. Bahh! lol
Chad says
Not 100% sure which filter hook you are talking about – I assume it is wpmem_login_redirect?
Make sure you are formatting things correctly:
Matt says
Hi Chad…my form is quite long, is there a way to break it into 2 pages?
Brian says
Ahh I must have put some extra stuff in it. It works great! Thanks. One other thing. If I want a page to show up in the navigation only when they are logged in how do I do that?
Like if a user is not a member they won’t see Members Area on the navigation bar, but if they are members then they can see it(it just appears after logging in)
Thanks,
Brian
Jasper says
Hi Chad,
I am wondering where is the piece of code which ask for login when you view a block page/post?
I have a forum plugin which requires login. If I click the login button it redirects me to wp-login.
I want to use the WP-Members login interface instead of that.
I tried to redirect the login to the “member” page, which also able to do what I want, to ask for a login. However, it redirects back to the “member” page instead of the forum.
So I am wondering, if I can redirect the login button to the block post/page code, then once I click the login button, it ask for “existing user login” or “new user register’, and when login is complete it redirects back to the forum.
Hope you understood what I meant.
Thank you
Chad says
Not easily…
Chad says
I am in the process of launching a premium support site with many examples and code snippets (as well as a free online user guide). One of the free posts explains how to create different menus for logged in/out users: http://rocketgeek.com/tips-and-tricks/creating-menus-based-on-login-status/
Matt says
I’m up for the challenge 🙂 Send me an email when you have a min and we can chat.
Chad says
I think you might want to set up a login page using the [wp-members page=”login”] shortcode and direct to that. The one catch is that the WP-Members login (whether you are using it from a shortcode or from a blocked page) doesn’t currently handle a redirect directly. (The wp-login.php can be passed a page as a parameter to redirect back to.) I plan to add that feature in the future, but for now, if you wanted to login and redirect back you could use the wpmem_login_redirect filter hook. You would need to work out something like:
andy says
Hi,
I really like the plugin
Is there any way of having the member register and then be routed to a paypal page.
I could do something with the gravity forms plugin I have but something seamless as part of wp-members would be the ideal solution.
Many thanks and any help gratefully received!
-andy
Chad says
There is a redirect action hook that you could use (see wpmem_register_redirect here: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/). Also, I will be launching a PayPal add-on module for members of the premium support site rocketgeek.com. That will probably be released in Aug/Sept.
Elle says
Can WP-Members block a certain post category to show only to members instead of just individual posts?
Chad says
It can – the plugin has a number of action and filter hooks (full list here). There is a filter hook for whether something is blocked or not – wpmem_block. You can set a criteria (such as category == something) and change the value of $block to true or false based on that criteria.
Neil says
Hello,
I am looking for a plugin that will permit members varying levels of access.
Site I am intending to build will be open for the most part but have Gold, Silver & Bronze access areas (for information and downloads) depending upon the level chosen by members enroling. Is this possible with the plugin please and could members then subsequently upgrade (or be upgraded by administrator) to the next level?
Grateful for any help
Many Thanks
Neil
LupoBello says
Neil; As Chad explained this is possible through manipulating the wpmem_block() function (located in wp-members-core.php). However more is necessary as I will sketch here.
My solution is a work-around which requires editing the ..core.php — not something to be recommended and which could be wiped out when updating to a new release. Unfortunately, this appears necessary because the function wpmem_securify() (also located in ..core.php) and which relies on wpmem_block() is “joined at the hip” with checking whether someone is logged in.
For this reason, it would be desirable if these could be decoupled – something that perhaps Chad can do in a future release.
For now:
In my own site, I needed a limited member type – called BBmember- which had more access than a visitor but less than a full member.
1. I creates an additional user field “BBmember_yes_no”. You can assign users to the right level using the dashboard
2. In the function wpmem_securify, I made this change ~line 113
//if( !is_user_logged_in() && wpmem_block() == true ) { ORIGINAL
if( wpmem_block() == true ) { // userlogged in check moved to wpmem_block()
// this is the decoupling I mentioned.
3. I modified the function wpmemblock(
to be like this ~line 360
{
// code to check is user is a BBmember
$current_user = wp_get_current_user();
$the_user_id = $current_user->ID;
$key = ‘BBmember_yes_no’;
$single = true;
$BBmember = get_user_meta($the_user_id,$key,$single);
$block = false; // determines whether the item itself has a general block
//if($BBmember == ‘yes’) { $block = true; }
if( is_single() ) {
//$not_mem_area = 1;
if( WPMEM_BLOCK_POSTS == 1 && ! get_post_custom_values( ‘unblock’ ) ) { $block = true; }
if( WPMEM_BLOCK_POSTS == 0 && get_post_custom_values( ‘block’ ) ) { $block = true; }
}
if( WPMEM_BLOCK_PAGES == 1 && ! get_post_custom_values( ‘unblock’ ) ) { $block = true; }
if( WPMEM_BLOCK_PAGES == 0 && get_post_custom_values( ‘block’ ) ) { $block = true; }
if( is_user_logged_in() && ! $BBmember == ‘yes’) { $block = false; }
if($BBmember == ‘yes’ && (is_page( ‘place-ad’ ) || is_page( ‘edit-ad’ ))) { $block = false; }
return apply_filters( ‘wpmem_block’, $block );
}
Notes.
1.You will have to mimic this by creating your user levels (gold, silver,..);
2. the conditionals are in the last line of wpmem_block() (basically a list of pages which is accessible to one level rather than another).
This is awkward and not very dynamic. But it works for my limited need. Again, hopefully Chad will choose to implement this functionality in a more elegant way for everybody’s benefit some time in the future
I hope this helps.
Elle.
ps I am vacationing with very limited access to InterNet. Am unlikely to contribute further in the near future.
Neil says
Hello Elle,
Many thanks for taking the time and trouble to respond.
Really useful and very much appreciated
Thanks again
Neil
Chad says
I appreciate you sharing this. However, you are doing WAY too much work to accomplish your task (and as you mentioned, you shouldn’t be editing the core files).
The functionality is actually already there.
Actually, this is not the case. What you want to be using is the wpmem_block FILTER. Using the filter hook located in the wpmem_block function, you have the opportunity to filter its value. That is ALL you need to do for this. You do not need wpmem_securify to determine login state – there is a simple WordPress function for that – is_user_logged_in() which returns a true/false boolean, so there is no “decoupling” necessary.
So to answer both of these issues, everything you need can be done in a filter function. You only really need three things:
This might sound foreign to you if you are not familiar with WordPress hooks and functions, but it is really not that complicated – and it is MUCH better than making changes to the code itself. And it gives the plugin ultimate flexibility.
So a framework might looks something like this:
A working function would be added to your functions.php file in your child theme. It may look complicated, but strip away the comments and you’ll see that there really is not that much code needed to do what you are looking to do.
(As I mentioned, this is not plug-and-play. This is just a framework example to show you how it should/could be done. It’s up to you to create/set the needed elements for the posts and the users.)
Chad says
Neil – I would suggest you review this response – it is actually intended to address both your question and Elle’s answer.
Claudiu says
I do have a problem when I put 2 shortcodes in the same page. I’d like to put both register and login form on the same page but the last form contain the first one as well.
If I use login form first and register in the second place the first login form is displayed and the register form contain a login and a register form. How can that be fixed in order to have only one login form.
Chad says
The update that I am releasing tonight actually will allow you to use more than one of the “page” shortcodes on a page. HOWEVER – when it comes to the current version, the instructions in the readme file indicate that you cannot use more than one of these on a page. Also, even with the update, the fact that you “can” use more than one of these on a page doesn’t mean you “should.” They are intended to be single pages and they have both a logged in and logged out state, the logged in state would be redundant if you had more than one on a page.
The default installation of the plugin provides both a login form and a registration form for both blocked pages and the members area page, so there really isn’t a need to use these two shortcodes together anyway.
Claudiu says
The plugins is very useful but it has some lack of usability.
For instance a login form doesn’t have a password recovery tool meanwhile a members-area does have.
In another example I want to help people register on a site but after the registration is complete the form should disappear and a login form should came across. I have a full width theme and I can’t use login form in sidebar but only in content of pages.
In other words if I use members-area in one page, witch is the most useful and non-redundant page I can’t logout.
It could be a little confusing for users to make so many clicks in order to logout or recover a password.
Beyond all this “critics” the plugin is very useful.
Best regards
Chad says
Update to this – User Stats add-on is now available to rocketgeek.com members. PayPal add-on is coming soon…
http://rocketgeek.com/plugins/wp-members/add-on-modules/
ThoPhan says
i want to redirect to home page after login. How can i do?
Chad says
Here’s a description of the wpmem_login_redirect filter from the Users Guide: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_redirect/
Patrick Healy says
Hi, Installed the plugin and it seems to work fine with one exception:
When a new user registers and is activated they are unable to login through any other means than http://www.mydomain.com/wp-admin
When they hit protected content and the login box comes up or if they try and log in through the sidebar widget they get “Login Failed!
You entered an invalid username or password.”
I have tried this with a dummy account and even changed the password and I get nothing. When I try to sign in on the front end with my admin password it even rejects me. The only way to get in is http://www.mydomain.com/wp-admin and I would rather not give these registrants access to the back side of WP.
Any ideas? Using Genesis with the Agency child theme.
Chad says
Are you using some type of cacheing plugin? If so, you may want to test with that disabled and see if you have a conflict there. Otherwise, I would suggest disabling other plugins to see if there is something else in conflict. It sounds to me like you may have a plugin or theme element that is jumping in front of the login process.
George K says
I had two questions about the plugin.
1) I want to use the plugin to handle registration & subscription renewal but I wanted to control the display (or hiding) of content through my template. Basically, I have a custom post type for protected content, and I was wondering if there was a function I could use in the template to get the users membership status. In another plugin I used there was a function is_member which allowed me to check membership status and display content accordingly.
2) On the registration page, is there anyway to have default options selected and even remove the radio buttons in instances where there is only one option? The site I’m building only has one subscription option and one payment option (paypal). It seems like a waste to make the users click the radio button beside these two items when there is only one available option.
Chad says
There is a subscription module, it is a premium add-on available at http://rocketgeek.com. If you want to filter based on a custom post type, you would need to do that using the wpmem_securify filter (see: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_securify/). The wpmem_securify function is the primary function for determining if content is blocked or not. This filter hook comes at the end of the function so you could block the content based on the post type.
As far as determining membership status, if you were using the subscription module, yes there is a function for determining if the user is expired or not. Otherwise, to just determine if the user is logged in or not, you can use is_user_logged_in().
I’m not sure where you are getting the radio buttons from. Are we talking about WP-Members?
Patrick says
Thanks for this. I was able to overcome the problem by disabling the Chap Secure Login plugin. I don’t like not having this plugin installed but it seems to be the one that was butting heads with wp-members. I think it requires you to be logging in directly from the standard login screen. Thanks for the response and the advice. I really like this plugin a lot BTW. I am going to start using it for all of my sites that have private content that need registration. I’ve decided to avoid the “you can see this content” display by complimenting it with another plugin called Secret Content. You have to be logged in to see posts that are flagged by that plugin, otherwise you are oblivious to their existence. Really helpful.
Andy Nickless says
Does WP Member have any way to restrict login details sharing?
It seems to me that if someone publishes there account details on a forum, the member area idea would fail to protect content from non-members.
Chad says
There really is no fool-proof method of preventing login sharing in this or any other plugin. But that is pretty much the case with most login systems. There is a stats add-on that provides granular data tied out to specific user accounts, so you can see what they are looking at, how often, and what IP they are logging in from and that would give you some idea how specific users are accessing.
Donato says
was this released yet?
Linda says
Hi,
I’m using this plugin and am having many issues actually. It does tell users who’re not logged in that they need to be a registered user to reach the content. However, on the blocked pages, the content in the sidebar is not blocked.
When doing Google searches a lot of the blocked content can be found and read by people who shouldn’t be.
I believe there’s no way to create a page with all registered users and have a user a rofile paeg that can be viewed by other members.
The plugin works great up to some point, but when you want to push it a little further, I feel it lacks a lot of functionality.
If this plugin is able to do all that I stated above, any help would be very much appreciated. If I should be looking for another plugin, please let me know if you know of another good one. I’ve searched all over, but no plugin is as complete as I wish it’d be.
Thanks so much!
Linda
Chad says
Hi Linda – thanks for your comments.
I would disagree. Maybe it’s just my lack of being able to communicate information, but this plugin is one of the most extensible out there. You can actually plugin to the plugin as it were. There are over 30 filter and action hooks and also many of the functions are pluggable. I would say there is very little that it can’t do. Certainly each of the issues you’ve described can be addressed.
There is a very thorough User’s Guide available that covers most of the features (including the aforementioned hooks): http://rocketgeek.com/plugins/wp-members/users-guide/ While the majority of tutorials on the rocketgeek.com site are only available to paid members, all of the plugin’s documentation is available free (the tutorials take the information already available in the documentation and demonstrate practical application). In fact, the entire rocketgeek.com site is a working example of how customizable the plugin is.
You are correct that sidebar content is not blocked in the plugin’s standard configuration. If you want to block sidebar content, there are several approaches. I think the best way to approach that is to create multiple widget areas with one of them being restricted to logged in users. I do have a premium tutorial on putting that together here: http://rocketgeek.com/tips-and-tricks/displaying-sidebar-widgets-based-on-login-status/. That process is similar to setting up different menus based on the user’s login status, which is described as a free tutorial here: http://rocketgeek.com/tips-and-tricks/creating-menus-based-on-login-status/.
You could also block sidebar content using the login status shortcode if you enable your sidebar to allow shortcodes. That would allow you to restrict specific information based on login status. A working example of this is the “Join Today” sidebar content on rocketgeek.com. This shows only to users who are not logged in (kind of the opposite of restricting content to logged in users).
Regarding the Google indexed content, my question would be is this content that was available to Google before implementation of the plugin? If that’s the case, there is your answer. Once content is indexed, it doesn’t matter if it’s behind a login or not – the bot already has it. If content is restricted from the point of creation, and it is properly behind the plugin (including restricting your RSS feed, as per the installation instructions), there would be no possible way for a bot to retrieve the content. The plugin actually empties the value of the WordPress function the_content before anything is sent downstream. Now, restricted pages and posts can be indexed as such, and any excerpt would be available, but if you have restricted content that comes after the excerpt showing up in search engines, then either (a) this was available before plugin install, or (b) you have missed something in setting up the plugin.
There is nothing in the plugin that creates a profile page, but that is not to say that you can’t. The reason that the plugin doesn’t offer this is that is not part of the initial development area of the plugin – there are already other plugins that do that, so why recreate the wheel? But, based on the amount of demand for this functionality, I did release an add-on that is available to rocketgeek.com members (see: http://rocketgeek.com/plugins/wp-members/add-on-modules/). It is currently limited in functionality in my opinion, but once the 2.8 version of the plugin is completed and released, this module will be getting some upgrades as well.
Hope that answers your questions/concerns.
Chad says
Yes – there are actually several add-on modules available to premium members at my new support site rocketgeek.com: http://rocketgeek.com/plugins/wp-members/add-on-modules/
Linda says
Thanks so much for the extensive reply! I’ll get into it and make this plugin work as I’d like to. Thanks again!
Chad says
No problem – I hope you find it useful.
Franz says
How can i allow multiple email address for different users?
Franz says
what i mean is Multiple users with same email address
Chad says
There is not a way to override that at present. However, I will be including some filter hooks in the upcoming 2.8 release that will allow users to override some of the default registration validation.
seth says
Hey,
I need to make posts from a certain category private and I don’t know how, can anyone help?
I saw that on the plugin site there is an article about this, but you have to register for this and it’s really expensive…
Steve says
I need the same thing.. It does however look like you will need to use some sort of “hook” which I have yet to understand where / how to add this feature into the category section of wordpress… We are running a website for the Fire Dept which needs limited community access but blocked areas that only our firefighters need access to… We are attempting to setup an category such as “training” that we can use as a private discussion area for our firefighters and admin personnel and have their login screens direct them to that category listing page or just use a link… Hopefully we can get some answers about using the “hooks” and categories without much more trouble… I would think this would be as easy as post and pages but obviously not. Any help for us newbees out there Chad?
Chad says
Steve – that is something is covered with example code at the plugin’s support site rocketgeek.com. However, you don’t need that to block/unblock posts. That’s just discussing how to set an entire category as blocked by default.