WP-Members is a free plugin to make your WordPress® blog a membership driven site. Perfect for newsletters, private blogs, premium content sites, and more! The plugin restricts selected WP content to be viewable by registered site members. Unlike other registration plugins and WordPress® itself, it puts the registration process inline with your content (and thus your branded theme) instead of the native WP login page. WP-Members works “out-of-the-box” with no modifications to your theme, but it is fully scalable for those that want to customize the look and feel, or want to restrict only some content. It is a great tool for sites offering premium content to subscribers, and is adaptable to a variety of applications.
I would suggest that you sign up for the premium support membership. At $59, it is a good value and this price gets you access to the support forum, priority email support, a code snippet library of customizations, and access to exclusive plugin extensions such as registration blacklist, user tracking, PayPal subscriptions, and more.
Download the plugin
The plugin is currently maintained at the WordPress Plugin Repository. You may always find the current production version there.
Support documents
The primary support documents I have created are the Quick Start Guide, a visual support document to get you started, and the Complete Users Guide, which documents all of the features of the plugin.
Tips and Tricks
- Customize the Stylesheet
- Loading Custom Stylesheets with wp_enqueue_style
- Customizing the Plugin with Pluggable Functions
- Display different menus based on login status
- Block content in a custom template
- Disable the WP admin bar
- Filter and Action Hooks
- Filter Hook Demos (some are free)
There is a difference between Posts and Pages in WordPress. If you use WP primarily as a CMS using pages for content, you should review this post:
Translation and Localization
If you are using WordPress in a language other than English, the plugin has been adapted for localization. A POT file and existing translation files are available.
Godserv says
I setup the plugin and everything works fine except – it says “Pages can still be individually blocked or unblocked at the article level”
– but when I go to the page to edit it, there is no option to unblock on the page. I want to unblock the contact page so that visitors can still contact me.
I have
Block Posts by default – on
Block Pages by default – on
appreciate your help with this
Thank in advance
Chad says
Thanks for the comment. This (and much more) is covered in depth in the Users Guide, available on this page. Look under “Override the Default Setting for Posts.” (I’d refer you to “Override the Default Setting for Pages,” but that refers you back to the section on Posts, as in this particular instance, the steps are the same.)
Emilio says
Hi!
i´m traslating your wp-members to spanish, but i can´t translate this part…. i don´t know why…
you can check here: http://tugrandeza.com/members-area/
so, I was trying in the wp-members-install.php but like it no works..
I apreciate so much you can help me.
thanks!
Chad says
Hi Emilio, Thanks for your comments.
If you have loaded the plugin at anytime before you added the translation, the field names are already loaded into the database. The install process intentionally does not overwrite the installed settings. There is a toggle in the wp-members-install.php file called $chk_force that will allow you to force these settings to be updated which, if your translation files include the field names and are present when you do this, will load in the translated field names. There are instructions commented into the install file, but essentially, setting $chk_force to true will force the plugin deactivation/reactivation to reload all of the plugin’s db options (thereby providing you with translated field names). Just be sure to set this back to false when you are done, in case you deactivate the plugin later and don’t want to unintentionally override any custom settings. Also note that when you do this, it will set all of the plugin settings to the default, so you might have to check those if you’ve changed any settings.
Gicela says
Hi. I have a serious issue with the plugin that I hope you will be able to help with. I have a registration widget with Login/Register. I want people to register in order to leave a comment. However, I have created a couple of users to test, including the admin user but when going to a comment, it tells me that I ‘must login in order to post a comment’ when I’m already logged in.
I think there is a conflict somewhere. I’m using WP3.1.3
Chad says
Well, I did make some changes to the way the plugin handles restricting comments in the most recent version and this has been tested and is working for both admins and subscribers. However, the only thing the plugin does with comments is restrict whether you can view them or not. It does not manage whether users can actually post a comment (it relies on WordPress for that, since there is already a setting for requiring users to be logged in to post a comment). Have you checked this with the that setting on but the plugin turned off? Do you have a test system I can view?
โหลดหนัง says
If you have loaded the plugin at anytime before you added the translation, the field names are already loaded into the database.
Chad says
That is correct. You can either delete the plugin via the plugin administration panel which will clear out the db settings, or there is a toggle at the top of the wp-members-install.php file called $chk_force. Set this value to true and deactivate/reactivate the plugin. That will load the translated field names into the db (be sure to change this back when you are done, so you don’t inadvertently reset your settings back to the defaults).
Chad says
Gicela – I did discover a conflict in the plugin with the ‘reply’ link in the comments. This is being addressed in a bug fix release that I intend to release this evening (if all goes well). There are a couple of other bugs addressed and I will be posting information regarding the release later. Thanks for your input!
tony says
installed update and now plugin will not work. it says plugin failed, Could not create directory. D:/Hosting/3084047/html/30daylearning/wp-content/plugins/wp-members/
the previous version was working fine but the update did not update. please advise.
Chad says
That generally means something failed in the download between wordpress.org and your site. If that happens, you have a couple of options. You could delete the plugin completely and load a new installation via FTP. You could also check your /wp-content/ directory for a folder called /upgrade/. If this did not clean up properly, you could delete it and try to install the plugin via the installer again.
You might wait awhile this evening before trying to update – I have a bug fix release scheduled to be released this evening.
raymov says
Is WP-Members Multisite compatible?
http://wordpress.org/support/topic/plugin-wp-members-config-pages-blank
Chad says
Officially, no. I have heard from some users a while back that they have used it in a Multisite installation, but I have not tested it myself. The development of WP-Members predates the merge of WP and WPmu and has never really been tested in that environment.
Tom says
Hola Emilio and Chad,
Just a quick question for both of you, as I am in the middle of developing a multilanguage site English/Spanish. I am trying to translate the plugin into Spanish, but I am not sure if I have to translate the PHP files one by one, or by doing it on the lang/wp-members.pot file will suffice. Or there is already a Spanish version available.
Also for some unknown reason I can’t get a register button to display on the widget, all I have is just the login button.
Thanks guys for any help on this.
Chad says
Tom,
Don’t translate the files directly. That is not upgrade-able and when there is an upgrade, you’ll find yourself needing to translate again (and thus probably avoiding an upgrade – which is a bad idea as a lot of times upgrades are security or bug fixes). The .pot file can be used as a beginning, or you can generate a new one. You may want to consider using a gettext editor like Poedit.
johnc says
Chad,
I’m setting up a wordpress site for my cubscout pack and we have >100 families. Would importing their core data in mysql to the user table be the quickest way to populate the members? If so, how do I get their passwords to them? I’m using subscribe2 plugin and when I manually create a user, the wordpress interface offers to send the password to the new user. Not sure what other wp-members users have done in this regard. Any thoughts?
Chad says
Hi John, you could import directly and with a large number of users, that’s the way I would do it. However, you need to consider how WP manages users between the users table and the usermeta table. If you are importing beyond simple username, password, email data, then you probably are best off writing yourself a script to do the work. I would suggest you review the database description before attempting this.
If you go that direction, you will need to figure out how to get them their login info. However, if you are intending to user registration moderation (admin approval of registrations), you could import all users as inactive users. Then in the Users > WP-Members if you bulk activate all of the inactive users (which is all of them in this case), it will as a matter of activating them email them their login information with a random password that they can login and change.
WordPress includes the ability to email a password when you create a user regardless of whether you are using a plugin or not. But if you have a lot of users, that’s a lot of data entry. I think you’ll save a lot of time if you work out an import process and bulk activate the list.
johnc says
Thanks Chad for your quick and thoughtful reply. I have a lot to think about on this but will report back. cheers
Tom says
Hi Chad,
Quick question, I installed wp-members and it’s working great but the temporary password that WordPress emails out when a user is created through the plugin’s inline contact form doesn’t seem to work. It comes up with an error saying that the login is invalid, I have to re-add the password manually in WP Admin for it to work.
Any ideas?
Thanks,
Tom
Chad says
Hi Tom, thanks for catching this! This is a bug I missed when testing.
Just looking at it now, it looks like the password being entered into the db at registration is not valid.
The 2.5.3 bug fix release included changes to the wpmem_registration function found in wp-members-register.php some of which was to fix a bug related to error checking for non-alphanumeric characters included in a username. At the time, I had been working on upgrading some of the WP function calls in wpmem_registration for a rebuild of the function to be included in 2.6. Since the rebuild was complete, it was included in this release. Unfortunately, this slipped a major monkey wrench into the system.
I’ll have to do a bug fix release to correct this as we have (in this case – unfortunately) had record breaking downloads of this release. So, that means a lot of effected users. An immediate fix for a production system would be to roll back to 2.5.2. Otherwise, wait for an update (which I will release today).
Tom says
Hi Chad,
No worries, glad I picked it up then! That’s pretty exciting that the release is having record downloads too.
Looking forward to the bug fix. Thanks!
kevin says
Hi, Nice plugin !
When the user log in or register, i want them to be redirect to a precise page. How could i achieve this ?
Thx
Chad says
The update has been loaded, so it should start showing up soon (the wordpress.org svn recycles every 15 minutes)
Chad says
Well… I am going to be doing some rewrites to the way certain things operate on the road to 3.0. That will include a revamp of the shortcodes. Presently, the register and the login shortcodes were late-term add-ons due to a number of user requests, so they only perform limited functions. I intend to update these to include a redirect value other than the default (the_permalink).
In the meantime, although I don’t recommend editing the files directly, that’s pretty much your option. Both the login forms and the registration forms are found in wp-members-dialogs.php. There are two of each, the tablebased forms (old) and table-less forms (new). The redirect at completion is passed (just like WP’s native functions) in redirect_to as a hidden field. Generally, this is the_permalink(). This is so that when the user registers or logs in on a specific page (such as post “My Blocked Post”), they end up on that page at completion. If you change this, you are radically changing the process flow as it is written, so your mileage may vary…
Good luck.
Christina says
Is there a way that content can be released to the user based on their time registered? For example, release content after 1 week after, then 2 weeks, etc?
Forgive me if this is answered somewhere else, I have looked and have not been able to find the answer anywhere! Thank you so much for your help!
Chad says
Hi Christina – thanks for your question. What you are talking about is generally referred to as a drip feed. This plugin does not offer that feature at this time.
Christina says
Chad- Thanks! I’m still learning the technical side of everything…much appreciated! 🙂
Nordino says
Hi. I installed this plugin yesterday and it looks great. Thanks! I have some questions though:
– How can I see address, post code and city in the members overview? I need to send items to all approved members, and it would be time-wasting to check each profile individually instead of printing out a list
– How can I edit the standard e-mails sent out upon registration and upon approval?
– Is there anyway the users can pick password themselves?
– How can I change the registration and login form layout? It looks old and terrible.
I would really appreciate help with this. It would make the plugin absolutely perfect form y needs!
Vance says
Hey Chad!
It goes without saying: AMAZING PLUGIN! I doubt it can even be classified as a plugin, its in it’s own league. Anyway, quick question. I have the plugin running, but I want to format the colour of the text and the positioning of the entire login box. Mainly cause my background is white, and the text is white, so while the plugin works, you can’t see fields like “username” or “first name” etc. I tried editing the files in the css folder and I also replaced the #wpmem_reg with .wpmem_reg, same with #wpmem_login. But that didn’t work. After deleting the entire css folder, I found that the plugin doesn’t even use the folder. Any idea what I should do?
Merci!
Chad says
Nordion – the users can be exported to a CSV – that would be the best way to manage viewing them by the fields you mention.
If you want to edit the emails, they are in wp-members-email.php, but it is not recommended that you edit the files directly – that is not an upgradeable solution. Users cannot pick their own password at registration. That is part of the validation process. They can (and are prompted to) change it when they login (they can change it to whatever they want). As far as changing the form design, have you read the user guide? This is covered in there.
Chad says
Hi Vance – thanks for your comments and the kind words. As for customizing the CSS, if you are having challenges getting your changes to show, it is possible that you have some styles being inherited from other stylesheets (such as your theme). I would begin with reviewing /css/wp-members.css as a guide. It is designed to be as generic as possible while still showing what possibilities there are with the generated form. If you continue to have problems tracking down possible inherited styles, you may want to consider working with a browser plugin like firebug to inspect the elements that are conflicting.
paullowden says
Hello, This is a good plugin. However I have an issue.
I am only using the Widgit to control logging in and out of the website. The logout works fine, and when a user logs out it takes them to http://www.mysite.co.uk. The login though trys to take them to http://www.mysite.co.uk/index, which does not exist. How do I modify the Widgit script to redirect the user after login to http://www.mysite.co.uk ?
Thanks in Advance!
Chad says
Upon login, the user should be ending up on whatever page they logged in on, so it all depends on the type of page/post they are on as to what it is grabbing. This is in wp-members-sidebar.php
paullowden says
Ok, so if I want it to default it always to the home page (www.mysite.co.uk) I will edit thge wp-members-sidebar.php yes?
Alyssa says
Hi,
I’m helping a friend with their members area. I’ve successfully installed the plugin and blocked the page, but I’m getting two login boxes. One above the header and one in the body. How do I get rid of the extra above the header?
Thanks!
Alyssa says
One more question – how do I allow users to logout?
Colin Weir says
Hi There
Brilliant plugin. However recently it’s not performing the same as before. It used to integrate fully with the theme I’m using however it now looks messy and is over text that’s already on the site. Is there anyway I can fix this?
Thanks in advance.
Colin
Chad says
In 2.5.1 I updated the forms to tabless CSS. It sounds like maybe you had been using the older forms and the default CSS for the new ones does not fit your existing theme. I would make two suggestions:
Colin Weir says
Fantastic – thanks!
C
Bruce says
Hi,
Great plugin! I can see the potential, but for some reason once I’ve added the more tag, I as the admin, or general public cannot see further than the more tag.
If you click on http://charterpartycases.com/case-studies you’ll see what I’m talking about.
Also I’m not sure where the registration form, and members only text should be showing.
This should be below the ‘continue reading’ link, right?
Seems that everyone is being blocked, or all user levels.
Bruce says
Sorry, please ignore. I managed to fix it.
If people have the same problem, just check in your permalink settings that its not the same as the page permalink.
It was getting confused obviously.
Chad says
The extra login area showing above the header is the result of an additional instance of the loop, most likely the theme. There is some discussion of that here.
Chad says
The sidebar widget has a link to logout. There is also a function call that can be used in your theme,
echoes the user’s login status. If they are logged in, it will provide a link to logout as well.
Mark says
The plugin works great for the most part, but users are not being directed to a password reset form when selecting “Forgot?” in the Member Login sidebar, or “Click here to reset” under Existing Users Login.
http://og86.com/user-settings/
I went through the entire WP-Members User Manual, so I’m a bit stumped as to why it isn’t working now. I am using WP 3.1.3, and WP-Members 2.5.4, along with Events Registration, Members List, NextGEN Gallery and The Events Calendar plugins.
Chad says
The shortcode for the members area isn’t parsing (I can see it in the excerpt), so it could be a couple of things. Double check the shortcode that it is correct, I would suggest making sure it is typed rather than copy/pasted from the users guide. If “Show Excerpts” is checked, try it unchecked (although the registration page seems to be parsing correctly, so I don’t think it’s that). If you are blocking pages by default, I would also say add a custom field to unblock the users settings page.
Mark says
Thanks Chad. It seems to work better with “Show Excerpts” unchecked, but there is still no form to actually reset a password is somebody needs to. I unblocked the pages as well. Wasn’t blocking by default, but had added a custom field to block the users settings page. Removed now.
Mark says
Also, besides no form showing to reset a password, I am getting reports that some users are not receiving the email message with their password once I Activate them. Any solutions?
Mark says
Ok, fixed the Reset Password form so that it shows now by removing the custom field on the users page that was: block, false. Now to just make sure Activated users are getting the email with the password to login…
Chad says
Ahhh… I can see how that would throw things off. There actually is no false value for block, so that was actually blocking the page. The custom field to unblock is “unblock”.
Regarding the email, if users are not receiving emails, there may be an issue with wp_mail. I would initially refer you to the FAQs for “Users are not being emailed their passwords, what is wrong?“
LOL man says
Nice plugin. I hope you will add a widget Top commented users, I need it. Thank you
Chad says
I might suggest using something that is already out there, such as Top Commentators Widget (from webgrrrl.net). The users for WP-Members are stored using the native WordPress users table so it should integrate (it seems to on my staging system, anyway).
Nicky says
I love this plugin – and when I have it working properly will send you a donation to thankyou for your hard work and support. My only issue currently is that the registration does not work – it shows the page but the fields are unable to be edited. The only way I can get a new user on board is to try to access a post and the form that appears then is editable.
I have tried with all posts blocked (then the page unblocked using unblock true) and also changing the default to posts unblocked…still no luck.
What silly thing am I doing wrong?
Thanks
Nicky
Chad says
Hi Nicky – thanks for the comment – If I understand you correctly, the registration process is working on all but the Register page? Do you have a link I could take a look at?
Christian says
Hi Chad
I have recently installed WP-Members on my main blog and 5 other subdomains. May I know how do I allow a registered member to access all sites with just 1 login username and password?
thanks
christian
Chad says
Christian – they would all need to use either the same WP users table OR would need something that synchronizes the WP users table across the domains.
Bob T says
Great plugin, Chad. It should work well for managing my small cabin owners group website. I am moderating each user registration, but I notice that the email to the new user, entitled “Your registration … has been approved”, gives the wrong link for “You may log in at [link].” The link given is the WordPress address, instead of the home blog address. Since my WordPress files are not installed directly under the root directory, the link results in a “404” error.
The problem seems to be in the PHP file “wp-members/wp-members-email.php”. In the section called “Case 2: Registration is moderated, user is approved”, there is a code line “$url = get_option(‘siteurl’);” Instead of “siteurl”, the option should be “home”, which will return the blog address URL. Please take a look and see if I am understanding the code correctly, and whether this simple change will solve the problem (without creating other problems!)
Thanks again for your great work and your ongoing timely support of the WP-Members plugin. We all appreciate it.
Lauren says
I LOVE this plugin and the user manual – thanks so much I have to admit to having paid for the WP-member by Smartmedia Pro and yours is FAR better! (and will definitely be donating shortly to your plugin) I have one little issue that I cannot figure – the pages that are automatically formatted so the product category and the blog pages are showing to the public and should be locked, and the pages that are restricted still show the widgets… can you make the widgets restricted also and am I missing something with these pages?
http://www.twinimages.com.au/devsite/latest-news/
thanks for your assistance Chad!
Chad says
Hi Lauren,
Thanks for your comments and the kind words. I also got your email, but I thought that the answer to this might be good for all.
The plugin really was designed with blocking just the content in mind. This was for premium newletter-type sites where navigation and such was teaser for the premium, leading the user to register prior to gaining full access. However, through time, it has been adapted to many other uses, most of which has been added as a result of user requests.
I’ve looked at the possibility of expanding various options such as you have suggested, but anytime we go a direction like that, it takes a lot of consideration. Adding options not only takes a lot of development time, but more importantly, it can make things end-user complicated, which I very much try to avoid. So as I look into things, I always consider, will the plugin users understand how to implement a new feature without difficulty.
That’s a long way of saying we’re not there yet 😉 but there are some other options if you are handy with theme development. I would suggest the use of is_user_logged_in where you have your widgets and menu items that you don’t want to display. This may be an oversimplification, but something like this might work:
... user is logged in so show widgets ...
.... user is not logged in do something else ...
Of course, you wouldn’t have to do the “something else,” you could just leave it at not showing and leave out the “else {”
Hope that helps give you some ideas. This is probably something I should write a more indepth “how-to” post on.
-Chad
Angela says
Hi
I am looking for a members plugin and this sounds interesting, but I can’t easily find the answers to two questions I have:
1] Is it a double opt in system?
2] How would one send newsletters/emails to members – is that part of the WP-members plugin, or do you need something extra?
I am looking for a simple members plugin that enables people to join, so they can see “members only” stuff; no members would be charged; I want to then email/newsletter them occasionally.
Thanking you in anticipation.
Chad says
This plugin should work fine for what you describe with the exception of email. The registration system operates similarly to what WP has internally (if “anyone can register” is checked) in that the user registers and is then emailed a random password, which validates that they have provided a valid email address. At that point, they can login and change the password to whatever they want. The primary differences between this and the native WP process is that WP-Members adds additional fields (which can also be customized) and puts all of the registration and login process inline with the content and theme providing a more seamless user experience.
So with that in mind, it covers the first part of your need – simple, allows people to join to see restricted content, they don’t have to be charged. There is no internal email process. During the early years of this plugin’s development, that seemed like over-kill as there were plenty of email newsletter plugins available. However, I’ve been getting requests for integrated functionality within the plugin itself – more of a “one-stop-shopping” kind of thing. With that in mind, I’ve been working on adding email newsletters down the road. That will likely be introduced sometime in the 2.7-2.9 cycle. Until then, since WP-Members uses the WP users table, it should integrate with a number of existing newsletter plugins. Alternatively, WP-Members has user export features so you can also integrate with an external program as well.
Chad says
Hi Bob – that’s something that I’ve been looking into, but haven’t made a decision as of yet. As I’m sure you know, any change that gets put in to assist one group of users has the potential to adversely effect another group.
On a related note, the 2.7 project cycle will include the ability to customize the email response process.
s2pidkaspr says
hey few questions i have..
i think there are still areas that needed attention to fully make the plugin great..
1. When someone registers, a confirmation was sent on email to verify or perhaps get the randomized password right? What I saw is the email was sent by “wordpress@mysite.com” not literally from my own site like admin@mysite.com.
2. When a user is logged in and tried to comment, on top of every comment you will see that his/her username is highlighted as a link. Which when you click on it, it will redirect users on WP Dashboard. Not members area. O_O
3. On the other hand, when the user is not logged in, and try to post a comment that is only logged in users can do. He/She will get a message like this “You must be logged in to post a comment.” Which again, when you click on the highlighted url, it will be redirected to WP Dashboard and not the WP Members login page. =/
Is there a way to fix all this?
Ryan says
Hi Chad
Great work with the plugin. I installed it on my web site for premium content subscription.
“Forgot Password? click here to reset” functionality is not working. What can be the possible cause and solution to this problem. I am from a non-technical background, so would appreciate with you can make me understand this in novice language.
Regards
Ryan
Lauren says
Hi Chad – thanks so much for that – I have found a very simple solution your users might like – if you use the widget logic plugin and the is_user_logged_in code in the widgets you want hidden it works a treat 🙂
now to figure out the category pages…..
Jerod says
What do I do if I don’t have the Custom Field section in the page edit page? I can get this to work fine with posts, but I want it to be on a page rather than a post and can’t figure out how to do it.
Chad says
Thanks for the comments. I’m not sure “fix” is the right word though as these aren’t things that are broken. The plugin does not assume that there is a one-size-fits-all solution and instead intends to be more flexible and customizable, focusing on doing one thing. With that in mind, the three things you are asking about are already covered by either other plugins and/or WordPress action and filter hooks.
The first thing, the registration email, is very easy. But it’s a question I get a lot, so I actually put together a “how-to” post on changing this. The plugin uses the built-in function wp_mail, which is what is sending from “wordpress@yourdomain.com”. This is easily changed with a couple of filters added to your theme’s function.php file.
The other two issues are related. These links you mentioned are handled by the WordPress commenting system and your theme’s comments.php file, not the plugin. It’s a little more complicated than the mail issue, but similarly needs to be handled either by your theme or with filters. One such possibility would be to set up a login page using the plugin’s options, then add a filter for the main WP login page to direct to that:
add_filter('login_url', 'my_login_url');
function my_login_url($login_url = '') {
$login_url = 'http://mydomain.com/my-login-page';
return $login_url;
}
Hope that helps give you some ideas.
Chad says
It is the same for Pages as it is for Posts, but you’ll need to check the screen options to make sure Custom Fields are set to display.
From the Users Guide:
Hope that helps.
Chad says
good to know – thanks!
Chad says
I’ll try to keep it simple, but you haven’t provided much information – “not working” could mean a lot of things. It sounds like the link is showing up, in which case you must have put the location of the members settings page into the plugin options. I would begin by double checking that you have the correct URL in there. If you typed it in manually, it might be a good idea to browse to the members settings page and copy/paste the url into the settings. Here are some things to check/try:
Hope that helps.
Bob T says
Hi, Chad,
Thanks for you prompt reply. I tried changing your “wp-members-email.php” plugin code from “$url = get_option(‘siteurl’)” to “$url = get_option(‘home’)” — that changes works great for my WP configuration, but I understand your concern about such a change adversely affecting others.
I will look forward to the 2.7 release you mentioned, which will customize the email response process. For my issue, it would be nice simply to specify the landing page where the new member should be directed to login. Also, it would be nice to specify who is the sender of the automated email responses, rather than the default sender “WordPress”. I know you are aware of these issues, and judging from all your blog activity, you must be swamped! Thanks for all your good work, and we look forward to more. 🙂
Bob T says
Hi, Chad,
I just noticed your post from yesterday entitled “Changing the wp_mail from address in WordPress without a plugin.” Very timely! I will insert that code in my functions.php file. Thanks.
pouya says
hello,
i am trying this plugin and everything is working for me expect that the login form on my “members-area” page is too big. is there a way to edit that? i am not good with CSS but i just can not find the file to edit. your tips on this matter would be appreciated.
Daniel says
I have a feature request to your plugin:
It would be great if you could use custom-post types to determine if a page/post is public or private. Currently you only can specify 2 flags for default visibility on pages and posts. Think of custom post types like: “Private Articles”, “Private Pages”, “Private Protocols”. Now wp-members comes in and allows to specify private access privileges to all post types. From now on all of those posts created are simply private to the public.
Chad says
Hi Bob – thanks again for the comments. Yes, I’ve been busier than a one legged man in a butt kicking contest 😉
I’m trying to wrap up the 2.6 project before the end of July and will start into the 2.7 list soon after. I’ll be posting more information about what the 2.6 release will include soon. As I mentioned, 2.7 will be focusing primarily on the email process.
That should get the plugin to the point where I would like it to be before beginning to finish work on the subscription/expiration/payment module.
So… that’s a look into my thoughts on the direction this thing is taking.
Chad says
I would say that you have two options. First is to create a custom CSS file. If you are “not good with CSS,” use the existing stylesheet as a starting point. It is found in the plugin’s /css/ folder. (Use wp-members.css, not the twenty-eleven.css file, which is not really ready for prime time.)
Your other alternative would be to switch to legacy forms. These are tablebased forms that fit a variety of applications. There are CSS div tags wrapping the forms so that you could add CSS specifications to your theme’s stylesheet to tweak the layout and make specifications to the table elements and form elements.
Note: in either case, your theme’s CSS may also have an effect on the forms as there may be certain specifications that are inherited.
I would not recommend changing the forms directly in the plugin as any changes would be overwritten when you upgrade the plugin. (Also, the functions that generate the forms are currently getting a complete overhaul in 2.6, so while the output will be the same, the function will be considerably different.)
Chris says
How can I get the “Forgot?” link under the login area to read “Forgot Password?” And also up the font size?
Facundo says
Hi there,
Great plugin, thanks!
Just wondering if there is any easy to provide a ‘self delete/unsubscribe’ link for users?
I know it’s in the original email but is there a way of providing a way to do this via say members area?
Chad says
There is not at this time. That is in the project queue, though and should be added sometime in the near future (probably in the 2.6 or 2.7 release)
s2pidkaspr says
That link you just send out does work. Thanks for that.
But the code
add_filter(‘login_url’, ‘my_login_url’);
function my_login_url($login_url = ”) {
$login_url = ‘http://mydomain.com/my-login-page’;
return $login_url;
}
for WP login is not working for me.. =/
Todd says
Hey Chad,
Awesome plugin! I am very impressed at the ease of use and the hardwork you have put into it. Forgive for using the comments as a way to ask for support, but I have a question. How exactly do I set up my subscribers so that when they log in, the do not have the admin bar show by default. I know where I can go in and uncheck the “Show Admin Bar” box, but I need it to happen automatically for every new subscriber without me having to manually go in and uncheck the “Show Admin Bar” boxes. Is there a master option that I can check that will keep new subscribers from having the WP admin bar show on the website? Forgive me if its a stupid question, but I just cant seem to find it. Thanks Chad!
Todd
quottro says
Hi Chad,
Great piece of work with the wp-members.
Just want to check, i’m running WP 3.2.1 and I have the wp-members plugin installed.
Then I tried registering 2 ‘test’ new users/members, and I received the New User Registration emails to inform me so. However, the ‘test’ users that registered had never receive any password as prompted by the system upon signing up.
It’s been at least 2 hours, I don’t think it’ll take that long anyway. Is there anywhere that I can check? or fix this?
Thanks in advance.
Chad says
Checked the link – it’s valid. But regardless, if you can’t get there, it’s currently the second most recent post on the front page of this blog titled “Changing the wp_mail from address…”
That code wasn’t exactly something you can just copy/paste (which I must assume you did, otherwise it would be working). Did you (1) set up a login page using the wp-members shortcode, (2) specify the link to that page as the value for $login_url, and (3) put this code somewhere it can fire, such as your theme’s functions.php file? If you do all of that, it will work.
Also, what you pasted in your response is not correct. The line function my_login_url($login_url = ”) needs to either contain ($login_url = ”) with empty single quotes (not ($login_url = “) with a single double quote – which is what you pasted) -OR – just make it ($login_url) if you can’t get that.
Ryan says
Hi Chad
So I have not created any “member area”. I block each page using “custom field > block = 1 “option
what should then go in “member area url”?
Chad says
Hi Todd – that’s a GREAT question. Since the admin bar is more of a recent addition to WP, I hadn’t really thought of that but I know certain users of the plugin would not want that to show if a subscriber is logged in. Based on this question, I’ll be putting together a more in depth blog post on how to manage this. But in the meantime, a quick and dirty fix would be to add the following to your theme’s functions.php file:
// show admin bar only for admins
if (!current_user_can('manage_options')) {
add_filter('show_admin_bar', '__return_false');
}
Chad says
Thanks for your comments @quattro. I will refer you to the FAQ titled “Users are not being emailed their passwords, what is wrong?” at http://wordpress.org/extend/plugins/wp-members/faq/ (I should re-post all of the contents on this site, but haven’t yet ;-))
Chad says
If you haven’t created a members area, then the forgot password link will not show (as there is nowhere to direct them). Is that what you meant by not working – that it is not showing?
It might be helpful to review the section in the Users Guide titled “Members Settings Area”
quottro says
Hey Chad,
Thanks for the tip.
Finally managed to get it working by installing the wp smtp plugin.
My ‘test’ users are getting the password now. Great.
Thanks a lot. 😉
Regards
Mats Montelin says
Hi, I have downloaded your membership scripts to my wordpress hemsida.Men I do not really understand how to do, although I’ve looked at your hemsida.Jag have a page that members can write their messages in, but other pages can not they write in but just read. How do I do that? Grateful for a quick response. / / Mats
Chad says
Hi Mats – thanks for your comments, but that’s not really what this plugin does. Sounds like you are looking for something that is more of a social networking plugin.
Matt says
Hi Chad,
This is a great plugin, almost exactly what I’m looking for!
Is there a way to block categories? and custom menus? If there is any possible way to do that across the board, please let me know. I’d love to just set a “members” category and block everything from it. And I also have a custom sidebar menu with options and documents only available to members that I’d love to block as well in my widgets.
Thanks!
Matt
Chad says
Hi Matt – thanks for the comments. At this time, there is no category blocking, although that is a feature that will likely be added some time in the future. As for custom menus, that can be done in your sidebar with a little coding using is_user_logged_in().
< ?php if ( is_user_logged_in() ) { ?>
... user is logged in so show menu ...
< ?php } else { ?>
.... user is not logged in do something else ...
< ?php } ?>
There are of course lots of takeoffs on this as well. You could do something within the menu so the whole menu shows if a user is logged in but certain menu items do not if they aren’t; or, you could have a secondary menu for members only that only shows if they are logged in, etc…
Hope that gives you some ideas.
Courtney W says
Hi Chad,
The plugin works well, except that the login & registration forms both appear in body of restricted post page using recommended settings & the form fields are compromised or broken.
I’d like for non-reg users to utilize the Register link at the bottom of the login form OR keep the login form and add a Register link of my own. I’ve tried to make this work and have been unsuccessful. Even with both the login & register forms in place, clicking the reg link at bottom of login form fails to produce a register pg. I tried unchecking the register form option in the plugin- which removed the register form (good) but it also removes the register link at bottom of login form. This is acceptable if I can still offer a workable solution for users to register.
Please provide suggestions for making it work. (fix the form fields & allow users to login or register using one form/link.
I’d contact you through ‘Contact’ but doesn’t appear to work.
Thank you!
Courtney W
Chad says
Hi Courtney,
I took a look at your site and it seems that the primary issue is the shortcode for the registration page. All the WP-Members shortcodes should be in the following format:
[wp-members page="register"]
It seems that this was incorrect in the Users Guide (which I will update). Hope that fixes things for you.
-Chad
Courtney W says
Chad! Thank You!
Still not sure the ‘password’ field (login form) and ‘first name’ (registration form) are as intended (not in line with other fields- sent you a screenshot) but everything works as I wish now.
Thanks for the prompt reply- the fix worked!
todd says
Hey Chad,
It worked Perfectly!! thanks, I really appreciate it
Todd
Courtney W says
Thanks again. Everything functioning perfectly. Love the plugin.
Eddy Tsoi says
I am new to wordpress and wp-members.
I followed instructions to install the wp-members. when I want to login with the sidebar widget, it do nothing after I enter username and password and click “login”. What should I do for this problem?
Chad says
What type of template are you on when this occurs or is it occuring on all types (page, post, home page, archive, etc)?
Steve says
When people are registering for your website, is it possible to change “State” to “Province/State” and “Zip code” to “Postal or Zip Code” in the registration form? Thanks in advance!
Chad says
Hi Steve – thanks for sharing the video link. Unfortunately, it can’t go in the comments, so I listed it in a post. Is that your video or just one you happened across? I thought it was a good overview of the install process (although with the new User Guide and the addition of shortcodes, some things have changed a little; such as incorporating the members settings area).
Regarding changing the fields, this post covers it. Although, in the upcoming 2.6 release, there will be functionality added to the settings panel to be able to customize the registration fields via the admin.
Nick Mercier says
A few errors in the code:
Line 495 of wp-members-dialog.php should be <input name="log" type="text" value="” id=”username” class=”textbox” /> not <input name="log" type="text" value="” class=”username” id=”username” />
This causes visual errors with certain themes that style input textboxes.
Same error exists in line 124 of wp-members-sidebar.php
And Line 41 in wp-members-dialogs.php should be $wpmem_login_form_arr = array(__(‘Existing Users Login’, ‘wp-members’), __(‘Username’, ‘wp-members’), ‘text’, ‘log’, __(‘Password’, ‘wp-members’), ‘password’, ‘pwd’, ‘login’, __(‘Login’, ‘wp-members’), ‘textbox’, ‘password’); NOT $wpmem_login_form_arr = array(__(‘Existing Users Login’, ‘wp-members’), __(‘Username’, ‘wp-members’), ‘text’, ‘log’, __(‘Password’, ‘wp-members’), ‘password’, ‘pwd’, ‘login’, __(‘Login’, ‘wp-members’), ‘username’, ‘password’);
(Or at least this solved my problems with my theme CSS getting overwritten.)
I know I might have been able to fix this by punching around in the CSS, but then any change that I made to the overall theme form CSS would mean coming back in here and trying to fix it again, etc.
Everything else about that app is fantastic, but the little visual glitches make me dig into code.
Chad says
Hi Nick – thanks for the comments. While I appreciate the suggestions, I can’t agree that this is an “error,” nor that it “should be” another way. We are simply talking semantic differences, which does not equate to an error. Due to the large number themes floating around and that there is no single design standard (at least in this case), there is no way to please everyone out-of-the-box. The only way for me to come remotely close to that goal is to make the plugin as flexible as possible.
With that in mind, the included CSS is really there for people who have little to no experience with HTML, CSS, or PHP and simply want something that plugs in. But for the best integration, it is fully intended that you would incorporate your own CSS into what is loaded for the plugin. That could be as simple as adding .username to the style definition you have for .textbox.
But not everyone is going to follow the same standard. For example, what if a particular installation requires some specific style applied to the username and/or password textboxes that are not applied to the others (such as maybe a user icon and a padlock icon in the background). I’ll agree that in your example that could be accomplished with the id rather than the class, but hopefully, you can see the point.
So as I said, that is the reason that the CSS can be customized which is far better than hacking the code – a solution that is not upgradeable, since you’d have to redo any hacks in the event of an upgrade, whereas customized CSS would remain if you specify a location outside the plugin folder.
To make this further extensible for the more advanced user, beginning with the upcoming 2.6 release, the CSS for the plugin will be loaded using wp_enqueue_style so that advanced users can simply deregister it and load their own without needing to deal with the plugin admin panel.
Again, I appreciate the suggestion, but my suggestion is to work with customizing the CSS rather than the code. With thousands of users of this plugin that have already gone through the process of integrating into their themes, it would be unfair to make a change that is simply a matter of stylistic difference, thus forcing them to re-do any customization work they’ve already done.
Jason says
Is their anyway to notify the admin if a member edits their information.?
Chad says
Hi Jason – thanks for the comments. There is not a way to do that without making edits to the core, which I do not recommend. Also, that could result in a significant number of emails (say a user updates, then realizes they missed something, updates again, then one more time, etc).
That being said, if you want to do this, it would be a simple process (although any hacks need to be redone in the event of a plugin upgrade). Both registration and updating are handled by the same function –
wpmem_registration()
found in wp-members-register.php. The notify admin function is fired near the end of the register case. What you need to do is add this to the end of the update case. Add:wpmem_notify_admin($user_id, $wpmem_fields);
just before the line
return "editsuccess"; exit();
Stephanie says
Hi Chad,
Is there a way to block all posts of a specific category or on a specific page?
I’ve blocked the page titled “Members” but the post on it is still visible behind the login information. Is that because I haven’t blocked the actual post? All posts on that page will be in the same category and I would like them all to be private. Should I block the page or the the posts?
Hope that makes sense. Thanks for the help!
Steph
Chad says
From your description, it sounds like you want to be blocking posts for a specific category. The plugin does not differentiate blocking based on category (although at some point in the future it might). So you need to decide if you want to block all posts by default and then unblock individual posts that are not in the blocked category, or vice versa (unblock all posts and individually block posts that are in that category).
Jason says
I gave it a shot and this is what it says….Fatal error: Call to undefined function wpmem_notify_admin() in
Chad says
Ahhh… yes. I see why.
That function is in wp-members-email.php, which is only included when needed. In this case, it is needed for the registration case, so when you are in the update process, it doesn’t need it and therefore doesn’t load it.
Right before _notify_admin, you need to include the file:
require_once('wp-members-email.php');
Also, looking over other potential items, the user ID might need to be caps:
wpmem_notify_admin($user_ID, $wpmem_fields);
Hope that helps.
Jason says
It worked ! My last hurdle is a problem with the registration/sign-in text boxes that do not line up with the labels. It looks perfect on my widescreen laptop, however on a 15″ desktop monitor it moves the 2nd label (password or first name) over to the right and lowers all of the text boxes down one spot. Therefore, it makes the registration very confusing and the existing log in looks funny.
Garrett says
I’m have a problem where even though I uncheck ‘hold for approval’ it still does. Can I get around this? Thanks
Chad says
are all the other emails working?
Garrett says
I actually figured it out, but thanks for replying so quickly. Even though I unchecked the ‘require approval’ box the registration dialog message by default still said that the password would be emailed to them upon approval, so it was a little confusing. Maybe it was because I was using an older version? I updated it, but since I changed the dialog message to something else I’m not sure it would have been fixed with the update.
However it’s not emailing the username & password on new registration. Is it supposed to? Thanks,
-Garrett
Garrett says
OK got it working. For some reason the update alone didn’t really update complete. I ended up deleting the plugin and reinstalling, everything seems to work fine now. Thanks!
Chad says
Glad to hear you got it working.
Generally, if there are issues with emails, it is best to check to find out if other emails are working as well. WP-Members uses the wp_mail function to send its emails. If wp_mail is not working, none of these will be sent.
Jeff says
I think the WP-Members plugin is messing up my photo captions when a user is not logged in. I’ve turned off then on all my plugins and WP-Members is the one. Also, googling for support, I’ve found other sites displaying the caption code like mine (for instance: http://mylifechanging.co.uk/2011/07/13/the-fancy-dress-winner/
and
http://www.spiritworksfoundation.org/2011/05/02/welcome-to-my-blog/
When a user is logged in, the photo captions show up fine but logged out or new users see the raw code for a caption.
Here is one page on my site that shows the caption problem
http://voiceofwr.com/2011/07/27/visitors-guess-who-done-it-at-historical-murder-mystery/
Any thoughts?
Chad says
Jeff – the current (and previous) version of WP-Members is not compatible with shortcodes in the excerpts. A number of core functions have been rewritten for the upcoming version 2.6, so it is likely that future versions will have shortcode support for excerpts.
Brenda says
Is there anyway of changing the background color of the “registration log-in:”and “new users registration” field names? The grey colour does not work at all well with my site’s colour scheme.
Also, earlier I posted (or thought I did) another question which has not appeared. I am wondering whether I actually didn’t post it or whether it is still be monitored.
Many thanks
Alniyat says
Hello, can anyone help me with a login problem I have? I just get redirected to the same page when I put in the uname n pwd. If you wanna see what I mean you can try u:Al and p:2233 on my page. Thanks!
ps. Currently working on it hope I figure it out soon.
Chad says
I suspect those are not valid credentials – check in your admin panel to see if it’s a valid user then double check the password. If you can’t log it in with on the WP backend either, the credentials are invalid.
Alniyat says
Thanks for the response. The specific user wasnt valid for some reason, I had made him to test apparently I mistyped but all my previous users have been unable to login for a while now (they were able to login earlier). I corrected the user and now using http://dirac.dynalias.com/bb/wp-login.php I can login with u:Al and p:2233 but I still cannot with the sidebar widget (I can’t login with my proper account from there either). I moved it up just in case I messed something while playing with my theme and I also tried uninstalling WP-members and re-installing it. I havent changed the setting of WP-members so I’ll go with the “recommended” ones in the tutorials though I don’t see why that would be an issue .. :S
Allen Jezouit says
My Members Area has the following:
Forgot password? Click here to reset
When I click the “Click here to reset” link (http://www.taconicgolf.org/members-only?a=pwdreset) it appears that I immediately get access to the secure area and no email is sent with my new password. Also, no form shows up to allow me to specify a new password. I’ve verified that WP-Mail is working because it sends me the login information when I add a new user. I’ve tried to setup the plugin so that it doesn’t allow new users to register on their own. I’m using it to control access for a membership list that is administered manually if you will. What am I doing wrong?
Chad says
What is showing is not the reset password form. It is only showing the login form (without the registration form, as you have indicated you have that process turned off). What it looks like is that something is not configured correctly and that is preventing the reset password form from displaying properly. There are two possibilities:
Chad says
that’s still not a valid user account as far as I can tell.
For the sidebar login, the only known issue is logging in on the home page, and it usually presents itself when WP is run in a directory (as opposed to the domain root). You can fix this by making a change to wpmem_do_sidebar() in wp-members-sidebar.php. There are two places you will see
Change those to:
ANA says
First of all, thanks for the great plugin!
My question is about the login link included with the new member email. For my purposes, my site administrator will be adding all members manually. There is no registration or specific login page.
The email to send new members their info works fine. Only problem is that below the username and password, there’s a link to wp-login.php that I can’t get rid of. I’d like to replace it with the main domain URL or any other non-admin page.
After playing around with wp-members-email.php I can’t find where the code is to take out or change that login link. And I am aware that editing that file is not particularly advisable but for this site’s needs I’m fine with doing that.
Can you lend some guidance how to alter/delete that pesky link?
Thanks!
Chad says
Absolutely! The forms are entirely CSS driven and you can load your own stylesheet for them. I would suggest reviewing Customize the WP-Members stylesheet for information on setting up a custom stylesheet. From there you can style the form however you like.
Chad says
It doesn’t sound like you are talking about an email that comes from the plugin, as nothing the plugin generates directs users to the wp-login. Are you talking about what gets generated when adding users through the WP admin panel? If so, there is likely a hook or filter available to override that, but I do not know what it is. Here are some other ideas…
Redirect the user after login:
Or you could override the wp-login page altogether (also good if you get this same link as part of your theme’s comments template):
Brenda says
Thanks so much. I will create my own stylesheet and see how I go!
Sorry but I have two more questions. They are:
1. I have a member’s page and a discussion forum. The text against the dialog box entitled “Restricted post (or page), displays above the login/registration form” appears if I try to access the discussion forum without logging in. However the text does NOT appear on the member’s page in the same circumstances, although the login and registration fields do appear.
Is there any way I can get that messages to appear on the member’s page as well as on the post ?
2. Is it possible to change the email address that sends an automated email from WordPress@xyz to admin@xyz so that it is clear to those receiving the email where it is from. Most users won’t know what WordPress is but I think if they see ‘admin’ it will be ok.
Thanks so much once again for all your help.
Brenda
Chad says
Brenda – The text that it is a restricted post does not appear on the members area page because that’s not really what that page is about. It is a location for members to manage their information – change registration info and change/reset passwords. However, the upcoming version 2.6 has some significant reprogramming to better utilize the shortcode API. You’ll be able to add text for both logged in and logged out users on both the Members Settings page as well as the Registration page.
Change the Email ‘From’ Address without a Plugin
Change the Email ‘From’ Address with a Plugin
Hope that helps.
Alniyat says
That was it 🙂 Thank you!
Brenda says
Thanks Chad, I will look forward to the new version!
I have what I hope is my last question for a while! I am trying to work out how a person can change their password from the random one that is sent to them. A link in the email takes them to the members page but all that does is allow them to log in. It doesn’t give them the ability to change their password.
And if they click on the reset button all that happens is that they are sent a new password, even though the message that comes up when they do that is:
“Password successfully reset.
An email containing a new password has been sent to the email address on file for your account. You may change this random password then re-login with your new password.”
What am I missing here please?
Thanks once again.
inma says
Hi Chad,
Great plugin!!! a nice work you have done here.
Would it be possible to make it compatible with a multilingual site? I’m using qTranslate plugin for the site to translate to different languages. But WP-Members doesn’t seem to work with it. I found this it might be of some help: Making Plugin work with qTranslate, only if I knew how to use it, 🙁 in functions.php? in the plugin’s php files? Any hints would be appreciated.
BTW, I’ve done some changes to the Spanish translation to a not so formal style and correct a few things. I can send it to you.
Thnks
Chad says
Once the user logs in on the members page, they can change their password.
Chad says
Feel free to email any translations – I’m always happy to post those.
At this point, the plugin can be localized and works fine in a single language, but certain elements do not work well on multilingual sites.
Brenda says
Hi Chad,
In response to your message of August 3, 2011 at 2:27 pm saying:
“Once the user logs in on the members page, they can change their password”
On my site, when a user logs in they get the following on the member’s page:
You are logged in.
* Click here to logout.
* Begin using the site.
You are logged in as Webgyze
click here to logout
“Begin using the site” just takes them to the home page. I can’t see anywhere they can click to change their password.
Thanks in anticipation.
Brenda
Chad says
That’s what shows if you are on the registration page if you are logged in… Look at the shortcode you are using to generate the page – it should be [wp-members page=”members-area”]
Valerie says
Does this plugin let me hide restricted content from all non-logged-in users, even titles, excerpts, in searches, etc?
Thanks!
inma says
Chad, you can download the Spanish translation files from here:
http://db.tt/RVIjvex
http://db.tt/iZnnupA
Please, if you could have a look at how to implement the compatibility with the multilingual plugin, otherwise it is not of any use for me.
inma says
OK, I’ve found a work around. It seems to be working now when I switch languages, but it might interfere with other plugins…
In wp-members.php changed line:
load_plugin_textdomain( 'wp-members', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' )
to:
add_action('init', 'init_textdomain');
function init_textdomain() {
load_plugin_textdomain( 'wp-members', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' )
}
If anyone find a better solution, please let me know.
Thnks
inma says
Could not edit comment above, it should read:
add_action('init', 'members_textdomain');
function members_textdomain() {
load_plugin_textdomain( 'wp-members', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
}
Chad says
It’s semi-compatible as it is. It is the form elements and dialog messages that are customizable (and therefore stored in the database) that won’t get translated on the fly (they are translated at install).
ANA says
You’re right Chad, that’s the reason why messing with the wp-members-email.php wasn’t doing any good.
For the record, when adding members directly through WP Admin, a very plain user email gets sent out with a link to wp-login.php. As a temporary fix I installed the SB Welcome Email Editor plugin. There’s probably a better way to do it but that works for me for now.
Thanks again for the plugin. Love it!
Chad says
Hi Valerie – thanks for your question. That’s not really what this plugin is designed for. But you can easily do that without a plugin if needed just by editing your theme where you have things you don’t want to show, use the is_user_logged_in function to determine what to show.
This plugin is more designed to offer a way to show titles and excerpts (i.e. teaser content) so that non-members are encouraged to register – more like a premium newsletter site.
Brenda says
Chad,
I just want to say how much I have appreciated all the help you have given me.
I am still learning and so am doing a couple of community webpages for free to get the experience (and also to help out some non-profit groups).
So I am unable at this stage to make a donation. But hopefully soon I will have a paying customer who needs this plugin at which point I will happily make a donation.
Best wishes
Gayatri says
Hi. I’m using your plugin to protect some pages. It’s awesome!
However, the clear form button isn’t working .. What could be wrong?
Chad says
The Clear Form button uses the HTML reset specification. I can verify the button does work on Windows in Chrome, FireFox, and most versions of IE, and since it is an HTML standard, I would have to say any issues that arise are going to be of a non-standard nature, such as the use of some type of auto form plugin, etc.
Gayatri says
Hey. It doesn’t seem to work in chrome. Do you think it’s conflicting with CformsII ?
Chad says
Well, since it does work in Chrome, I would say it’s a conflict with something you have on your end.
alice says
I am using on one of my sites and you saved my life. I was so confused about how to do this and your plugin did the trick. Thank you very very much!
Just one question, is it possible to unblock all the posts in a certain category? I have hundreds of posts (in each category) and if there is a way to do this, that would be awesome! Please reply to this comment or email me.
Thanks!
Chad says
Hi Alice – thanks for your comments. At this point, there is not category-based blocking, although that may be a feature in the future.
Brenda says
Why is it that on the member’s page when a person is logged in it has two different links for logging out?
Is there anyway of removing one of them?
Thanks
Chad says
The members page functions do not put any logout links into the page. The plugin only puts a logout link in the sidebar widget (where the login form would be when not logged in). There is also a login status function that puts the username and logout link into a place where you call the function, but it is currently an undocumented feature so I doubt you are using that (and since you have to actually put that function call into your theme, you would know where it is). Any other logout links are put there by WP and/or your theme, possibly the comments template – try not allowing comments on that page and see if it goes away.
ross says
I’ve just installed Members and while it appears as though its functioning properly, when I go to my register page I have what looks like a simple version of the script showing up above the header while the more formatted login box appears where it is supposed to on the page.
My web address is as follows:
http://mysandyspringstv.com/community/?page_id=121
Anyone have any idea what this issue might be?
Thank you for your help!
Chad says
Yes – whatever you are using to create the meta tags in the head of your template is using an instance of the WordPress Loop. WP-Members is not compatible with multiple Loop instances. When fired, WP-Members replaces the_content in the Loop with the login/registration information. When there are multiple loop instances, this creates a conflict.
You basically need to track down the offending script and figure out whether that could be removed, or changed, or not. In some cases that means basically deactivating all plugins except WP-Members, then testing. If the problem persists, it is in your theme. If not, bring up your other plugins one-by-one and retest each time to track down if it is an incompatible plugin.
More discussion here: http://wordpress.org/support/topic/plugin-wp-members-duplicated-registration-form#post-2213450
kevin says
Hi,
When someone subscribe and got an email, the email title is WordPress. How can i change this to the title of the website.
Thx
Kristi says
Hi there, great plugin! One quick question, is there a way to restrict a category page? I have some posts that I would like to be restricted for one category (i can block the individual posts, but not the actualy category page). I would like members to be able to login and see the category page, but not the general public. I have set it up on it’s own template: category-1.php, however I am not sure what to add to the template to restrict the category page.
thanks for yor help,
Kristi
Tom says
Hi
Thanks for the great plugin. I just have one problem. On the registration page on my site the first name field is moved into the right so there is no box for people to input their first names. Please let me know what I should do. Thanks a lot!
http://militaryhairbase.com/members-area/#
Michael says
Hi Chad,
Great little plugin….thanks! It is working perfectly.
I’m a bit of a WordPress newbie, so forgive a dumb question. I have embedded the shortcode into a page called ‘Members’. My problem is that every thing else on the page shows up AFTER the shortcode, no matter whether I place it above or after the shortcode. So I am unable to title the page. What am I doing wrong?
Thanks again for a fine piece of code!
-Michael
RJGonzalez says
Please I need some info to see if this plugin does what i need.
Have login and registration area within a side box
Be able to have client access only there account page. example: 20 clients, 20 different logins, 20 different pages, none of them have access to view each others page.
Able to send my newsletter to all
Chad says
Hi Kevin – please see links under “Common Question” above.
Chad says
Hi Kristi – while the plugin doesn’t directly support what you described, you could accomplish this directly with the template using is_user_logged_in().
In your example category-1.php you might have something like this…
Chad says
Tom – see “Customize the Stylesheet” above.
Chad says
Hi Michael – the shortcode pages weren’t originally designed to have additional content on the page. The upcoming 2.6 release will begin a vast improvement on this – a lot of the code has been rebuilt from the ground up to make better use of the shortcode API. 2.6 is currently in testing phase and will be out soon.
Chad says
There is a sidebar widget for login.
There is a shortcode for setting up a page for registered users to manage
their settings.
RJGonzalez says
so will my idea of the setup will work with wp-member?
Thea says
Hi! Great application 🙂 I wondered if I can set up a page with buttons that once clicked on will link to the page with registration and log in form respectively? At the moment these forms are on the homepage and I would like to have buttons “Register” and “Log in” on the home page that will then send visitors to either of the two forms.
Many thanks!
Chad says
The login and registration forms replace protected content. If you have them showing on the home page, there are a couple of possibilities – if you have a conventional type setup, sounds like you are not using the ‘more’ tag in the content, or you are in some way showing full content on the home page (which the plugin would then replace with the forms). Alternatively, you may be using some kind of content widget?
Thea says
I am not using any widgets on the page but I’d like to create a custom page with “Register” and “Sign in” buttons which would then take me to the forms… I know the content of the page is replaced with forms but maybe there is a way around doing this?
Sorry I am a bit of a newbie and may be missing a few crucial points here..
Thanks!
Geoff says
Hi,
1 Question, it seems that when a new user registers the only way to know is from the email. On other members plugins I have seen you get a little notification on the left menu system in the dashboard to let you know 1/2/3 ect members are awaiting approval. A little like the circle update styles you get warning you an update is ready.
I love your membership plugin and dont want to swap to another but my client is putting pressure on me for this notification.
cheers
Geoff
Andrew Lian says
Hello
I am running the latest version of Wp with BuddyPress 1.2.9 plugin. I have installed wp-members and (apparently) configured it correctly.
In particular, I am interested in the possibility of approving new member registrations. I have disabled the “Anyone can register” feature in Settings/General but no alternative registration link appears on the front page – and so, no one can register. I suspect either that I am ignorant (experienced CMS user but not WP) or (maybe) that there is an incompatibility with Buddypress.
Any help greatly appreciated.
Andrew
Chad says
There aren’t any direct incompatibilities with BP. Depending on the registration fields that you are using, you may or may not choose to disable anyone can register. If you do disable it, you can setup a dedicated registration page via the plugin (as discussed in the Users Guide). You can provide a link to this via the page structure (since it is set up as a page) and/or using the sidebar login widget (when setting the location of the registration page in the plugin settings, there will be a register link in the login widget) and/or providing some other type of link to the registration page. Also, the registration form (if not disabled in the plugin options) will show on any protected content when the user is not logged in.
gfx says
When someone subscribe and got an email, the email title is WordPress. How can i change this to the title of the website.
Chad says
Seriously? That question is answered at least three times on this page already (and in the actual content of the page above the comments)… Did you bother to read anything on this page before you asked?
Andrew Lian says
Thank you so much. I will follow up.
Andrew
Mark says
Hello! I just installed wp-members plugin and it is great! One question, on the comments page, where it says “You must be logged in to post a comment” and “Log in to Reply”, these links still go to the default WP login. Is there an option in wp-members that I can use to change these links so that they instead lead to the WP-members login on my site?
Thank you!
Chad says
The links in the comments area are handled by your theme. There are a number of ways they can be put into your theme and depending on the method used, a number of ways to alter them. All of this is outside the control of the plugin, due to the variety of ways they may be placed there. But here are some ideas:
You could redirect to a WP-Members login page. WP-Members now has a shortcode to create a login page (
[wp-members page="login"]
). You can create a filter in your functions.php file to direct logins to this page:Note: This isn’t cut-and-paste ready. This assumes that your WP installation is not in a directory in your domain, you’ll need to put in the proper page slug, and you might need to tweak the URI value it is looking for, depending on your installation.
The downside to this method is that the WP-Members shortcode is new and there is no redirect filter for it, so you can’t tell it to redirect back to the page the user wanted to comment on.
Another possibility would be to go ahead and allow the wp-login for this purpose (it uses the same parameters) but filter to redirect the user back to the page once they login. You could do that with something like the following in your functions.php:
This directs the user to the WP login, but after a successful login, redirects them back to the page they started on. (Same adjustments need to be done as the other snippet.)
matthew campbell says
I love this plug in and want it for the moment to use as a login and members area rather than the wordpress bland page, but no matter how hard I try I cannot get the members area to work or the new password request.
I was trying to copy the way you have itset up on your twenty ten trial page everything runs smoothly.
Michael says
Great…I’m looking forward to the upcoming release!
jacqueline steele says
I too cannot get the members area (reset pw) to show up, its just a blank page. I inserted the shortcode and have it unblocked, any ideas?
Simon says
Hi Chad,
Great PlugIn, thanks for all your hard work. I am having some problems with the sidebar widget login. If i try to login this way I get a page 404 error saying ‘The requested document was not found on this server’.
I can login okay from the Members Settings page, so assume it is an issue with the widget…?
Many thanks in advance
Chad says
There is an issue with the widget when logging in on the home page. It is being corrected in version 2.6 which I intend to have out this weekend (if final testing goes well).
GoPanthers says
Love the Plug-In. Thanks! It seems to work fine for me but I have a question. Every day I come back to my site I have to log in again, even though I clicked “Remember me”. The thing is that a while ago I remember that the site would go weeks and weeks without making me log in again (if I didn’t log out). Is anybody else experiencing this? Did an update to WP-Members change this behavior? Can it be adjusted to extend the ‘forced logout’ behavior? Like I said, the function of WP-Members seems to be working fine but it’s really annoying for registered users to log in over and over again.
Chris says
Chad – This plugin is great. Thank you for the hard work. I have two sites and got it setup without any problems on the first site. On the second site, the blocked pages keep showing the login/signup forms twice (once in the header and once in the correct spot). Both of my sites have the same settings, css, etc. I can’t figure out what the issue is. Any ideas?
Site that works: http://denver.savingspassport.com/2011/179/
Site that doesn’t work: http://dallas.savingspassport.com/2011/get-online-coupons-and-discounts-2/
Hedley Wright says
Any obvious reason as to why the registration form should fail to work? It just returns to the blank form again – no emails sent.
Simon says
Great, thanks Chad. When the new version comes out, is it best to start again with a new download is will there be an ‘update’ option?
cheers
Chad says
I’ve been focusing on the new version release, so this has been overlooked. But I’ll look into this and add it to the project list.
Chad says
Chris – anytime there is a duplication of forms, that indicates that you have more than one instance of the WordPress Loop on the page. Since that could be a number of possibilities, I can’t give you a specific as to where to track it down and how to work around it, but generally it would be probably in the theme or a plugin using an instance of the loop to put keywords or meta tags into the header, or to put additional content somewhere else on the page. (I tried to look at the links you provided, but the one you said doesn’t work wasn’t there – I got a 404.) Hope that helps and if you have another link to look at, send me an email directly.
Chad says
Sorry Hedley – that part of the plugin is pretty well tested over the years, so there isn’t anything I could think of unless you have an unconventional WP installation.
Chad says
Hi Simon – since the plugin is hosted through wordpress.org, you’ll get a notification via the WP admin panel when the update is out. I always try to consider upgrades when releasing updates so that (hopefully) there is little to no impact on the upgrade process (i.e. when a new setting is added, the install should add this without touching existing option settings, etc.). BUT – while I do test these things out with various setups, it is a best practice to run a staging version of your site (for any updates, not just mine) and test any updates there before updating a production site (or at the very least, have a good backup to roll back to if anything goes wrong).
Reuben Matene says
The best plugin ever!!!!!!!!!!!!!!!! Bro you rock!!
I’ve updated to the latest version and the widget login works perfectly!!!!!!!! I’m so wrapped right now!
Thanks for fixing this..
Thanks for the plugin..
Thanks for all your awesome work.. and,
Expect our very kind donation soon… (we’re still setting up the paypal stuff)
(our website is still currently in development – and we have made you an honorary account in commemoration of your awesome work… We have every intention of highlighting and promoting your work through our website, and hopefully entice other Polynesian developers to seriously consider your plugin as the only “Membership” solution for their website.)
Lastly – I was wondering if you had a fix for the “WP Search 2” plugin that finds and displays all searched content, including protected portions of a website?? I have already emailed the “WP Search 2” developers regarding the “perfect..ness” of their plugin, with no response yet. I really need that search functionality for our website, as the content is fairly massive considering we’re only a not-for-profit organisation. Increasing the accessibility level (searching for specific content) for our users is a high priority. I’ve tried and tested 9 other “search” plugins, and they pale in comparison to “WP Search 2″…..
Anywayz – your login credentials will be sent to you following this post…
Reuben Matene
Te Roopu Atawhai Inc
Victoria,
Australia,
Earth..
Jono says
Hi Chad,
Firstly awesome plugin. Loving it and have applied it across a number of client websites.
Quick support question however, I am having issues with my register and members-area pages looking like this: http://www.fitstuff.com.au/index.php/register/
Where there are 3 forms above the actual head of the site and then the forms again in the site further down.
Have you come across this before and any suggestions?
Cheers in advance.
Chad says
Hi Reuben – thanks for the kind words. Looking forward to taking a look at your site…
Regarding the WP Search 2 plugin, I have to say I’m not familiar with the plugin, so unfortunately I don’t really know how it handles its search results and (more importantly) how it displays them. Without knowing that, I can’t really suggest anything. I usually do not develop considering specific plugins, but when I do become aware of issues my approach is to look at how well it is integrated into the WP core and if there is a code improvement on my end that will improve compatibility in general. If I find out more, I’ll certainly look at it, but at this point I don’t really have an answer on that one…
Chad says
What is happening there is that there is something (or actually 3 somethings) that are using an instance of the Loop in the head. That could be the theme, or it could be a plugin. WP-Members is not compatible with multiple instances of the Loop at this time.
M Forbes says
Hi,
I have 2 questions. One, exactly what do I put into the custom field to allow a page to be unblocked (exact format, please). Sorry, I do not see this… unblock with value true. I am somewhat naive to the whole wp thing.
And really important, I blocked all pages, went to try to figure out what to put into the custom field to unblock, not knowing, I unchecked the block all pages, and now the restricted message and registration fields are on my home page, though other pages are fine. It is not a history thing, as i tried it in 3 different browsers, two of where there was no history of this URL.
Any help is greatly appreciated. I would really love to have this work, it appears to be a great plugin for as far as I’ve gotten :).
benjezza says
i have updated the WP-Members plugin and now the homepage text isnt populating like it was before? i am using the infocus theme by mysitemyway, and the homepage text is added through their custom settings??? any help would be greatly appreciated…
dummy site is at http://www.whitemaggot.com... hehe…
Chad says
The custom fields are covered in both the Quick Start Guide on the third page and there is a screen shot. Also, this is covered specifically in the Users Guide and the FAQs.
Jono says
Hey Chad, thanks for that piece of info. Which file should I look into that has this loop function you are referring to? And also, do you think that you will be adjusting the plugin to cope for Loops?
Chad says
That’s a pretty complex question. Begin with understanding The Loop. In your case, it is occuring in the HTML head, so I would start with looking at the generated source and seeing what happens right before it and right after it. Then you have to figure out what is happening there. Is it in header.php of your theme or is it a plugin?
As far as adjusting the plugin to cope for Loops – we need to clarify. The Loop is a critical structure to WordPress. That is how WP displays content. WP-Members works with The Loop to empty $content when the user is not logged in and replaces it with the login and registration forms. This does not work well when there are multiple instances of The Loop on a page. Secondary instances of The Loop are not something you’ll find in what I would define as a standard WP installation. However, they are becoming more common in complex themes and certain plugins. In these cases, there is no way for the plugin to automatically know the difference between what is the main content Loop instance and what is being used for other purposes. The key word here is “automatically.” I am working on an override variable to put within a Loop instance that an administrator wants to skip, but based on the fact that the vast majority of users of this plugin are non-technical, implementing that is going to require a great deal of support. Also, this is in the VERY early testing stage, so depending on results, it may never make it into production. That’s a long, involved way of saying, it’s a non-standard issue and I am working on a solution, but I have no idea when, if at all, it will make it into production 😉
Chad says
Unfortunately, I don’t have a good, specific answer for you. Once we get outside the realm of standard installations and into using WP as a CMS (and more specifically, commercial themes with their own control panels) it becomes vastly more difficult for me to support. Also, I am making the assumption in this answer that based on how you phrased your question, you had this installed and working the way you wanted with an earlier version of WP-Members, and that you upgraded the plugin from a previous version.
I can tell you that WP-Members 2.6 makes significant changes to some primary functions in order to provide better functionality with its own shortcodes and also when parsing shortcodes within excerpts. I took a look at mysitemyway’s info/screenshot on their homepage part of the control panel, and I would say that it may have something to do with that, but I don’t know for sure. It might depend on how this home page is handled. Do they store it as some type of option, or is it actually saved as a page/post with custom fields? If it is stored as a page or post, then how it is handled by the plugin depends on your plugin settings. You might have to experiment and dig a little under the hood to figure this out.
Adrian says
Hi,
I installed the Plugin and the installation process worked great. One quick bug, when I clicked the “Settings” link in the Installed Plugins screen, it gave me an error message. However, when I went to Settings > Wp Members I got to the appropriate screen just fine. Also, is there a way to setup your Plugin in such a way as to allow a newly registered User to have to pay (via PayPal or Google Checkout) for access to the blocked areas of the blog? Perhaps by having an auto generated password send out upon payment? Please let me know if you have done this with your plugin before, I’d love to give it a try. Thanks!
Jesse says
Is there any way to remove the login from a restricted content page/post?
Chad says
no – you can remove the registration form but not the login
Jesse says
I have removed the registration. So there is no way around it to remove the login dialog?
Kevin Michaud says
Hi,
I it possible to import users from another database ?
Chad says
Hi Kevin – that’s a timely question – I am working on an import module that should be ready for release soon. It would require import via CSV.
Roger LB says
Hi!
This plugin looks awesome but I didn’t see any way of showing/hiding a part of a post.
Don’t know if that option is or will be available?
THANKS!
Roger
Sean says
Hi Chad,
I’ve just discovered that although I’ve set wp-members block pages AND posts by default, non members/logged out users can still read posts. I’ve tried adding “block” in the custom field on the edit post page, but no joy. Any ideas?
Other than this glitch (probably my fault) I’m REALLY pleased with this plugin!
Many thanks
Sean
Chad says
Hi Roger – you can choose to display excerpts. However, if what you are talking about is displaying something within the post (say in the middle or the bottom), then no, there is not a feature for that. However, I have been developing additional shortcodes for the plugin and that feature may be worked into future versions.
Chad says
Sean – I would need to take a look at some specific examples. Why don’t you contact me via email (use the contact form) and give me some links to specific content that should be blocked that is not.
eljo says
A great plugin. But the fields are too wide for my page. How do I make them narrower. Same goes for the widget, it goes off the borders.
Thanks
Chad says
See links above for “Users Guide” and “Customize the Stylesheet”
Colin Weir says
Hi there
Use your plugin – fantastic. Updated today to version 3 and noticed a slight issue following it. All my post were only showing summaries rather than the full thing on the home page. Tried changing my index.php code but it didn’t work so I’ve rolled back to the previous version.
Just though I should make you aware.
Thanks again for a brilliant plugin!
Micki says
Hi,
I want to thank you for this plugin, so far I am very pleased. I do have a few questions and hopes and I have read your instructions but maybe missed something.
Below is the email content that I receive once my registration is approved. I would LOVE to get rid of the line that says: You may login at: http://www.*********/thecms. This directs me to the to a page not found and is to the folder where the wp installation resides, not the URL of the site (and I would prefer no reference to either).
Your registration for ************* has been approved.
Your registration information is below.
You may wish to retain a copy for your records.
username: *****
password: 3ad5377
You may login at: http://www.*********/thecms
You may change your password here: http://www.************/parent-area
You originally registered at:
http://www.**************/parent-area
And here is the message I get when I register…
Thank you for registering for The Little School. Your registration has been received and is pending approval.
You will receive login instructions upon approval of your account
BUT this is what I put for Registration completed within the dialogs and errors section of set up:
Thank you! Your registration was successful.You will receive an email from us shortly to notify you of approval.
I have searched and cannot figure out if this is generic wp verbiage? Tho, I am happy to see that the url’s to the parent-area are within the approved registration email.
And since I have you… there really is no need for both a registration page and a members area, correct? it appears that the members area takes care of both.
Thank you very much, I do appreciate what it must take to put up with continual questions, with sometimes over obvious answers :).
Chris says
Hi Bob, Do you have an idea how to change that automated sender “WordPress” into “Admin”? ex. admin@yoursite.com
Micki says
sorry to bother you again, in reference to my recent question regarding the login url in the registration email, can I just delete this:
$body.= sprintf(__(‘You may login at: %s’, ‘wp-members’), $url).”\r\n\r\n”;
$body.= “$wpmem_msurl”;
from the wp-members-email.php ? sorry, I know so little about .php.
I couldn’t’ find what Tom, a few months back did, and am assuming that the code was updated for version 2.6? thanks again, I am trying to figure it out and not bug you too much…
Chad says
Hi Colin – thanks for the report. I believe you mean version 2.6?
Chad says
Hi Chris – thanks for your question. I have a question for you. Did you read anything on this page before posting your question?
Chad says
Yes, you can take those lines out. However, anytime you make an edit directly to the code, you will need to redo any changes in the event of an upgrade (your changes will be overwritten by the upgrade). I can tell you that the current project in development is 2.7 and is intended to include panels to customize the emails that are sent out. However, that’s not guaranteed, and also, we will likely have bug fix and code improvement releases in the 2.6 project before that’s completed.
Regarding the registration page question, you are correct, you do not have to have a registration page. It is strictly an option to allow for the plugin to be more versatile in various utilizations. (Actually, the members area would be optional, too; although that’s where registration information can be updated, and passwords reset/changed.)
Micki says
Thank you so much for getting back to me. Wow, such support appears to be rare :). A donation is forth coming (as soon as I get paid for this education…oops, job :)).
I am imagining that I could use hooks for what I want to do (and already did), similar to the way you clarified how to lose the ‘wordpress” in the email address? would I put these in the theme functions file as well?
Guess it’s time to hunker down and learn some php. thanks again!
Ish says
Hi Chad,
I love your plugin… its awesome and easy to use even for a non-techie like me. Its giving me all the features I need for my site.
My challenge is that I do need to specify an automatic expiry date for memberships (say 1 month from date of registration)… Is there a way to do this with Wp-members? Can I use another plugin along with WP-members to achieve this?
I would hate to replace it with another membership plugin just to be able to achieve that. Appreciate your help.
Thanks
Ish
Colin Weir says
Yes – sorry! Got carried away!
C
Sebastian B. says
Hi at all,
I need help.
I use WP-Members on my Site so that the users can edit their profiles in the frontend.
But some fields are allowed to see but not to edit for the Users. Only the admin can edit this fields.
How can I do this?
sebastian
Chad says
could you be a little more specific as to what fields you are referring to?
Chad says
There is an expiration module in development, but it’s not completed yet. I don’t have a date of release at this time.
Chad says
I don’t think you could use hooks to edit the email on the fly – you probably would need to edit it directly.
John says
Chad, Let me begin by saying I really like your plugin. We are using WP-Members on our organizations website to create user profiles (helpful for event registration etc) as well as to filter updates to members by category.
I’m interested in hooking our outbound posts to Feedburner thereby giving our members the option for an RSS feed or email via Feedburner. I’m new to this but as I understand it, using Feedburner, subscribers would get all feeds as a default. I know that if I want Feedburner to filter by category, I can setup feeds for single categories. However if a member has several categories I’d save them the trouble of subscribing to multiple feeds – the subscription interface alone would be messy.
Perhaps I don’t know how this all works but I’d be interested to know if your plugin (which has user/category preferences build it) has anything to add to the use of Feedburner.
Ideally,, WP-Members will pre-filter content to Feedburner and a standard Feedburner link would suffice as a registered member would naturally have only the content from their profile choices pass to Feedburner.
Can you help me get my brain around this?
John
Chad says
John – thanks for your comments – glad you like the plugin! As far as feeds go, WP-Members does not pre-filter the content. You simply need to set your feeds to summary and that will truncate the content by using the excerpt (essentially, the content that is before the ‘more’ tag). If you need more control over feed excerpts, there are some filters you could add to your theme’s functions.php file (perhaps I should do a post on how to do this). Hope that helps.
Norm says
I seem to be having an issue with the registration form not appearing at all. I’ve read your documentation and this comment thread and haven’t been able to determine the cause. I’ve tested on a few sites and same result.
One instance is here – http://normanhuelsman.com/register/
Chad says
I would start by double checking that you are using the correct shortcode. [wp-members page=”register”]
John says
Chad,
Thanks for your quick reply. The plot thickens in that I did a post today and the number of emails that queued up was the exact number of only my public subscribers. I did a separate email to my Registered users and some of them got the posting so I’m not sure who really got the post. Of approx 120 addresses, only 64 sent. I’m sure this has to do with my trying to use Subscribe2 and WP-Members.
I’m not worried about sending excerpt but threading email/rss to subscribers based on category preferences.
I’ve been in discussion with MailChimp who confirms that they can send to pre-set groups based on groupins on their side. This means I push out info to them for 100% of the members and only those that meet certain criteria will get it. Problem is, the user cant modify a setting on their member profile and have the MailChimp side update (not that I know of).
Feedburner can handle the groups as seperate feeds. But in that scenario, a member may have to subscribe to between 3-5 feeds and managing them becomes drama.
Every time I get my brain on a solution there is a gotcha.
In the end my needs seem simple. Have different mailing groups based on categories that correspond to categories in blog postings. Push them out to users by either RSS or Email depending on the users preferences. Have all posts go to those different audiences seamlessly and give registered users the ability to choose their categories.
Some bloggers seem to use Feedburner, others recommend MailChimp. My big issue is I’m not shoving 100% of content to 100% of my subscribers.
I am happy to back up and say that knowing WP-Members is a baseline plugin for my registration needs, what do you recommend for multi-threaded emails. (Hopefully I haven’t totally confused you and the issue.)
John
Chad says
John – unfortunately, that’s getting well outside the realm of the plugin. I can say that I specifically worked the user registration process into the WP construct so that user could be integrated with other plugins and programs. I will probably be exploring specific email properties within the plugin (or an add-on module) in the future, as I’ve had a number of user requests for that, but I don’t have any specific recommendations. I do know that some users of the plugin do use the Subscribe2 plugin in conjunction with WP-Members, but I don’t really have any insight into how they are integrating. Wish I had a more specific answer for you.
karthimx says
This is great and easy to use plugin. Thanks for awesome plugin with short code.
mani says
Hi,
I am using your wp-members plugin on my blog and it is really useful. The idea that only members can comment has helped me keep the spammers away. However, in the past couple of days, some people have managed to post spam comments without logging in. I have checked the usernames, they don’t exist. I am wondering how this could happen? Could you please tell me.
Thank you
Olivier says
Hello Chad,
Thanks for the good work !
Will your plugin support dropdown list on registration page ? I mean the one ?
Olivier
Chad says
When users must be logged in to comment, the plugin hands off security in this area to WordPress. There are a few possibilities. First is that they could be exploiting direct access to wp-comments-post.php. Another is the possibility that what you are looking at are not comments but trackbacks. Requiring login for comments will not stop trackbacks. These are turned off elsewhere.
Here are some good articles on the subject:
Combating Comment Spam
How To Stop Comment Spam Bots in WordPress
Chad says
The plugin does not natively support dropdowns and radio button groups at this time. These can be hardcoded in (and a full registration page could also be hardcoded) but that would not be a small project.
olivier says
Sorry my HTML were strip.
I have a 8 items dropdowns list that need to be on the registration page. I’ve thinking of rewriting the HTML with JQuery to add the – then send the value as a classic text input.
Ugly way of doing a registration page tweak but might be faster and easier to maintain.
Olivier
Jennifer Davis says
Hi Chad.
I am setting up a site for committee members to use as a discussion point and to share documents and a calendar of events/meetings. My about page (Home0 is the front page of the blog and I have unblocked using the custom filed entry unblock with a value of true.
The balance of the pages block without a problem however the posts are still visible. Settings activated are Block posts by default and Block pages by default. I have deleted and reinstalled the plug in but still no joy. I am using WordPress V 3.2.1 with the Twenty Eleven 1.2 theme.
Hope I just have a simple setting wrong but I have followed the instructions and read the user Guide.
If I change the posts page (Discussion) back to a standard page it blocks but when I set the page as the posts page it becomes visible again.
Hope you can guide me on this one. Cheers, Jen.
Chad says
Thanks for your question.
Make sure we are talking about actual posts and not archives (lists of posts). Archives will show titles and excerpts (which is why you need to use the ‘more’ tag – that creates the excerpt). You can put the tag at the beginning if you don’t want an excerpt, then just the title would show.
Jennifer Davis says
Hi Chad,
No new Posts. The site is live but not active as yet until I get this sorted out. But all new posts are immediately visible to everyone signed in or not.
Cheers, Jen.
Diego says
Hi Chad,
There are a easy way to show the login form directly in header.php?
I want to show the same widget content (login form, links if the visitor is logged etc.), but in the header…
thanks
Stef says
I really enjoy using this plugin and it has certainly allowed me to shortcut things for clients. My question is, is there a way to allow users as editors to see and export the membership list? I setup my clients with editor accounts to avoid them disrupting important settings, yet I would still like them to be able to export the user information collected.
Chad says
You would need to hardcode that into your header.
Chad says
The plugin itself is not really set up to allow that process directly to less than an admin, but you might be able to alter that with some type of role editor plugin. (Off the top of my head, I believe that the process actually doesn’t look for admin role assignment, but actually that the user role can manage users.)
john culpepper says
Chad,
I can’t seem to find this in the documentation… is there any capability with the plugin to have members register and pay a fee? We have annual dues so it would naturally nicely piggyback on their member record to be able to pay the fee and pay thru paypal. All fees are the same.
jc
john culpepper says
Alternatly, I could buy a developers version of Gravity Forms and create a dues page but I’d need to pull data from the wp-members table. Bit over my pay-grade if you know what I mean.
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 or merging with another process as you suggested. Pulling out the data to import into another process is possible – there is a user export feature already built into the plugin (under the Users > WP-Members menu).
Hope that helps give you some ideas.
Joey says
Having the following issues when I try to login (now I can’t get into my admin panel to fix)
Chad says
Based on the error messages posted (which, for the sake of space, I edited out), it looks like you are in the wrong place. Those all indicate some other plugin, not WP-Members.
Joey says
Thanks Chad!
flips says
Hi,
I wonder what happen to the restricted posts / pages in search engines. Do they appear ? How ?
I wish that this content does not appear at all in search engines results.
Thanks
Chad says
Anything that is accessible to a spider or a bot would appear in search engine results. However, the actual protected content would not appear, as the content is not accessible to the search engine. If you want to take it further and not allow these pages to be cataloged, then you need to make changes to your robots.txt file accordingly, using a “disallow” parameter. (See http://www.robotstxt.org/robotstxt.html for information on how to do this.)
John Culpepper says
Chad,
I need to know how to troubleshoot this set of issues and don’t know where to begin. I started getting emails about new registrants but no info in the email for the address, phone etc. The address etc. data is in the user and usermeta tables but not the phone. All fields are required at registration.
So I created a new user, got the registration email, (both to the new user address and the admin’s email inbox). I accepted the user and got the password email. Tried to login using that password and it said I did not have privledges to access the page BUT it did log me in. (had the wordpress toolbar at the top of the browser.)
Now I don’t know what subscribers are actually doing, if they can log in, why data is being saved but not emailed and why the phone number isn’t saving.
Can you give me a pointer on where to begin? I deactivated the plugin and reactivated it again but it didn’t seem to make a difference.
john
John Culpepper says
OK, I think I fixed it… not sure why but I had unchecked anyone can register to this site. That meant that a new registrant had no role assigned to them. It may all be working now. Disregard my last post until I know if there are any issues.
Sorry for the post.
john culpepper says
Oh yea, I remember why I had anyone can register checked… the plugin tells me to. I uncheck it and all my registration data issues went away BUT the plugin tells me to check it. What should I do?
jc
Olivier says
Hi Chad,
The checkbox on registration page seems not to work – well I can’t have the value of the checkbox display next to it. To be clear I just have the so nothing appear on the screen.
If you can help me with this 🙂
Olivier
Chad says
The plugin should actually recommend that you uncheck it. I’m wondering where you might have seen that you should check it because that would be a typo. I double checked and the readme.txt, the Users Guide, and the warning message in the plugin are all correct. The warning message will only show if it is checked, and it will indicate that the recommended setting is unchecked.
Oddly, this should not effect the default role assigned to a user. The default role is assigned in the WP options table and whether you check or uncheck “Anyone can register” does not change it. So if the default role is set to subscriber, the user will be assigned the role of subscriber regardless of whether this setting is checked or unchecked.
Anytime I get a question like this, I double check to make sure the various settings are working, and in my checking, I did receive and store phone data when the field was required. Obviously, if changing the anyone can register setting made your problems go away, that’s a good thing, but they shouldn’t be related – I tested it both ways, and as mentioned above, that does not change the default role assigned to a user. It simply prevents anyone from registering via the wp-login.php page.
Incidentally, if you continue to have any issues and/or do any testing, deactivating/reactivating the plugin may help (as you indicated you did), but it will not change any of the plugin’s settings. If you need/want to force the default settings to reload, you either need to delete/reinstall, or go to the install file and change the value of $chk_force to true (which is at the top of the file). That will force a reload of the plugin’s defaults.
Chad says
To be clear, the term “value” of the checkbox as it is used on the plugin’s field settings page refers specifically to what value is stored when the user checks the box. This is an HTML field parameter that does not show to a user. The “field label” of the checkbox is what will display to the user on the front end. Is that what you are talking about?
flips says
When you search for “Powered by WP-Members” in a search engine, results appear.
Does it mean that the restricted pages / posts DO appear in search results but only the forms are picked up by the search engine bots ?
I’ve acknowledged the robots.txt solution. Thanks.
Chad says
Yes, unless you specifically restrict a page or a post (or directory, etc) in robots.txt, anything you have on your blog is spiderable. However, the bot only sees what a logged out user would see. So they would see the login form and anything else that is on the page (sidebar, header, etc.). This is part of the reason for including a “show excerpts” option in the plugin settings. There are some users who want certain keywords, etc picked up by the bots to drive traffic to these pages and encourage users to register for full access (teaser content).
olivier says
The value of the checkbox is good – and is not display to the user – you’r right.
In fact my problem is: I need to display the field label so the user can see the value of the checkbox.
Thanks again
Bambography says
Hi there,
I’ve just started using the plugin and it’s exactly what i’ve been looking for. I’ve got the general setup cracked but have a quick question relating to the custom fields that i’d like to use.
Is there a Tag or something that would serve up the custom fields for use either simply echo’d on screen or for inclusion in a custom page template or php script? Forgive me if this is WP basics, i’ve not long started but can’t initially see where i’d get this from.
Thanks in advance for any help.
anjhelz says
hi, as others did I installed your cool plugin and I tried it out. Is it possible to change the “from” shown in email? because the from email was not really existing, it was wordpress@nameofwebsite.com. I want to change it to an existing email that I have. Thank you
Chad says
See above under “Common Questions”
Matt says
I have new registrations coming in to ultimately login to a forum on site.. but in the registration process the readers are saying that it says the “password” would be emailed to them. so everyone is still waiting for the password..what is going on and how do i get the passwords to be sent to them. they say its not in their inbox or spam box..
Chad says
This is generally an issue with wp_mail and not the plugin. Take a look at the FAQs under “Users are not being emailed their passwords, what is wrong?” for some testing and suggestions.
Bambography says
Hi,
I sorted my previous query – sorry if it was beyond this plugin.
Am I right in thinking that Custom Fields cannot be set for Administrators? When editing the Users I see the custom fields at the end of the profile however as soon as I set the user as Admin (instead of default Subscriber) this section vanishes and the previously saved data in the Custom Fields gets deleted from the database.
Is this correct behaviour (I can’t see it documented) or a bug?
Thanks.
Michael Walker says
Hi Chad,
Just noticed a couple of things: I upgraded to 2.6.2. and now if (in the WP admin) I click on Users > Add New I get all the WP native fields showing up, but none of my custom fields – I’m not sure if this is supposed to happen or if something’s amiss. I’m tending towards the latter,because if I click on (under ‘Users’) ‘WP Members’ I now just get a blank page, whereas I used to get a whole list of the membership. Is it something I’ve done?
Chad says
Thanks for your question Michael – The Users > Add New has always only had the WP native fields. I have not been able to hook into that page at this point (although I have been trying – I even developed a plugin to assist tracking down the appropriate screen object). So nothing is amiss there…
As to why you are not seeing the full user list on the Users > WP-Members page, there’s nothing wrong there on the plugin end of things. Are you getting a completely blank page, or just an empty table?
Michael Walker says
Thanks for the prompt response. I think I’ve sorted the latter problem now – albeit by luck rather than judgement. When I first installed the upgrade t0 2.6.2. , I did so from within WordPress itself (i.e. from the Plugins page). However, I’ve since deactivated and re-installed by means of ftp and all now seems to be well. So – I’m putting this down to operator-error or ‘unknown temporary glitch’! Thanks again for your help.
Mike says
Love the plugin. I just have a quick question. At first, registered users could log in and come back the next day or even next week and they wouldn’t need to log back in again. Now my registered users need to log back in repeatedly, even if they just close their browser and come back an hour later. “Remember Me” doesn’t work and I’ve even tried two different plugins that are supposed to extend the timeout period up to a full year but those haven’t helped either. At this point I’m simply trying to identify what the cause of the problem is. I’m trying to isolate the problem but I can’t disable WP-Members because it would open up all my restricted pages to the public. Can you please tell me if there is any way at all that WP-Members could possibly be causing this issue with constantly logging out? Does WP-Members have any functions which interact with the log out timer (or however that works)? Thanks.
Chad says
Hi Mike – I think that something might have gotten changed that affected the cookie when we switched from wp_login (which is deprecated) to wp_signon. This occured in 2.5.2, so it was fairly recent. I’ll check into it and get a fix on the project list
Bambography says
Clearly i’m asking dumb questions.
Shame as I thought this was the plugin for me. Time to look again.
Chad says
It’s possible… I can’t seem to find your previous question(s) which would tend to indicate the comment/question was deleted. If I did not respond or provided a terse answer, it is likely that your question was already specifically answered directly on this page. There are times when I will answer a question of that nature, but most of the time, if something is overtly addressed in the content of this page, the question will probably not get answered.
Bambography says
September 20, 2011 at 11:05 am &
September 22, 2011 at 7:45 am (the thread this is in reply to).
Both show on here.
I couldn’t find the answers after spending quite some time looking down this page. Given there are now 300 posts here, it would be easy to miss something.
Chad says
Well, if it’s something that is covered in the comments, I overlook that because of the number – I was more referring to the content proper of the the page – and usually it’s just the email question that sends me over the edge (how to change the email ‘from’ address) because it is covered right under the heading “common questions”.
I went back and found your questions – sorry I overlooked those. I think what happened was that I marked them approved, but didn’t answer right away, then they got buried. So, my fault… sorry about that and thanks for coming back. Definitely a legitimate question – I think I set it aside because I was trying to think about how to answer it.
So I’ll reply under that thread…
Chad says
Actually, you should be able to set values for custom fields for administrators other than yourself (i.e. if you are logged in and looking at your user profile, you won’t be able to add data for custom fields for you, but you can for any other user – admin or lower). This data can also be entered on the front end for any user.
Even if you change the user from subscriber to admin, you should still see the extra fields. I should note that if you create the user on the back end, you will not see the extra fields in the add new user panel – I have not found a way to hook into this page. But once you create a user, then you can add additional information on the user detail screen.
There is nothing in the plugin that would remove data from custom fields once it is set. So, while I have tested this and I do not see the custom fields go away when I change a user from subscriber to admin, let’s just say this is in fact occurring, there is nothing that deletes any previously set values that went into the usermeta table.
So I guess we need to see what is really occurring on your end. Are the users in question that you set as admin users that you created on the backend or the frontend, and are we talking about the ‘add new user’ page on the admin side or the user detail page?
David says
Thanks for this plugin, this is by far my fav plugin for this sort of stuff. Also love the advancement of this plugin, much more dynamic now.
Do you know if there would be a way for when a user registers, to give them a unique user ID for say eg ‘usr0000001’ etc? Which is stored in the database?
Thanks again.
Bambography says
The Admin I was looking at was indeed the default Admin account created when the site was first setup. I’ve created a second accout through the plugin and that now shows the fields when logged into a different account. Having removed the initial account and recreated it through the plugin it is all happy.
Thanks for that.
Michael Walker says
David – WordPress allocates users an individual ID number already. WP Members doesn’t show you it, but there are some plug-ins that will. Try AMR Users.
Chad says
There is a user ID created in the registration process, but it is not visible/usable by the user. The user ID is stored on the users table and is the key that is used linking that user in other tables. You could not necessarily ‘create’ a second ID without modifying the registration process. However, you could use the existing ID, and if it wasn’t suitable in it’s raw form, run it through some type of a filter so that, like your example it is always ‘usr’ + 7 digits.
One example might be to write something like this and put it in your functions.php file, then call it whereever you need this “pseudo ID.”
Then you could just
whereever you need it.
Chad says
Hey, hey! That’s great news! (I’m always a little worried when things work on my end and there’s someone out there where it’s not working – trying to figure that out sometimes can be frustrating, so in this case I am glad that worked!)
David says
Wow, thank you both very much for your replies. I’ll give both options a go!
Chad says
Great suggestion!
Michael Walker says
Hi Chad,
Using 2.6.2 with WordPress 3.2.1. My php memory limit (and WordPress limit) is set to 64M – the highest my ISP will permit. When I visit (in the Admin UI) Users > WP Members, I am getting the following message:
“Fatal error: Out of memory (allocated 31195136) (tried to allocate 256 bytes) in /web1/user270/website/Newsite/wp-includes/wp-db.php on line 1383”
The display then shows me about half of my 389 members. I also use AMR Users, and am getting a similar message from that plug-in if and when I try to ‘re-build the cache’. Basically, it times-out. The reason for posting here is that I have seen it suggested that this error could be caused by there being too many fields/records in the wp_usermeta table, which both plug-ins access. Although I only have 389 users, they do have a fair few custom fields and my wp_usermeta table has a total of 18797 records in it. Do you think this could be the cause and, if so, is there anything I can do to stop it?
Chad says
Hi Michael,
The extra custom fields are probably doing it, since the bulk user table for the plugin does not paginate. Looks like it is time to add that to the project list 😉 I’ll be working on this with whatever the next release is. It’s something I’ve thought about, but other things got prioritized in front of it.
In the meantime, it would probably be best for you to access the users via the WordPress users list where it does paginate. The things you lose are the ability to activate in bulk and also the export, but you’ll be able to access all of the users and activate at the individual level.
Michael Walker says
Thanks for the prompt response, Chad. If you’re going to be looking at the wp Members display, do you think it would/might be possible to incorporate an option for the admin to choose which fields are displayed? (I guess you wil be thinking: Doesn’t this guy know I have to find time to earn a living somehow…) 🙂
John C says
Chad,
Still having trouble with plugin retaining information. I have many fields as required (address, tos etc.). I get emails saying someone has registered and that i need to activate them. The email shows their user name but other info is blank. I go to their profile and user role is blank. User name is filled out as is email… other fields are typically blank. I assign them a role, save the record and refresh the screen or navigate away and come back and some of the data is there. There is no pattern to what is retained – sometimes the address is there, sometimes not. TOS checkbox is off and on. IP address is most always there. I’m having to fill out missing info in some cases. Since all members are members of our group, I have the info but not sure why it’s not saving. I’ve tried deactivating the plugin. Perfectly understandable that another plugin is getting in the way but I don’t know which one and can’t find it. I can supply samples of the emails and a login if necessary but don’t know where to go from here. Any suggestions?
john
Chad says
That’s not a bad idea Michael. I will look into that (although it probably won’t make it into the first iteration…)
olivier says
Hello Chad,
I thought it would be nice to have an “edit field” feature on the field settings page, plus a different class for each type of button, I mean one class for the “clear form” button and another one for the “submit” one – then it would be easier to style them.
Thanks again 🙂
Chad says
Hi Oliver – those are good suggestions, I’ll definitely consider. To be honest, the edit field already crossed my mind but was given a lower priority over some other items since an existing field could be essentially recreated rather than edited and building in an editing process would add additional complexity the admin panel code. But it will probably be implemented at some point.
Patricio Silva says
Hi Chad, first thx a lot for the plugin! Nice work.
I was wondering if there is any possibility to add a link to the TOD – field. So it could go to a wordpress page as an option?
Best regards
Patricio
Chad says
Actually, there isn’t a good way to do that right now. Certainly, you could edit the form code directly, but hacking any of the code puts you in a situation where you need to redo any changes when you upgrade (not good).
With the next couple of releases, however, I will be formally introducing pluggable functions and ways to better customize the plugin. These features have been in the plugin for awhile, but they were considered experimental. They have reached a level of development where I can now officially offer them as a feature for the masses. That will accomplish what you are asking here. There will be more formal documentation of this feature forthcoming as I get ready for the next release (in the form of a tutorial post).
Patricio Silva says
Thx for your quick reply. I agree no good hacking plugs concerning future releases. Mean while I’ll just wait for your next releases and see what ingenious solutions you will develop and present.
Best regards
Patricio
tooth maniac says
Thanks for the wonderful plugin
Luciano says
Hi guys,
how can setting the Time-exipiratio or Trial period for user registration?
I find the filed label “Time-based expiration” and “Trial period” during the translation, but I can’t see that field or that function in the admin panel settings.
Thank you in advance.
Chad says
That’s for a future module that is in development but has not been released
socrates says
Hi, I am very pleased with the plugin.. does exactly what i wanted. Thanks for share!
Patrik says
yes, this plugin is very helpful, some new features will be nice
Elizabeth Richardson says
This is an amazing plugin. Thank you so much.
Is there a way to display the information of ALL the users together on a page/post … ?
Chad says
Hi Elizabeth – could you describe what you have in mind a little more?
Elizabeth Richardson says
Gosh your service is amazing. I really appreciate you.
OK, I’m asking users to sign up and list their skills, locations and interests on their profiles. I’d like to display ALL those profiles on a page so that clients can choose which one they’d like to contact.
Perhaps a [ list_users ] shortcode or something?
Sean says
Hi Elizabeth,
Firstly, I have to agree, Chad’s service is second to none. He has to be the hardest working plug-in developer out there!
Secondly, I use an additional plug-in “Members List Plugin” which works with Chad’s perfectly but may not quite have the functionality that you need (it may have if modified) but there is also “The WebGears Members Plugin” which, although I haven’t tested it personally, looks to be what you need.
I hope this helps and thanks once again to Chad for all his hard work.
Sean
Elizabeth Richardson says
Hey Sean … nice to meet you.
I am using the Members List Plugin and Paid Memberships Pro too and they all integrate really well. Great idea to try the WebGears Members Plugin but it wasn’t right.
Having the capability to display the users with ALL the extra fields that this fabulous plugin allows me would be absolutely perfect.
A do appreciate your assistance so very much.
Chad says
Sean – thanks so much for the kind words! Since I put out a new release last night, I actually expected to check in this morning to a pile of support needs, so it was great to see this 😉
Chad says
Thanks Elizabeth for the ideas. I’ve been working on ways that I can improve the plugin with shortcodes and this is a great idea for inclusion as a shortcode – something that could take parameters like display a specific user, or a list of users (defining # of users displayed per page), etc. That may start to take shape in an upcoming version.
Dukenuketz says
Hi Sean!
We are trying to use your great plugin for a new website. It works with multiple browsers I tested (Firefox, Chrome and Safari) but I can not log in to the Internet Explorer.
I tried to delete cookies but still not working.
Can you tell me what is causing the problem?
Greetings!
Chad says
Thanks for your comments. Unfortunately, I don’t have an answer for your situation. The plugin is tested in various browsers including IE and nothing in the login has changed in several versions. Login is handled using wp_signon (a WordPress function) on the server side so the browser version really has very little to do with it.
Kamal says
Hi Chad, Don’t know if my last message came through or not, but have another go now. (I have sent you a message via your contact page) Thank you for a great plug in. I have installed and used if for the past month with no issues at all until yesterday when I installed the update. Since then I get an error message 503 server busy type of thing every time I go to activate a member. I have even joined as a member myself to test this and it does the same thing. Is there a problem with the new update? Can I please go back to the old version while this is being looked at.
Thanks again.
Chad says
Kamal – thanks for your posts and your question. Please note that you only need to post once and I’ll get to it. Comments on this blog are moderated and must be approved by an admin when the poster does not have any other approved comments. That is why your post didn’t show right away. I sent you detailed instructions via your email question.
Micahel Walker says
Actually Chad, I am getting this same error as Kamal since upgrading to 2.6.3. , when trying to activate a new user.
Chad says
Hi Michael – I’m trying to track down exactly why this particular function call isn’t working – the wp_update_user (a native WP function) that is used in wpmem_activate_user is working fine when called from the bulk user management, but not on the individual user edit page. I’m hoping I can track it down and fix it because I like this method better than using the $wpdb->update method that was used before.
Until then, I have a fix posted here: http://wordpress.org/support/topic/plugin-wp-members-moderate-registration-u-get-a-404-error#post-2405607
I will probably end up releasing this in a 2.6.4 version that also fixes one other minor problem. But I’m waiting to see if there are any additional bug reports from 2.6.3 before I do that.
Let me know if you run into any issues with the fix.
Amarokz says
Is it possible to restrict some posts to certain users?
Example:
User1 can access any post. (1 to 5).
User2 can only access post 1,2 and 3 (4 & 5 are blocked out)
I hope te hear something soon.
Thanks for your great plugin!
Chad says
Thanks for the question – at this time, it’s an all-or-none.
Amarokz says
Ahwell, too bad.
Is it on the to-do list? Is it even possible?
Greets.
Chad says
Something like that is on the project list – different access levels or groupings. But I don’t have a estimated time on when we will get to that.
Amarokz says
Ah thats too bad. Well, looking forward to it!
I will be using this from now on, as I’m using seperate plugins for these things now. Your plugin looks promising!
Mitch says
Hi Chad,
at the risk of sounding stupid… i can’t quite work out how to use the “more” link. I followed ( I think) the instructions in your installation guide, but it comes up just showing the following :
this is a test post
this is supposed to be the secret stuff for logged in users…
you can see it here: http://www.churchfreo.info/2011/10/testing/
Any advice/help would be appreciated 🙂
Chad says
Mitch – I took a look at your site. It looks like what you probably did is paste
into the WordPress visual editor, which will not work as the editor will convert this to
<!–more–>
. When using the visual editor, there is a button in the toolbar for inserting the ‘more’ tag. In the default installation of WordPress, this is the fourth from the right. There is a good description of this at WordPress.comRichard says
Hi Chad – many kudos to you for your great wp-members plugin!
A quick question; is there any easy way I can show only the login form on the members area page that is automatically shown to not-logged in users? I’ve created a separate registration page so would like that not to show on the default page too.
Besides, there’s some format error in the layout on the members area page, it shows the reset password-link and register new-user link on top of the login-submit button. It doesn’t do this if I use [wp-members page=”members-area”] on a page I create myself though.
Many thanks,
Richard
Chad says
Hi Richard – thanks for your comments. Right now I don’t have a way to remove the standard login form. That may come down the road though. Also, I have more formalized most of the functions to be pluggable so there may be a work around that might suit you. Stay tuned as I will be putting together more information on how to do that.
On the second issue, I think I know what you are talking about but would you mind posting a link to an example so I could verify. If it is what I think it is, there is a fix coming shortly… (I think that it is a WP text parsing issue and I am working on an override)
Richard says
Wow, that’s a swift response! 😀 Thanks!
Here’s a link where you can see the login submit button ending up behind the reset-password and new-user links:
http://mildnervillorna.se/wordpress/?page_id=37
It doesn’t end up like that here though:
http://mildnervillorna.se/wordpress/?page_id=109
It’s on the first page I also would want only the login form and not the register new user form. Would you mind telling me where in the code this is and perhaps I can alter it manually until you have your solution in place?
Another feature I was looking for was the possibility to display logged on user’s username (or other fields) using embedded shortcode in a page or a post. Any chance you will add this too? I know about the php option.
Thanks!
Richard says
One more thing, in a couple of places (the widget for one) it says “you’re logged on as” but then nothing. It shows no username so seems this is not working as supposed to. I’m using Swedish language files, but other than that no tweaks.
Chad says
I’ll check into this…
Chad says
Yes, that is what I suspected – the upcoming fix for overriding the text parser should correct this issue.
The plugin does have a shortcode to display the login form, so you could turn the registration form off in the settings, but that effects everywhere the login/registration forms are displayed. You’d be better off just using the shortcode for a one-off solution like the homepage.
There isn’t a shortcode to display username only. That’s probably a good idea for the project list though. There are some WP functions that you could use to do this directly though.
Chad says
I should also mention that fixing the this until the fix comes out is not possible – it’s not a problem with the form, it is a break tag that WP is putting in there when it runs the code.
Richard says
Good morning (?), Chad… here’s yet another thing; when I try to Activate a user I get http 500. Hence they cannot log in. Editing other WP-Members Additional fields from wp-admin works fine.
I’m using WordPress 3.2.1.
Any ideas?
Richard says
Actually, it works to activate users from the WP-Members menu using the batch feature. It’s when editing user by user using WP built-in UI it doesn’t. So it’s no “cow on the ice” as we say in Sweden 😉 but perhaps you wanted to know anyway.
Mitch says
Brilliant! Thank you!
Richard says
I now also found out that username is shown if I remove the SE language files.
Another thing that doesn’t work with the language files is the email notification to user that the registration is pending approval and/or that it is approved and what their password is. This too works again if I remove the SE langauge files.
I’ll look closer into it tonight. Sorry for all the spam. 🙂
Chad says
Richard – see http://wordpress.org/support/topic/plugin-wp-members-moderate-registration-u-get-a-404-error#post-2405607 on this.
Colin Weir says
Hi Chad
Thanks again for this fantastic plugin. I updated to 2.6.3 and found that whenever I tried to activate a new user I got a Fatal Error message then I had ran out of space or something like that. I rolled back to 2.6.2 and it’s resolved the problem.
Thanks
Colin
Chad says
Colin – explanation and solution at http://wordpress.org/support/topic/plugin-wp-members-moderate-registration-u-get-a-404-error?replies=2#post-2405607
Snowflake says
Please help! The password wont email to the new users who register. Im using xmapp server and latest wordpress. Anyone?
Micahel Walker says
Thanks as always for the prompt response. I’ve applied the fix – now I’m just waiting for another user to register so I can see if it works. I’ll keep you posted.
Michael Walker says
Just a thought – but is there ever likely to be an option to de-activate a user? For example – one site I run is a members site where folks pay an annual membership fee. Would be useful to deactivate them if/as and when they fail to renew their membership for some reason.
Chad says
There is not a current option for deactivation, but it is likely to be added soon. I actually do have that on the project list.
Chad says
See “Users are not being emailed their passwords, what is wrong?” on the FAQs page.
Dukenuketz says
Hi Sean!, the problem with Internet Explorer was in my hide redirection. I don’t know why, but in Internet Explorer works if you not redirect to other name site.
Greetings!.
shan says
Hello i suddenly run into a deep problem em tryin to call the fucntion name into my theme with this full syntax
but nothing comes up ..? i need to call this function how em i suppose to call this in my theme..?
need to know this ASAP any help will be appreciated
Chad says
What function are you referring to?
Davis says
Just updated to new version and now when I go to manually activate users the page goes to a blank page and does not activate users.
shan says
em referring to function i should display registration form.
my display code
shan says
whats wrong with this editor..? its only out the plain text not code..?
any strslashes code attached with it..?
em referring to function i should display registration form.
my display code
Davis says
A workaround is to activate users via the wp-members section under the Users area. But do know your new version has a bug with activating members via the users area.
Chad says
shan – just email me via the contact page.
Chad says
Yes – I am aware – explanation and solution at http://wordpress.org/support/topic/plugin-wp-members-moderate-registration-u-get-a-404-error?replies=2#post-2405607
I will be releasing an update with the fix applied within the next couple of days.
Jeff says
Hi Chad,
Love the plugin all is working perfectly. I am using it to protect the pricing page on my site. I customized all of forms so they work with my theme:
http://mod-rugs.com/rug-pricing/
Thanks for the great work and support.
Chad says
Awesome – glad you got it working. The form integration looks great!
Jenny says
Please help! I just tried to put in the top code to the functions.php
if( $_SERVER[‘REQUEST_URI’] != “/wp-admin/” ) {
add_filter(‘login_url’, ‘my_login_url’);
}
function my_login_url($login_url = ”)
{
return ‘/my-login-page-slug’;
}
and it didnt seem to work so I removed it again and now I cant get into my admin!! Any advice?!
Valérie says
Hi! It’s an awesome plugin 🙂
I have a simple question, I know it’s something probably really simple to do but I can’t figure it out (I’m very beginner in coding php).
I would like that in the sidebar, instead of writing “You are connected as myusername”, it would be written “Hello myfirstname”. I see two places that I have to change the code in the sidebar file, and I changed “You are connected as” by “Hello”, and it works fine. But I don’t know what kind of code I have to put to show myfirstname. I tried simply replace $user_login by $first_name (and a couple of things like that), but it doesn’t show anything. Hope you (or even anybody that is better than me to coding) could help me 🙂 Thanks..
Jenny says
Dont worry! Sorted it.
Larry says
Is there a maintainable way to verify fields during the registration process? For example, if someone add a URL (in a field that we add through the plugin) we would like to verify it’s a valid URL before accepting the registration.
shan says
Hello chad I’ve mailed you the exact code. please review that & let me know
Regards
Shan
dan says
Another question. When users try to comment on my blog posts when not logged in they get prompted to register but on other pages like http://pursuitofstrength.com/how-to/how-to-deadlift/ there is the word press sentence :
Leave a Reply
You must be logged in to post a comment. which takes them to the wp-admin screen.
How do I get it to act like the blog comments?
Micki says
Are there any issues with Google Analytics being placed in the footer which will then populate all of the pages, including the password protected ones? Would it be best for me to specify which pages the Google Analytics goes on?
Thanks!
Chad says
The plugin only handles content within the Loop, so as long as you have the analytics code in your template outside the Loop (which you should have anyway), then there are no conflicts.
Chad says
Hi Dan – that is actually coming from your comments.php template. As to how you change that depends on your theme. More modern themes utilize the comment_form function. comments_form() accepts various arguments for outputting the comments form and one of those arguments is must_log_in which specifies text you are referring to. What you want to do is create a filter for this in your theme’s functions.php file to override the default.
Andrew says
I have found that this bit of code in your theme’s functions.php file will block a certain category from showing up in the home/archive/list pages as well as the built in widgets like recent posts.
function exclude_category( $query ) {
if (!is_user_logged_in()) { //non-logged in user
$query->set( ‘cat’, ‘-5’ ); //removes catID 5
}
}
add_action( ‘pre_get_posts’, ‘exclude_category’ );
As a bonus, it appears that the category archive for this category (/category/slug/) will simply give the not found message because all of the entries have been removed from the WP loop!
This is based on the Plugin API docs at http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
Hope it helps!
Andrew
Joakim says
Hello,
Thanks for a great plugin!
I was wondering, how safe is wp-members to use for example registrering personal information, resumes etc. using the registration fields? Is it easy to access other users registration information?
Thanks in advance!
Chad says
The answer to that is “it depends.” WP-Members utilizes the WP users and usermeta tables. It piggy-backs the WP registration and user management process. So it is only as safe as your WP installation is.
For example, it is up to the end user (the site admin) to establish whether data is transferred over SSL or not (WP will work either way). Also, how you manage who has access to the user data – depending on the roles you have established for your WP users determines who has access to the information (and also who has access to the WP database).
I know that’s not a direct answer, but truthfully, if you follow best practices for maintaining a WP site, it’s very safe – the safety and security is up to the site admin.
David says
Hi,
I was planning on using this plugin for a uni student association website and I was wondering if there was any way to make it so you have to use an email address from the uni to register (i.e. email@university.edu.au would be registerable but email@gmail.com wouldn’t).
Weird request but thanks for any help you can offer!
David
Richard says
Hi Chad,
Any idea when the upcoming fix for overriding the text parser will be available? I’d be happy to be an early adopter and test it for you if you like… 😉
Thanks,
Richard
Andrew says
I found http://wordpress.org/extend/plugins/user-domain-whitelist/ says it works up to 3.1 so good chance it’s current or could be modified easily to be, and http://wordpress.org/extend/plugins/wp-email-restrictions/ but that doesn’t say it works with 3.0 (but may). I know there are some BuddyPress plugins too so if you’re using BuddyPress search there too.
Basically I think you want a whitelist email domain plugin so I searched the plugins for “whitelist domain” and found those. HTH!
Freezebox says
i like this plugin, but is there a way that if the using is not login is it possible to display the word register just beside the login button?
Chad says
If you set up a registration page as outlined in the users guide and the quick start guide and set the location of that in the plugin settings it will display a link to the registration page. Likewise, if you set the location of the members area it will display a link to to reset a forgotten password.
Chad says
Thanks for posting that Andrew. It should work if it hooks into the WP email validation is_email()
Chad says
It is in the 2.6.4 release actually… The login form makes use of it. In the 2.7 project, it will cover the entire login and registration forms. I’ll post more on this soon…
Richard says
Fantastic! I was on 2.6.3. Just updated and it works fine now. Many thanks!
David says
Thanks for the help!
Unfortunately this whitelist plugin doesn’t seem to work with wp-members. When users register through wp-members their registration isn’t blocked even if the domain isn’t on the whitelist. But when I re-enable the default wordpress registration registrations through that form are blocked.
I know there’s probably no easy fix to get these plugins working together, but I was wondering if you had any suggestions?
Chad says
Well, WP-Members checks the email in wp-members-register.php at the very beginning of the registration process using is_email. I thought the whitelist plugin sounded like it might filter that process (it may or may not – I haven’t looked at it). Depending on your knowledge of PHP, if you can write a filter hook for is_email to not only check the validity of whether it is an email address, but also to check for the domain(s) you are looking for, that would be the best way. Otherwise, to accomplish what you are looking for, you would need to modify the registration function, adding your validation to occur with the other form validation. That, however, is not an optimal solution because you would need to reapply your hack everytime you upgrade the plugin.
Hope that helps.
Michael Walker says
Having set up all the fields, forms and other components I need, I would now like to turn over day-to-day handling of WP-M to one of our Users. That’s to say, he should have access to the WP-Members list in the Users UI and would be able to view and edit ‘admin-only’ data and so on. I don’t however, want to make this User an overall admin of WP – he just needs admin access to WP-M, not the other WP admin functions. I’ve got Role Scoper and User Role Editor plug-ins installed, but even so I don’t see a way to do this. Am I missing something, or is this just not something one can do with WP?
Many thanks for any help in advance.
Chad says
Well, the plugin is not designed with limiting admin duties for just the plugin. However, if you use a role manager plugin that can assign roles, you might be able to bump him up to another role (such as contributor), then remove unnecessary actions from that role and give him the ability to edit users.
Michael Walker says
Thanks Chad. I had thought of creating a new role just for him – which is pretty much what you’re suggesting – just wanted to check I wasn’t overlooking something more obvious.
Chad says
I think that would work – as long as he has ‘edit_users’ as a capability (1. to actually edit users, but more importantly 2. because the plugin only loads the admin functions if the user has that capability)
Piet Opperman says
This plugin does exactly what I want, so that’s great, and I have made a donation accordingly. However, one more thing would help a lot: allow the new user to capture their password on registration. That would save me having to create passwords for them and email the password to them.
Or am I missing something and it is already there?
Chad says
Hi Peit – thanks for the comments (and donation!)
Currently, the plugin emails the user a password upon successful registration. You should not need to create a password for them. If users are not receiving password from the system automatically, you may have some problems with wp_mail (unless you are using a localized/translated site – there have been some reports of mail issues with translations – this is an open issue).
The reason the plugin emails the password to the user rather than simply display it on the screen is a validation issue. For most users, validity of registration data is important. For sites that choose to not moderate registrations, this process provides at minimum a valid email address for the user as they are unable to receive a password without it.
If you are running a localized version of WP and suspect that might the issue with the email, contact me directly either via email or the contact form.
Jason says
Everything seems to be working properly, except the input boxes for the 2nd lines (“Password” and “First Name”) on both the “Existing Users Login” as well as “New Users Registration” have jumped to the 3rd line for some reason. How can I fix this?
Chad says
That is a style issue – either an inherited CSS property that you’ll need to define, or you may have to make some adjustments to the width of the various form field elements (also CSS). To do this, you’ll need to specify a custom stylesheet for the plugin. Instructions for starting that process are here: http://butlerblog.com/2011/07/25/customize-the-wp-members-stylesheet/
Vijendra says
Hi Chad this plugin is working fine for me but from yesterday i’m getting strange problem … after user registration i’m getting 404 error page instead of thank you message or welcome screen. my url is http://www.tmp.net.au … please check. Thanks for help and such a great plugin.
Closer says
Hi Chad, nice plugin looks liek it will do exactly what I need it to!
One thing though – my username text field in the Register page is missing and therefore I can;t type in anything, what could be causing the problem?
Anything you can advise much appreciated!
Chad says
Without an example to look at, that sounds like a CSS issue. The included CSS will work well in a variety of scenarios, but it is intended for users to customize the CSS to get the best integration. One thing to consider is that there may be properties for some undefined elements in the default CSS that are inherited from your theme (or other) stylesheet.
The description you provided sounds like more of a width issue. If the content area of your layout is too narrow for the default CSS, then it will wrap, giving the illusion that a field is not there, when it is actually more aligned with the label on the next line. To adjust this, you need to make adjustments to the width of the entire form, and also the labels and form elements (and wrappers).
Setting up a custom stylesheet for the plugin is easy. There is a description here to get you started.
Patrick says
Hi Chad! Is there any possibility to add a custom function to the registration page. For example to check if a referrer’s email is in the database? Thanks!
Chad says
Patrick – thanks for the question. I get similar versions of this (in terms of how you would best apply a change) a lot so I started to put together some more formal information. Essentially, the plugin does have a feature that allows most of the functions to be pluggable – that is, that you can recreate a custom version outside of the plugin itself. This is the best way to customize since any hacks directly to the plugin itself would need to be reapplied when you upgrade. The general information is here:
http://butlerblog.com/2011/11/29/customizing-wp-members-with-pluggable-functions/
Feel free to give some feedback on the post as this is kind of a work in progress on something that makes perfect sense to me, but may not to those not intimately familiar with the plugin.
As for specifics in your case, the registration process itself (wpmem_registration found in wp-members-register.php) is not pluggable, but there are actually some cleaner opportunities to slip in what you are talking about. My suggestion would be to slip your process into the wpmem function. This is the main action function that fires at the very beginning of the plugin before any data is sent downstream. It essentially checks the state we are in (login, registration, nothing, etc…) and acts accordingly. If the user has submitted the registration form, it will be in the “register” case. It will then run wpmem_registration. This would be where I would add a function to check your referrer.
Depending on how you envision this working, you might have two functions here, one before wpmem_registration to check if the referrer’s email is in the database (and maybe that’s all you want to do), and one after. If you need to do something based on a successful registration, the value of $wpmem_regchk will be “success” if the registration has been successful and we are moving on, so you could slip something in after based on that.
Hope that helps.
Closer says
Many thanks for your reply Chad, it was indeed a CSS issue, the CSS with my theme had the username property set to display: none…
User9 says
When I add a custom register link there is a ? added to the end of the link. so instead of my custom register link being what I enter which is
http://www.example.com/wp-login.php?action=register
it creates a link of
http://www.example.com/wp-login.php?action=register?
can you tell me how to fix this please.
wordpress version Version 3.2.1
plugin version Version 2.6.4
Linda says
Hi Chad,
How would I go about using a link to terms of service in order to maintain the layout for the site? I’ve created a separate page for tos on wordpress and would love to be able to link it to this page instead of a plain white background with just text. I know the file affected is wp-members-dialogs.php and that’s about it! Many thanks in advance.
linda
Chad says
Well, I can see that the wpmem_chk_qstr probably needs to be updated for some additional uses, but oddly, in its non-updated state, it should be returning an appersand (&) in that case rather than a ‘?’. So I’ll add that fix to the list.
Part of the issue is that the location of the registration page wasn’t intended to be the WP regristration (wp-login.php?action=register), but rather a specific page using the WP-Members register shortcode. So, one workaround would be to set that up. The other workaround would be to change the code where the registration links are generated. These would be in wp-members-dialogs.php (lines 156 & 790, depending on which set of forms are being used) and wp-members-sidebar.php (lines 115 & 144). Changing
$link = wpmem_chk_qstr( WPMEM_REGURL );
to$link = WPMEM_REGURL;
should take care of it.Chad says
Hi Linda – actually, I am working on adding functionality to the plugin to be able to use a specific WP page as the TOS as you have mentioned. I’m not sure when that will be complete – there’s a 2.6 fix version in the works, then hopefully a new feature release 2.7. That process is on the 2.7 project list.
I usually caution against making changes to the code directly, but in this case, it’s something that’s going to change anyway, so a temporary workaround would be to change line 658 in wp-members-dialogs.php. That line is:
If you are going to just make it a link to your specific page, then you could do something like:
Hope that helps.
Ryan says
Hello,
Is there a way to set up where they have to pay to register?
Thanks
Chad says
not at this point, although there is a payment module in development.
Linda says
Thanks very much for your reply Chad! There was a syntax error which I’ve corrected and it works!
Hmm, can’t seem to paste the code correctly. Using [/code] seem to generate extra characters!
Remove spaces:
$tos_pop = ‘ ‘;
Well worth donating to a great and well supported plugin!
Chad says
Hi Linda – thanks again for the donation.
Probably easier to send copy/pasted code via that contact form.
schaffnern says
Hey, nice plugin, tanks!
I wonder whether it might be possible to block the home page also, not only additional pages! Am I missing something?
Shay C says
Hi,
I’m just using your default registration page for new members. It asks for username setup, but not for a password setup.
How do I add the field, for password setup, to show up on the registration page?
Thanks for your support.
Shay C.
Chad says
You can do that if you set a static front page in the WP admin Settings > Reading panel. You’ll either need to be blocking all pages by default, or make sure whatever page you choose as the front page has been blocked.
Chris Buckley says
This is a feature which I need to. I actually this would work by default, by ticking or unticking the activation checkbox, but I’ve noticed once a user has been activated the checkbox then disappears.
Is this close to being added to the plugin? Its currently the only thing thing preventing me from using it.
Cheers.
Jeff says
Thanks for the great work on this plugin. I’ve been using it on some of my other sites with great results.
I’m having trouble with the registration page under one theme, though. The field labels and input boxes are out of line i.e. the space to the right of “Username” is blank while the space to the right of the next field down, “First Name,” contains the input box associated with Username. And so on down the form. The final input field is hanging, and appears to have no label to the left of it.
Check it out here if necessary:
http://www.t2trades.com/?page_id=17
I’m not really sure how to fix this; my other websites never had this plugin problem. Will I need to edit something in the wp-members CSS?
Thanks.
Chad says
Thanks for the comments Jeff. Looking at the link, there is definitely something throwing off the CSS, so you will probably need to do some customization of the stylesheet. There is some information here to get you started the right way.
Nono says
Has anyone else report this error for 2.6.5?
Warning: array_reverse() [function.array-reverse]: The argument should be an array in /blahblah/htdocs/moreblah/wp-content/plugins/wp-members/wp-members-register.php on line 41
This was fired off by the registration page.
Nono says
Update: Has something to do with fields. Only user name was present in the form and the config. I’ll just try to replicate the fields list.
Nono says
One last thing, what value does TOS (tos) store? true/1/yes/y/t?
Chad says
Was email present as well?
Chad says
The checked value of the TOS field is “agree” – for any custom set checkbox, the checked value will be whatever you set in the plugin settings.
Nono says
No. Only user name was filled out. So I had to supply other fields: email, name, etc.
Nono says
Thank you.
Against advice, I used it on MU. Initially working for super admin though strangely behaving. However, I encountered other serious errors while logged in as a network site admin. And that will stop me from furthering the experiment. LOL.
Chad says
If you’ve applied any hacks to the code, you *must* have at least username and email on the registration.
Nono says
No hacks (so far) for this particular install. I was hardheaded and installed WP-Members in Multisite. That mainly caused all the malfunctions. Sorry for the confusion and apparent waste of space/time. 🙂
Andi K. says
Hello! I absolutely love this plugin, but have been unable to register new users as of late. It is sending them to the 404 page. Here is a link:
http://www.destinysrehab.com/register
Any insight you have would be great!
Thanks, and happy holidays!
Chad says
Looks like your permalink settings are the default, so your register page would be something like http://destinysrehab.com/?page_id=1234. You can either change your permalink settings, or you need to know the page_id of the register page.
andik says
Hi, I tried checking into this, and it is still not working. It originally worked with no problem, but started acting up as soon as I upgraded to WP 3.3. Is there any way that you could help me do what you mentioned above? I appreciate your assistance. 🙂
Jesse says
Hi, thanks for the amazing plug-in.. so far it has worked like a dream.. I have one question.. and could not find it in the documentation.. what if a user forgets his/her USERNAME? I don’t see a way to reset.. thanks! Jesse
Chad says
Hi Jesse – at this time there is not a process to retrieve a forgotten username automatically. However, a user could contact an admin and you should be able to find them via email address in the user list.
Chad says
You need to either change your permalink settings (under Settings > Permalinks) or you need to change your links to the register page to http://destinysrehab.com/?page_id=1234 (where 1234 is the ID number of your registration page).
Clyde says
Chad,
I was about to make a cooment to ask if your plugin is compatible with the WPDrip plugin developed by Robert Plank when I saw this post. If it is compatible that will solve the problem. The only problem it may cause is his plugin is $47.
Anyway, my question: Do you know if your plugin is compatible with his. That was the only thing holding me back from downloading your plugin. If you are not sure let me know and I will download and install your plugin and his and let you know what happens.
Many Blessings,
Clyde
Clyde says
Chad,
Two questions, if you do not mind.
1) Are the manual, FAQ, etc. available in PDF or similar or just here on the blog?
After reading one of the above posts I felt like I may need to ask this one as well.
2) If the css for my theme and the css for your plugin happen to be named the same can I change the name of the css and the reference on the pages to access the new name?
Many Blessings,
Clyde
Chad says
I’m not sure if it’s compatible – but I don’t see why it wouldn’t be as long as it is working within the WP contruct.
Chad says
The manual is a pdf available on this page. The info you need on the CSS is in there and there is also a post describing setting up custom CSS linked above on this page.
Larry says
I assume a user cannot use the built-in wordpress feature for resetting their password?
Andrea says
Hey Chad,
we’re currently testing your plugin to use on our site, and are fairly happy with it, but we’ve run into two issues that I was hoping to get help with.
1. Translation issue. We have finally figured out how to force the fieldnames to be German and it’s all fine, but in the dialogues the field for the Password reset just won’t stick. We had to deactivate the plugin a couple of times and after every re-activation, the default text is back in the Password reset box instead of the translation we have filled in earlier. I am assuming that it gets the default value from the database. Why does the translation not update properly in the database? Not a huge issue, just a little bit of a nuisance.
2. Login page. We have set up the optional registration page and it worked just fine, but then from one moment to the next the registration form is on the login page, even though we have the optional link turned on. We can’t seem to get rid of the registration on the login page and are truly stumped here. What could possibly cause this? I could supply screenshots if necessary.
We would greatly appreciate your help.
Chad says
The plugin only shuts this off if registration moderation is turned on and the user has not yet been activated. That particular instance would otherwise be a security hole as a non-activated user could use the built-in password reset to immediately receive a password. If, for some reason, you wanted to turn this off for all users, the function wpmem_no_reset() is pluggable. (See this post for setting up WP-Members pluggable functions.) The following would turn this off completely:
NOTE: The are going to be some changes to the login functions in the near future (sometime following the upcoming 2.7), so if something like this is implemented, new releases should be monitored for changes.
Chad says
The only things that are stored in the database are field names and the dialog for certain error messages. I would make sure that you have properly forced the installation process as described here. From your description, I don’t think that’s your issue, but just make sure. You should also compare the strings between your translation file and the wpmem_reset_password function in wp-members-dialogs.php (I assume we are talking about password reset and not password change, although the password change function is also in that file). Make sure that the string the translation file is looking for is correct.
As for the login page, it sounds like you have the page blocked. If you have set up the login shortcode on that page, that’s the only reason the registration form would show on it.
Becky says
Hi,
I’m having trouble with the registration process. I log out of wordpress dashboard then fill in the registration, which sends me to a login page. But don’t receive the email with the pass word and it’s not in the junk folder. I do receive an email from wordpress stating there is a new user registration on on site. The registration page is http://pooktre.com/extras/
I’ve managed to correctly set up this plugin on two other sites.
The only think I can think of that is different is the pooktre site is setup as sub folder with redirects to the main domain and maybe this is stuffing up the registration process.
Chad says
Becky – it’s odd that you would receive one and not the other. Also, the registration email is sent prior to the admin notification. BUT – it is possible that it could be an issue with your web host. Some hosts put restrictions on email sent directly from scripts as that is how spammers bypass things. Since in this case two emails are being sent right on top of each other, that could be an issue (depending on the host). You might try it without the admin notification to see if you get the registration email. Also, you could implement a plugin such as WP Mail SMTP which will hook the wp_mail function into an SMTP server – this is cleaner and more reliable for sending messages, and should get you past any issues. Hope that helps.
Clyde says
Everything seems to be working very well with one slight issue. The previous/next links at the bottom of each post seem to be confused as to where they should take you.
I have put in a request to Robert to see if he can do a bug fix. I have not yet set up a registration page but you can take a look at the blog using visitor/vistor as a temporary username/password.
I am using a custom blog theme as well as the WPDrip plugin and there does not seem to be any css conflicts or anything else outside the minor problem I mentioned.
I will be setting up the registration page within the next hour so you may want to wait IF you want to check it out.
Thanks for a greta plugin,
Clyde
Clyde says
Seems like I can’t even give you a compliment without spelling the word wrong.
I did not like the separate registration page idea so I modified the css just a tad so the forms would fit better within our theme.
Let’s try this again. Thanks for a truly wonderful plugin.
Becky says
Thanks Chad that worked. I did have to use a plugin to turn off wp admin notification I used ‘Disable wp new user notification’.
Becky
Dee says
Hi Chad: I just adore this plug-in and all the well organized details in every respect! I have one minor issue that I’m stumped on. When someone attempts to login and they enter the wrong info they get a dialog with giant red letters that says “LOGIN FAILED! You entered an invalid username or password.”
I wanted to tweak that language to make it a bit more friendly and adjust the size & style of the red font, but I don’t see this message anywhere in the Dialogs choices (all the messages there are quite friendly).
Can you tell me where I can change this message and its CSS styling?
Thanks!!!! Happy New Year!
Dee says
Since posting I see why the type font is large red – I see in the plugin php that the message is set to be an H2 which I had set to be big red letters on the site – that is easily changeable for me. I still would like to change the dialog but I don’t want to mess with your plugin php codes without hearing from you exactly what I can and cannot do and where (I’m a TOTAL novice at this!)
Thank you in advance for your reply!
Chad says
There would be two ways to approach this. First (and best) is that you can specify a CSS style for this. Yes, as you already noted, it is an H2 tag. But it is within the ID wpmem_msg. So what you would want to do is specify a style for: #wpmem_msg h2 { your style properties here }. You could do this in your existing stylesheet, or you could set up a custom stylesheet for the plugin (outlined here).
Alternatively, this dialog function is pluggable. This post outlines how to set up a file to utilize pluggable functions. The function in question is
wpmem_inc_loginfailed
in wp-members-dialogs.php. If you create a new wpmem_inc_loginfailed in your pluggable file, you just need to put the html you want for message to be returned by the function. Something like this:Note: this should be done using the process for pluggable functions – not changing the file directly. If you change the file directly, it’s just going to be overwritten when you upgrade the plugin (hence the reason for pluggable features).
Hope that helps.
vivian says
Hi Chad, love this plugin. I have 1 question:
1 Is there any way to do a mass user import from a CSV file? I noticed the export function but after I made changes to the file, how do I import them back?
Thanks again for your help in advance!
Chad says
While it may be added in the future, there is not an import process.
David Lopez says
Would this plugin be suitable for a directory of Realtor’s who can manage a profile and list properties via comment?
Chad says
You’d have to make that determination based on giving it a test drive. It blocks individual posts and pages and uses excerpts as “teaser” content on archive (multiple post) templates. It also places login and registration within your branded theme in a way to encourage registration.
Vic says
Hi Chad, I was wondering if there is a way to put in a Login status and Logout function (like in the sidebar) in the header of my website. I’ve been looking around and trying some functions but all my attempts either fail or return a server error on my website
Chad says
There would be more than one way to accomplish this. But if you are hooking in to the WP-Members login process (which uses the WP function wp_signon, same as the WP backend), you basically need a conditional statement to determine if the user is logged in or not. is_user_logged_in returns true if they are. Based on that, you would display their login status if they are logged in, or if not, then a login form. The form needs to post back to the url you are on, and in order for WP-Members to fire the login function, you need to pass “a” with a value of “login”. The credentials need to be “log” for the username and “pwd” for the password.
PG says
Hello,
I’m french and very interested about your plugin but i wonder if there is a Easy PayPal Integration or something like that…
Thanks for your answer
Bests regards
PG
Richard Dannenberg says
Hi, Chad,
I really appreciate your plug-in. I’m having one small difficulty, though. I will need to export the member list (the entire list) on a regular basis. This was not a problem the first time, but now all of the records (except the new ones) have been coded as exported. I can only export records one page at a time from the WP-Members Users page. There are currently 20 pages of data and we’re adding users everyday, so this isn’t really practical.
Questions:
1. Is there a way to select all members at once for export?
2. Can I reset the code that designates all members records as exported?
3. Is there a way to export from the database and still get all of the information in one file?
In other words, what’s the best way to do this?
Thanks!
Richard Dannenberg
Chad says
not at this time…
Chad says
Hi Richard,
Yes, we kind of lost that possibility when I went to paginating the user list. Prior to that, it would list all users on the page and you could select any or all to export. But that was a problem for admins that had a sizable list of users (and/or a lot of extra fields) as the script would time out.
So, I will be working in a full export option in an upcoming release. The 2.7 release is pretty much wrapped up and is currently in a beta release, so this might make it in to 2.7.1. In the meantime, probably the easiest way if you don’t need to keep track of users that were exported is to clear out the toggle. It sets a usermeta of ‘exported’.
Mikael Boldt says
I have now installed and activated the WP-Member plugin with my local language .mo file and
2 errors pops up:
1.: a member wants to change his password and gets this error:
Fatal error: Call to undefined function wp_update_user() in …/wp-content/plugins/wp-members/wp-members-core.php on line 493
2.: I want to visit WP Dashboard / Users / WP-Members and get this error:
Fatal error: Call to undefined function get_users() in …/wp-content/plugins/wp-members/wp-members-admin.php on line 992
What to do?
Chad says
Those are both WordPress functions so I’m not sure why they would be undefined; neither of them are deprecated. wp_update_user used to be in registration.php which is now a deprecated file, but it was moved to wp-includes/user.php (as was get_users). So I would start by making sure that file is present in your WP installation.
Vic says
Hey, thanks for the quick reply. I managed to get it working with is_user_logged_in.
I do have another question, is there a way I can echo some user information on the members area ao it doesn’t look so empty? eg: username, name, address, etc..
Tea says
Hi Chad,
I used your plugin before and it worked wonders, thank you!
I would like to re use it for another project but i have a question – after the clients log in to the members area some of the members will then have a page where they have to enter a code given to them in person to access one more page within the members area – is this technically possible to achieve assuming it is members within members sort of set up?
Many thanks in advance!
Chad says
You could… although that information is pulled up when they click ‘edit my information’. If you wanted to put more into that, the function that generates that content is wpmem_inc_memberlinks found in wp-members-dialogs.php. This is a pluggable function, so what you would want to do is set your own version of this function as outlined here and simply make changes to the case for ‘members’ (as this function also handles the register and login pages as well). Hope that helps.
Chad says
Is it technically possible? Yes, but not within the construct of the plugin as it is. It would take some customization to achieve that kind of functionality – possibly a significant amount of work.
Mikael Boldt says
Always use the latest version of WP!
When I updated WP to the latest edition all the problems disappeared.
My Excuse ?
I have been waiting for a local version of WP
thank you for a very nice plugin
Chad says
ahhh… a very true statement Mikael! And I wondered if that might have been part of the problem.
Richard says
Hi, great plugin! Is there a way of setting up user name and password to only one value that will never change (something like username:admin password:admin)?Also is it possible to have visitors just enter a password that will always be the same value and hide the username field in the login box ? Thanks so much!
Chad says
The answer to the first question is, of course. Although that’s not really secure, I can see how it would be applicable to various situations. Just create a user and distribute the login credentials as needed. As for the second, you could do that as well although I’m not sure why you would want to bother since that is essentially what is already built into WordPress when you password protect a post.
maxl says
Hey Chad, i was able to get a hold of the beta release of wp-members 3, and wanted to report an issue. In internet explorer 7 when navigating to the registration page, the page never finishes loading completely and just sits waiting for the server. The only thing i have enabled and different from 2.7 was the password field.
I’m seeing what i can find but wanted to report it to you. Maybe your aware of this and could provide some feedback. Or if you need any environment specific information then please let me know.
Thanks
Chad says
Do you mean WP-Members 2.7 rc3?
Mathew Mitchell says
Hi there,
Love the plugin, goes great except for one minor issue.
http://www.farthingtranslation.com/wordpress/?page_id=188 the plug-in registration page is set-up here and the form fields don’t line up with the field titles (basically they’re ‘one down’ from where they should be) which is causing issues as people get an ‘invalid’ email error when trying to sign up because they’re unknowingly entering their email in the wrong field.
Is there any solution for this?
Thanks!
Mat
Chad says
That is a CSS styling issue. You will need to work on customizing the CSS properties to integrate with your theme. Looking at your example, you’ll probably need to adjust the width of the fieldset (and the elements, since they are based off the width of the fieldset).
If you don’t know anything about CSS, you could revert to the non-CSS forms in the plugin options. However, this may be deprecated at some point in the future, so I wouldn’t rely on that.
More info on customizing the CSS is in the Users Guide and also here.
Heidi says
Hi.
I was wondering if there is any way to add a log out function to the member site, so that when a member is logged in it is also possible to log out again?
Chad says
There are several ways to accomplish this. First, if you are using the plugin’s sidebar widget, it already presents the logged in user with a link to logout.
I understand that not every theme utilizes a sidebar on every page (Twenty Eleven would be a perfect example). In that case, you would have a few other options.
There is a function in the plugin called with
wpmem_inc_status()
. While it is possible that this function will be deprecated at some point in the future in favor of something better, you could call that if the user is not logged in by placing the following in your theme where appropriate:Alternatively, depending on how handy you are with php, implementing your own customized logout would be relatively simple (and much better integrated) by echoing a link your blog domain with the query string a=logout. Something like: http://mydomain.com/?a=logout
maxl says
How can I find this out? The readme says “Stable Tag: 2.7.0” and is the only version number I can find.
Doug says
Just configured and activated the plugin for the first time this weekend. Many, many thanks for the Quick-Start Guide, Users’ Guide, FAQs, and support, and esp. for the addition of the email-change option, which BTW works perfectly.
I confess I have not looked at every single query on this page, but I did search the page for terms related to my problem but found nothing. Apologies if I missed something.
All the plugin’s functions seem to work perfectly on my site except that the required information new users fill out on the initial application form is making it neither to the users’ area (prior to registration approval) nor to the email that is sent to me as admin requesting registration approval (I’m using the Alert Admin and Moderate Registration functions). The only information making to the users’ area and the email to me are Username and email address.
I’m unsure where to look to address this issue.
Many thanks.
Chad says
The reason I asked is that your original question started with “i was able to get a hold of the beta release of wp-members 3” and there is no WP-Members 3. But there were three release candidates of 2.7 prior to the final production release, so I assumed that’s what you were talking about.
Are you using a caching plugin of any kind?
Have you tested without any other plugins enabled (to see if there may be something conflicting)?
Are blog url and the site url (in WP general settings) the same? In other words, is the blog in a subdirectory?
Chad says
It would be unusual that the user data wouldn’t be posting. Are you using a caching plugin of any kind?
Wan says
Hi there. Im a newbie web programmer. I want to change the form html so that the checkbox will be grouped. I have change it manually by changing the code in the wp-members-dialogs.php. Is there any better way to do this?
I dont mind hacking the code as this website is maintain by me.
Willem-jan says
hi,
i use your script for some time now but i wanted to make it a bit nicer, i am dutch and there was no translation of the script.
i use the plugin CodeStyling Localization for translation, but unfortunatly, i does not translating all the text. if you make an update, i have to translate about 50 words. why are they not seen by the localization plugin?
i found the words in WP-members-dialogs.php like “edit my information” and “Change password” on the settings page. the text “new user registration”
in wp-members-core.php i found ” edit your information”
and in wp-members-register.php i found “sorry, %s is a required field”
and so on, there are more like this. and there is more to find, because i am still not ready.
because i am not well trained in building scripts, i takes me some while to fine it and change. i have to lern all by tril and error 😉
also, something is that the width of the fields is fixed to 630… i have to bring that back to 560 to fit my page. can you make that in % ?
maby, i do something wrong and you can give me a tip to do it better. your script is easy to use and intergrate.. but this are some things to shape it it bit and translate it to an other language 🙂
hope you have a tip for me, or you can chage something in the script, so the parts of text will be seen by the localization plugin.
Willem-Jan
Colin Weir says
Hi Chad
Thanks again for the plugin. I notced yesterday that I had not been receiving notifications of new user registrations and when I did activate their registration they did not receive an email with password etc. I investigated various things and nothing resolved it. However I rolled back to 2.6.6 and it works again. It there likely I’ve missed out doing something while configuring 2.7?
Thanks
Colin
Doug says
Chad,
Thanks for the swift reply.
I am using W3 Total Cache but deactivated it while making these tests. Should I have deactivated it during the entire plugin setup? At what point does one activate it again?
I realize the following is a question for a different section of your blog, but I also cannot get the plugin to recognize the custom css style sheet I copied over (per your instructions elsewhere) into my theme folder; it shows up in my admin editor and is saved to the plugin options, but is not overriding the original. Could these two issues be related?
Thanks again.
Chad says
See Customizing WP-Members with Pluggable Functions.
Chad says
I’m not sure I understand your problems on the localization because the examples you gave are all localized. Is it possible that it is because you are using a plugin to manage the .po files? There is a Dutch translation available here, although it is somewhat out of date. You can bring this more up to date using something like Poedit.
As for updating the width, that is a styling concern. You should be making these changes in an external stylesheet rather than directly in the plugin. Any time you make a change in the plugin files, your change will be overwritten when you upgrade. WP-Members makes allowances for this by use of pluggable functions and allowing for outside style customizations.
Doug says
Chad,
I just checked:
When W3 Total Cache is activated, it blocks all the required information in both the notification email sent to the admin and in the users area except email and username; when deactivated, it allows all the required information.
When @3 Total Cache is activated, I can reload (Ctrl + F5) the users page and retrieve city, state, country, and IP address, but not First Name and Last Name.
Chad says
Hi Doug,
I have come across one other user in the past that had a similar problem when using W3 Total Cache, and unfortunately, the issue was directly tied to that plugin. So at this time, the only thing I can really tell you is that if you really need caching, then you’ll likely need to test a different plugin for compatibility, or go without caching. WP-Members is an actively supported plugin, so it is possible that at some point in the future I will discover a way to bypass this, but at this point I don’t have a solution for you.
On the CSS issue, did you set the location of the customized stylesheet in the plugin’s settings? If so, have you verified it is correct? You should be able to copy/paste the URL you have set in the plugin’s settings to your browser and view the customized stylesheet or, depending on your browser’s MIME settings, it might try to download it, either is ok. If it doesn’t show up that way as valid, then you need to recheck your settings. Depending on your level of understanding with PHP and WP, you could also just use wp_enqueue_style in your functions.php file.
Hope that helps.
Chad says
Hi Colin,
There was really no fundamental change that would make the sending of mail not work from 2.6.6 to 2.7. The fundamental change was the generating of the content of the email. The function calls all remained the same, as does the use of the wp_mail function.
I did have another user note that they were having a problem specifically with the user activation email (which you also noted), and this has been something that in the past, I have a few support issues raised, but I can’t find anything specific that is wrong. I am trying to track down what might be specifically causing this issue as I wonder if there might be some host issue with the mail headers or use of the php mailer (which wp_mail uses).
Long story short, there isn’t a known bug on this end, but I am looking into what might be the commonalities for the users that have reported problems. Could you contact me via the contact form and let me know the location of the site in question and also your host?
Mel says
Hi,
Great plugin.. just started using WP and love the flexibility of great plugins like yours.
Installed WP-members on 3.3.1 and so far works fine. setup a [members-area] page
which shows up on the menu and works fine.
My question is:
1) how can the members-area menu item only be displayed when a user is
logged in?
2) Will you be adding more shortcodes to do things like create user groups and custom roles?
Donation is coming after I get all this setup! Thank you for the assistance…
Mel
Chad says
1. This post describes the process for displaying different menus based on login status.
2. I am continually adding new features. While the items you have mentioned may likely be added in the future, I can’t guarantee if or when.
Hope that helps.
Doug says
Chad,
Many thanks for the response.
My previous comment is incorrect: it is only when the W3 Total Cache plugin is completely deactivated that any of the required information shows up.
That said, I will try to figure out which W3 Total Cache option (if it’s a single option rather than the entire plugin) is causing the problem by disabling each in sequence and testing the registration process. I’ll let you know if I find anything helpful.
I resolved the css path issue (thanks) but find — peculiarly — that the mere relocation and redirection of the wp-members css to the theme folder results in layout and font changes in WP Members (e.g., in the login and registration page) without my editing it at all, and yet I still cannot get my actual changes to show up. Could my theme css be overriding parameters simply because of that relocation?
Thanks.
Chad says
WP loads your theme CSS prior to plugin css that is enqueued, so if anything, the override would be the other way around. If you notice a dramatic difference, I would suspect that what you are actually seeing is the elements with no style applied. I took a look at your site and I think what the problem is that you have a space in your custom theme name (generally not a good practice). If you put the stylesheet location into the settings with the space not URL encoded, that would likely break the script. You need to use the encoded %20 for the space, like: http://www.carolineschelling.com/wp-content/themes/Caroline%20Schelling/wp-members.css
Doug says
Thanks for responding.
I changed the path and still cannot get it to work. I’ve tried altering the Username and Password fields in the sidebar widget:
#wp-members label { color: #000; }
#wp-members .div_text { padding-top: 4px; }
#wp-members .username, #wp-members .password {
border: 1px solid #1155bb;
background-color:#CC9966;
width:176px;
font:10px verdana,sans-serif;
color: #700000;
but get no change, at least to the widget.
Chad says
Well… you’re the first one to discover a problem with version 2.7! I’m not sure I would label this a bug, per se, because it’s not really something that programmatically doesn’t work, but it is something that’s going to need to be fixed.
In 2.7, one of the changes was to upgrade the sidebar widget to extend the WP widget class and therefore be multi widget compatible. Prior, once you applied the widget to a sidebar, it was unavailable for other sidebars which, for users of multiple templates and more complex themes, was a problem. The changes eliminated the id# wp-members that was used to apply the styles. I guess I didn’t catch this as the testing usually is done in the very generic TwentyTen theme.
I’ll be looking into how/if to correct this. I usually expect a followup release of fixes to be a couple weeks after the initial release. In the meantime, you can work around this by changing the ID in your custom stylesheet to widget_wpmemwidget-2 (I took a look at your page and this is the ID that is given to this widget instance – if you change things up on your sidebar, this will also change, so keep that in mind). You’ll want to be aware that there may be a fix in the next version that might effect this.
Doug says
Many thanks for the sleuthing and detailed response.
(1) “widget_wpmemwidget-2” does indeed solve the widget issue — but am I to assume that if you address this issue in the next release I will (or might) need to revert back to “#wp-members”?
(2) When you say “if you change things up on your sidebar, this will also change, so keep that in mind” are you referring to my possibly changing, e.g., the sidebar parameters or id in my theme css?
(3) Font-size: wp-members widget font-size seems to be defaulting larger than everything else in my sidebar. Is that a theme-css issue or a wp-members css issue?
Thanks again. I do appreciate the support.
Chad says
(1) Yes, it is possible. But I’m not sure yet until I look a little farther into the issue.
(2) If you move things around on the sidebar, or move the WP-Members widget out and back in again, yes, the number at the end could change. I’m pointing this out as a possibility “just in case”.
(3) That depends – Could be one or the other. Generally, if something is specifically defined in the theme but not in the plugin’s css, then you will have an inherited property, in which case you would need to define that property in the plugin’s stylesheet if you want to override what is being inherited. I find Firebug an indispensable tool for tracking down where CSS properties are coming from when viewing the final product in the browser – it saves a lot of time.
Wan says
Thank Chad. 😀
Willemjan says
Thank you for fast response.
i used now the translation form your site, and as you told me, it does not translate the new things. i have seen that POedit sees more than the plugin i use, i is not complete. i will see in to POedit or that has better compability.
if i have a good and complete translation of your plugin, i will give it to you!
the CSS file, i did changed how you told me… work perfect! this was a lack of my knollidge 😉
Willem-Jan
Doug says
Chad,
Many thanks for the response. I will try to be alert to the widget-id issue when your next update is available and to the widget-id number if I shift the sidebar items (which may happen). I will also try to address the styling issues.
In the meantime, I have experienced a problem with the “Forgot Password” feature. I have an unblocked Members Area and have pasted its URL into the appropriate WP-Members options field.
The text “Forgot?” now appears next to “login” in the widget, but it takes the visitor to the following message:
“The page you requested could not be found.” The URL is:
http://www.carolineschelling.com/members-area/%20%E2%80%8E?a=pwdreset
The text and link
“Forgot password? Click here to reset”
does indeed appear on the Members Area page (albeit partially hidden by the Password field, but that’s presumably a styling issue), but the link gives the user the same could-not-be-found message above.
Can you help?
Many thanks.
Chad says
Looks like when you pasted the URL into the settings, you added a trailing white space. The plugin should be trimming off that whitespace, but for some reason, that doesn’t seem to be the case here. Delete the extra white space at the end of your Members Area URL and you should be fine.
Doug says
Thanks for the response.
I noticed that in the URL as well, deleted the spaces, saved, and got the same result. I even tried deleting the / at the end of the URL. Same result. For some reason, the plugin keeps adding the spaces.
BTW: I’ve also noticed it takes 2 clicks to logout rather than one. Is that normal behavior?
Chad says
The plugin doesn’t add any spaces, it only appends to what is there. I took a look and it seems to be working now, so I’m not sure if you changed something since or if this might have something to do with the caching (where changes would not necessarily show up immediately). Also, on the logout, no – one click logs the users out. Again, that might have something to do with your caching plugin.
Doug says
Chad,
Many thanks for your extraordinary patience.
I deactivated W3 Total Cache and manually cleared my cache (Firefox), then reactivated W3 Total Cache:
The Lost Password feature now functions correctly, even with W3 Total Cache activated.
My original problem above (the required information not being included in the applicant’s Users Area or alert-admin email) remains when W3 Total Cache is activated, so I will, as I said, try to go through W3 Total Cache’s options one by one and see if I can identify the problem option. I’ll certainly let you know if I do.
In the meantime, I’ll move on to restyling things in the custom css.
Thank you again for your patience.
Priscilla says
Hi! Thanks for making this plugin! I have one problem, though: New people registering for my website aren’t receiving emails with the computer generated passwords. What’s going on? Thanks again!
Chad says
Check the email tab in the plugin’s settings. Is there content in the messages?
Ken says
Hi Chad,
Great plugin! I have tested a handful of membership plugins and wp-members is by far the best! I am implementing it now to my site and there is just one thing I would love to do but can’t seem to figure out the way ( if there is any).
From what I understand, when I restrict a post, viewing of comments are restricted as well and I was trying to figure out a way to show the comments only while still restricting the actual content. There is a “Show excerpts” option which does it for excerpts and was wondering if there is a workaround for the comments.
By the way, I still do want to limit new comments to registered users only ( which I believe can be set with the default wp setting).
I have been looking at past comments but couldn’t seem to find a solution. It’ll be great if you can help me out with this. Thank you in advance!
Chad says
Hi Ken – thanks for your comments. I’m glad you like the plugin.
At this point, the way the comments work is the way the comments work. In the old days of the plugin, there was a code snippet that needed to be added to protect the comments. Overtime, some new WP hooks allowed that to be integrated into the plugin. However, with the new(er) comments template in WP, the entire process is handled in a different way than it used to be. That’s a long way of saying, right now, comments are blocked unless the user is logged in. There isn’t another option in the plugin.
However, in the future, the way that process works will be addressed and I’ll be adding more flexible options to the process. I can’t tell you when that will be, but I can say that it is something that is on the project list.
Debra Bellmaine says
This is an excellent plugin, thank you for developing and maintaining.
My client would like the reset password link on the login form. (He doesn’t want to make the member mgmt form available.)
What is the most straightforward approach to doing this. I’m on your v. 2.7.0.
Chad says
There’s not really a straightforward way of separating the two. I’m sure your client has his reasons, but without the members area available the user has no way of updating their information, including changing their password. As a matter of security, the password reset sends a random password to the user’s email address of record. Without the other behaviors of this page, the user would not have the ability to change this to something they could remember.
chimi says
respected members, how a registered or unregistered user could see the member list the one is registered? and i would like to add the picture option in wp-member form. please help me out thanks. Its very very urgent
chimii@gmail.com
Tina Swift says
Hi,
Your plugin is helpful. But i want ask you a problem please help me.
My blog is a music blog, i want show a content ( Review of album, Biography of artist…), and hide the link download of album. How can i do it.
Thanks so much
Chad says
WP-Members does not have a built in function for displaying a list of users. There isn’t a process for adding a picture option – however, WP natively supports gravatars (see: http://codex.wordpress.org/Using_Gravatars)
raman says
Hi Your Plugin Is Awesome.
But i have a issue, what if i ant to lock “download links” in my post such that they have to register to download my content.Means it should be like below:
Uploading.com:-
“You Must Be Register/Login To See Download Links”
I Will Be Really Helpfull And Already donated You 🙂
Thanks
Regards,
Villatainment
Chad says
You can block any content within a post or page by using the status shortcode as follows:
[wp-members status="in"]This is the protected content...[/wp-members]
This shortcode and all available shortcodes are listed in the Users Guide.
Note: in your case, this does not prevent someone from using a link once they know it. You are just using the plugin to mask the link. If you want to lock it down further than that, you should restrict the link from being accessed from anything other than the page you have it on (that way they would have to click the link on the page, and have to be logged in to do so). To do that, you should how to use .htaccess to prevent hotlinking.
Chad says
The answer to your question is the same as to Tina (see above)
Joe Greenwood says
Hey Chad, again, great plugin … just want to shout out a big THANK YOU for the ‘choose a password’ functionality at registration. That is a great enhancement.
Here’s a challenge for you to think about tomorrow: allow registered members to sign-in with username OR email … not urgent, but like the ‘choose a password’, would be a nice user-friendly enhancement.
Side-note, I modify the code in your sidebar widget to render the login form at the top of our site.
Cheers!
Joe
carolina says
hi, i’m working my way through this plug in, which so far i love, but i have 1 problem:my blog has 2 columns, and when i put the “log in” and “register” form, my right column went to the bottom of the page!what can i do?thanks in advance!
Oakshaw says
Hi Chad,
Great plugin!
One question though – is it possible to activate users but not send them a password? I have around 100 users that I’m bulk adding to the database and randomly generating passwords for and as soon as I click to ‘Activate’ them via your plugin its sending them another random password! If there was a way of temporarily removing the feature to send them a password from your plugin for instance, activate them, then add the password feature back in that would help?
Any advice or help you can give me would be appreciated!
Chad says
You could spend some time adding the activate flag to the usermeta table, but that would probably be more trouble than it is worth. If you want to modify the plugin so you can activate these users without resetting the password and emailing, you could make a simple edit to wp-members-admin.php, then change it back when you are done.
In wp-members-admin.php, find the function wpmem_a_activate_user. In that function, comment out the $wpdb->update line (which is where it puts the new password in for the user) and comment out the wpmem_inc_regemail line (which is what sends the password). Leave the update_user_meta as that is what puts the active flag in the usermeta record.
Hope that helps.
sudheer says
Hi, Your plugin was really great.
Actually my requirement:
Membership Account to user that user can Post Ads, Edit Ads and delete Ads in particular categories.
and he can see his added posts once login.
Please help me.
Oakshaw says
Thank you for your swift reply and great instructions – sounds good and fairly easy to modify. I’ll give that a try!
kind regards, andthanks again for a great plugin.
Jaime says
When I got to my site on IE I can’t input anything into the fields, i am unable to type in them, is there a way to fix this? thanks!
Chad says
Jaime – email me, or comment here (email is better), but don’t do both at the same time unless you don’t hear back from me.
Jose says
Hi. I recently installed the plugin and it does exactly what I want, but I have an error when I attempt to login with a user, or simply with an unexisting user/password in the sidebar widget. It’s an IIS error (Windows hosting):
Error HTTP 405.0 – Method Not Allowed
No se puede mostrar la página que busca porque se está usando un método no válido (verbo HTTP).
I think it could be some configuration/permission fault, but I don’t know why. I searched by google but nothing found. I hope you can help me.
Thanks. Jose.
Chad says
Jose – I’m not 100% certain this is your problem, but there is a problem with WP on IIS using POST requests from unmapped file types. If this is on a hosted server, you probably would be better off looking for Apache hosting. If you control the server, then you need to make sure you have IIS filetype mappings for .php set to include POST (I believe GET is the default). That’s about all I can tell you…
Jose says
Hi Chad. Thanks for answering. I control the server and I’ve seen in mappings that .php extension is set to ‘All verbs’. Well, Now I just noticed that I can’t login from the side widget, but I connect ok from the register form. If I lock all posts by default and then I logout, when I want to see some post the register form appears, and then if I login from here there’s no problem. Could it be a problem with the side widget?
Jesper says
is there anyway to use this plugin with a custom theme?
I’ve installed the plugin and added a custom field with block with value = true.
however, the page remains unblocked.
Chad says
Of course – it is not theme dependent. You can customize the CSS to fit into pretty much any theme.
99% of the time, the answer to the problem you describe is that you have the “Show Excerpts” option in the plugin turned on but you are not using a ‘more’ tag on the content.
carolina says
it’d be great if SOMEONE can provide with an answer! thanks!
Jesper says
Thank for the quick answer..
After playing around with it – it seems that it the custom fields on the article level that doesn’t work for me.
I’m only interested in one page (a portfolio page) functioning as a “members area” and have hence not selected block posts and pages by default. As I understand this would allow me to simply add a custom field one the page with “block” and value = true.
For some reason this doesn’t work and the portfolio remains open for everybody.
Chad says
You will probably have to do some tweaking to the styles to make them fit.
See http://butlerblog.com/2011/07/25/customize-the-wp-members-stylesheet/
Chad says
While the plugin was not really designed with that in mind, you could probably achieve that by changing the WordPress default role to something that can edit posts. This setting is found under Settings > General
marshall says
I have a same problem with one of my client website.
It was working fine earlier.
what could be the reason?
Pernilla Ekberg says
Very helpful comments. Been thinking about installing this plugin, and found this information very useful. Thanks!
Mike says
Installed your plugin and all is working smoothly… getting emails to admin for activation and then username & password to new member afterwards… no problem. What I am looking for is a way to ensure that the members create a strong password when they change it. I’ve installed a plugin called Login Lock which worked with WP but not with this plugin.
How can I enforce that passwords contain UPPERcase, lowercae, a number, and a special character, and have a minimum length?
Chad says
Hi Mike – there isn’t a way to do that at this time. However, I have been adding hooks to the plugin and will be adding more in upcoming versions. I’ll look into it.
Kevin says
Quick question…
I am using the plugin and for 90% of my users that have registered there are no problems. However I have had feedback from a few people that the system is not allowing them to register. One person said they got a message back stating that their email was invalid, bit I was able to register them with the same email address. Does this have something to do with their cookie settings, or why would some people be unable to register? Thanks for any input.
Chad says
If most users are able to register with no problems, I would say that the others probably fall into the category of user error. The only part of the field validation that is strictly my own is checking for empty required fields. The rest uses WordPress functions that validate based on WordPress registration requirement. For example, in the case of email, two functions are used: is_email and email_exists. is_email validates that the email address has things like an “@” symbol, that it has at least a period in the domain following the “@”, etc. If a user typos their email address and it is not a valid address, it will throw an error. email_exists checks for the existence of an existing user with that email address. Likewise, usernames are validated to suit the wp_user table requirements, such only alphanumeric characters, etc; and are also validated to be unique.
The 2.7.1 beta release does have some improvements to the form validation, but these were actually related to rare exceptions making it through the validation process, and not the other way around.
So generally, if a user gets an error message during registration, they did something that didn’t validate. The two exceptions to this would be if you set a field to be required but did not have it set to display. Also, if you have turned on reCAPTCHA but haven’t entered valid API keys. But this would effect everyone, so if you have users that are able to register, then 99% of the time, it’s going to be user error.
Saint Castro says
Hey Chad,
I got another question for you. I’m trying to block a couple of pages, and they have the custom fields set to BLOCK TRUE, but they aren’t properly blocked. I even have the settings set to block all pages by default but I can’t seem to get to the root of the problem. One of the pages that are set to block is actually blocked but the other seem to be not working properly.
Chad says
If what you put here is what you used, BLOCK TRUE is not the same as block true. If you have used uppercase, you’ll need to go into the database and remove those meta values manually.
Kevin says
Thanks for the quick and thorough response. I would tend to agree that it is user error since I have tested it on multiple computers and it works perfectly for me. I appreciate it.
Matt says
Is there a way to have a logout button on the sidebar without having it be a login form before the user signs in? With the sidebar widget enabled I have 2 login forms on the page. I’d like to just have the login/sign up form on the page and then a simple logout link on the sidebar. Thanks.
Chad says
Any link with the querystring ?a=logout will do it.
Mike says
Thanks Chad… Great plugin… looking forward to the enhancements!
Susan says
Hi Chad,
I have just installed WP-Members…need help with a couple of things please.
1) Even though I have Moderate Registration unchecked, I have to approve new registrations(receiving approval email) before they get the email with password, etc.
2) The email with link to login points to register, instead of login, and the link for change password points to members-settings-area instead of just members-area…Can you tell me where/how I correct these? My pages and links look correct, just not the info being sent in the email. Thank you in advance!
Chad says
Hi Susan – I would double check your Moderate Registration setting as it would be highly unusual for that to be unchecked and still cause you to have to approve registrations. I can’t really think of a scenario in which that would be the case. Are you using any type of caching (plugin or otherwise) that would cause this to display an old value?
On the email, I would ask a similar question in regards to the members area. The [members-area] shortcode in the email will be replaced with whatever value you have set in the plugin’s settings for the location of the members area. But the shortcode doesn’t have to be used – if you can’t get it to be what you want, you can just put the appropriate link in the email.
Same thing with the login, although this one has a slightly different reason. The shortcode [reglink] puts in the url that the user registered on. The reason the default email says “login here” with that url is because in the standard plugin process flow, the user would be registering on a content page and this would bring them back to the content they were trying to view. However, if you use a register page, this wouldn’t necessarily make sense as is. You can customize this anyway you wish. Since you have set up a login page, I would dispense with the shortcode and just put in the url for the login page.
Susan says
Thanks for the speedy reply 🙂
Yes I do have a caching plug-in but thought I had cleared it. I also unchecked notify of new registrations and now they are coming straight thru. I was assuming it was just a notification, not in conjunction with having to approve? Not sure what fixed the problem but thanks for your help. I will also take your advice on the other items. Thanks again!!!
Shand359 says
I recently started using your plugin due to the fact I can customize the fields. It is a GREAT plugin, in my opinion. does exactly what I want it to……except 1 thing…
When I update to the new pluging from v2.6.6 I cannot log into the Admin panel…….
Keeps kicking back to the user password page with Incorrect User password warning…….
If I remove the plugin by ftp then login I can get in fine, I reinstall 2.6.6 and all is working again…..
Chad says
There is one setup possibility where you may get an incorrect password warning when going to the wp-login page, but you should still be able to login. If you are getting that message when going to the page, but haven’t logged in, try logging in.
Shand359 says
Thank you for your reply…. The problem is that I cannot login. The plugin wont let me. Keeps returning a password error…… I have now just reverted to original members register method for WordPress until I can find a resolution to this problem……
Bill Clune says
Nice plugin seems to work well but… we have noticed when we try to edit some user info our browser sticks in a blank page but the data is updated. also some extra fields we added to figure out who some of these folks are just wont update. any clues??
Chad says
Thanks – I’m looking into this issue with one other user as well.
Bill Clune says
Chad I have an update on this at least a partial. The extra field issue does not white out the browser and it only happens on check boxes that not visible to the user. that is one we really hope to figure out.
Fay says
Hey again. I am trying to change the “sorry, but you do not have permission to view this content” text… and I can’t remember where to find it. I could have sworn I found it somewhere!
Thank you!
Doug says
Are you talking about the Dialogs section under Settings?
Anita says
Hi there,
I have been looking at solutions for a equestrian video service website. They want their paid patrons to have access to their own videos (not videos of others) so would have to have to ability to be restrictive to where a member has access. After research I thought your plugin would be the answer for what they need. Would it be able to accommodate my clients needs? If so I would be more than happy to make a donation!!!!
Fay says
@Doug, no. I put specific working in that dialogs section that is not currently showing on my site. Is it possibly a theme thing? I only have 1 registration type plugin installed.
Doug says
I assume you mean “specific wording,” and that you do mean the Dialogs section, since that is really the only section in which you can change such things (or am I wrong?). Make sure you save your changes and then clear your cache.
Bill Clune says
Anyone have a clue on this one??
Chad says
Bill – I’ll take a look at it
Fay says
@Doug, I figured it out… it is a theme thing. Thanks though.
Ran says
Sorry if this has been asked and answered before… Are user groups supported by your plugin, or are all registered users treated as one group? In my case, I have several types of user membership roles/groups (say “bronze”, “silver” or “gold” member), and I need to present different content to each group…
Thank you in advance
Chad says
Hi Ran – at this time all users are treated as one group.
Ran says
Thank you for the quick response!
Ran
Fay says
Ok, new Q. I have noticed over the last few days that members keep auto deactivating. Is this a bug that anyone else reported?
Patski says
Hi, Thanks for a great plugin – however I’m reading the Action and Filter Hooks section in the documentation but struggling to understand where the wpmem_login_redirect code to set up the redirect should go?
Chad says
You generally would put hooks into your theme’s functions.php file.
Patski says
Thanks for the uber quick response~! I did that and it works perfectly. Thank you!
One quick question, I’m using this without the registration as we are supplying the logins and password. I would like to add a login link to my nav bar so I have created a blank blocked page in order to show the login form which together with the redirect sends the logged in user to the right place now but when I view it the login form doesn’t appear. If I create a blank blocked post it does…
I have other pages which behave properly and I tried putting some text in my post but still no joy.
Any ideas? Thanks in advance.
Patski says
Funny – seems to be working now – must have been having a funny five minutes!
Thanks again – just need to work on styling the form now…
Chad says
You could also create just a login page by using the shortcode [wp-members page=”login”]
Patski says
Thank you Chad – don’t know how I missed that! Just sent you a donation!
Luc says
Hi, big thanks for the useful plugin!
I’ve got a (permissions) problem: if a logged in user likes to access the members-area page (created with [wp-members page=”members-area”]) to edit his profile data, wordpress can’t find the page. If the user is logged out the same page displays the registration and login forms. An admin user, however, can access the page when logged in. If I add the “manage_options” capability to the role of the user he can also access the page.
How can I give a custom user access to his profile (members-area) without having to add the “manage_options” capability?
Thanks in Advance!
Chad says
I did receive your donation – thanks again!
Chad says
To start, you should make sure that if you are blocking pages by default, that you have unblocked the members-area page. That could possibly be the problem.
It could be that you have a compatibility problem with another plugin. Evidently you are using a role manager plugin. I would test it with that disabled to see if that’s the problem (it shouldn’t be, but I don’t know). Also, if you are using a caching plugin, you could run into problems there so if you are, I would again test without to see if that’s it.
kurtzino says
I’ve the same luc’s problem. I’ve installed WordPress User Frontend plugin
and all works fine when the plugin is deactivated.
You’ve some suggestions for this? Thanks
kurtzino says
Ok. I solved that problem
maja says
Hi Chad,
Thanks for your plugin. We’ve been using your plugin since June last year. Recently, we’ve upgraded to the latest version last Friday and then the new one today.. Now, I’ve noticed that new members (since Friday) were unable to receive the notification of their password thru their registered email. We have to do the backend Resend Welcome Email that provide them with their password to log in the site. I’ve checked the domain’s email and try to do some test if there’s some problem. It works pretty and no problem sending and receiving from either. So, the site’s main admin registered a new account and she noticed she’s not receiving an email for password and she didn’t receive also any notifications for new members. We’ve change the wordpress default email from using “Lexipixel” suggestion (see here: http://lexipixel.com/wordpress/content-management-systems-cms/wordpress/change-wordpress-from-name-and-email-address#more-626) in which we add the code at Theme’s function.php.
So, what suggestion that you can provide?
Hope for your effective solution. Thank you.
Chad says
First, you should double check to make sure there is content in the email tab for the plugin. If for some reason this did not load at install, you will need to add it. (See this post for more information.)
If email’s were being sent before, it is possible that this is your problem. It could be that when you upgraded, the default content for the emails did not load properly. If that’s not the case, I would next suggest using an SMTP email plugin such as WP Mail SMTP.
John BR says
Hi Chad,
Thanks for the super awesome plugin. This enabled me to set up my membership site exactly the way I want it, tweaked for maximum conversion and the best user experience.
You are doing a wonderful job, very helpful too. You have my support always.
Cheers
John
Luc says
Hi Chad
Thanks a lot for the quick answer. It indeed seems to be a compatibility problem with another plugin. I made a fresh wp install with the wp members plugin and all works fine now. I’ll add the other plugins one by one and then I’ll see when problems will arise. I’ve got the “user role editor” plugin running. Wp members works fine with that one…
Thanks and cheers
Ingo says
Will WP-Members work with multisite installations of WordPress 3.x?
Chad says
It’s not supported, so it’s hit-or-miss at this time.
Mat says
Hi,
very useful plugin. Thank you. Great job.
Is there a possibility to show a menu widget in the sidebar, only if members are logged in?
I want to have a individual menu in the sidebar that is restricted and only visible if the users are logged in. Didn’t find a solution yet.
Thanks and greets from Austria…
Chad says
Yes, you could do something elaborate with is_user_logged_in like:
Or, you if you add the shortcode filter to your functions.php file (or maybe your theme already allows shortcodes in sidebars), then you can use the [wp-members status=”in”]…logged in content[/wp-members] shortcode to do it (this shortcode is discussed in towards the end of the users guide). You can add the filter by adding the following to your theme’s functions.php file:
Mat says
Hi Chad, thanks a lot!
Works perfectly with the add_filter function and a shortcode in the sidebar!
Bory says
Great plugin!
Exactly what I was looking for!
I have only one issue that I can’t seem to resolve. On my registration page I see the following text above the user registration form “[wpmem_txt][/wpmem_txt]”.
Can you please inform me where I can change/ remove this in the code?
Thanks in advance for your help!
Chad says
This is a shortcode that is internal to the plugin that keeps the wpautop and wptexturize functions from putting breaks into the forms. Are you running any other plugin’s that utilize shortcodes, or are you using any other shortcodes on that page?
Charla says
Thank you for this plugin; seems to be just what I need for a private site.
I uploaded it a couple of days ago, and my husband and I have been testing it. One problem keeps popping up. Twice now I’my WordPress admin login has failed, saying I’m using the wrong password. I have to go into database administration and reset the password; nothing else works.
This has happened only since I activated WP-Members. I’d like to keep it, but prefer not to have to keep resetting the password the long way. Any solution?
Thanks in advance.
Chad says
Please make sure you are using the most recent version.
Dale says
How do you get to the members area page? I created a members area page, with the shortcode for it, and the page works. I put the URL of the page into the WP-Members Settings Option page in the Members Area URL: field. There is no link to it in the WP-Members Sidebar Widget.
Chad says
Hi Dale – the sidebar widget only uses the Members Area link for the “forgot password” link. If you want to add a link into that widget, you could use the wpmem_sidebar_status filter (action and filter hooks are discussed in the Users Guide). But more common would simply be including the page in your navigation menus.
Meghan Guillen says
Hi Chad,
When I have the WP-Members plugin activated and I log out (as an administrator), I’m unable to log back into the site at all and have to de-activate the plugin using phpMyAdmin in order to return to the dashboard. Then if I activate the plugin again it will work fine until I log out and find myself completely blocked from the dashboard again. I’ve been really loving this plugin except for this part. Any thoughts? Could it have something to do with having the wp admin bar disabled for non-members?
Thanks!
Meghan
Chad says
If you are using moderated registration, you need to make sure that the admin accounts are activated as well.
Meghan Guillen says
Thanks! That seems to have worked!
Kellie says
hello! I need the login page with the WP-login box to redirect to a certain page after login. I have tried editing the w-members-core.php to redirect and editing the functions file with no luck. The login page is: http://www.ual.morriscreative.net/?page_id=74
please help!
Joel Sellnau says
I am have some issues with the latest version of Wp-Members. When creating the members area page using the correct shortcode I get a page like this http://devnet1.com/awake/members-area/ where the shortcode is displayed on the page along with the log-in or sign-up form. I want to know how to get rid of the shortcode being displayed. This also happens on the register page as well. Any ideas.
This only happens when you are NOT logged into the blog. When you are logged in the page appears fine without any shortcode being displayed.
Chad says
I would say DO NOT edit the core files. If you do that, you will simply overwrite your changes when you upgrade. That goes for any plugin, not just this one. WP-Members is designed to be very exstensible. There are instructions to do everything that it can do in the Users Guide.
What you want to use for this is the login redirect action hook wpmem_login_redirect (outlined in the Users Guide and discussed elsewhere on this site). An example would be to add this filter call and function to your functions.php file
Chad says
Is there more than one shortcode on the page?
If pages are blocked by default, is this page unblocked?
Are there any other plugins installed that utilize shortcodes?
Joel Sellnau says
There is no other shortcode being used on the page. The page is unblocked. And there are a number of other plugins installed that utilize shortcode and custom fields. These plugins must remain untouched and installed.
I was just hoping you had come across this before and possibly had an easy fix.
Chad says
You may need to test with the other shortcode plugins deactivated to see if there is a conflict. WordPress runs the shortcode engine only once, so if a given shortcode is rendered earlier in the process than the WP-Members shortcodes and does not continue the process with
do_shortcode( $content )
, then any shortcodes that after will not be rendered.roberto says
Having issue after user registration using version 2.7.2. The following message shows on top of the confirmation (congratulations…) registration page. The error is: “call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘Array’ was given in …/wp-includes/plugin.php on line 405”.
Please advice.
roberto says
I have a temporary solution. After some debugging code I added to line 405 of plugin.php i found out that the function call -> call_user_func_array($the_[‘function’], array_slice($args, 0, (int) $the_[‘accepted_args’])); on line 405, expects a function name on the first parameter of functions, instead $the_[‘function’] contains an array which causes the problem: Array ( [function] => Array ( [0] => [1] => updateProfile ) [accepted_args] => 1 ) . As a temporary solution I added a check prior to that function call to check if $the_[‘function’] is an array, if so dont execute the function call to call_user_func_array. The error then goes away. Of course this is only a temporary solution as I dont like changing WP core files.
Chad says
Are you using any of the WP-Members action hooks during registration?
roberto says
Chad,
Thanks for you quick response.
I’m using wp-members as is, not changes to the core code files. My settings are as follows:
Notify admin = Yes (clicked)
Use reCAPTCHA = Yes (clicked)
Members Area URL: a valid url
Register Page URL: a valid url
Everything else is un-clicked. I do have additional fields on the fields tab.
Chad says
The area you are getting an error is in WP’s do_action function, which is the engine for action hooks. Since you are not using the WP-Members action hooks in the registration process, it seems unlikely that’s the source of the error, as to get to the point of the function that is breaking down, they would actually need to be used.
I would suggest testing with any other plugins deactivated first to see if you still receive that result. If not, bring plugins up one by one, retesting each time to see if you can isolate where the conflict might be.
roberto says
Chad,
Thanks again for your quick response.
I will take that approach and see what I can come up with.
The current hack to check for array and bypass the function call, if function name is an array, work nicely and the registration process completes normally.
By the ways, I can not thank you enough for this plugin. We are going to use for a non-profit organization and it does its job very well.
Regards,
Roberto
Joel Sellnau says
I was able to fix it using the following shortcode instead
in the HTML area of editing the page. The same worked for the members area.
Chad says
That will work for now. But I would recommend tracking down exactly what the cause is. Those legacy shortcodes are scheduled to be removed from the plugin in an upcoming version.
michael says
I should like to be able to modify the list of users shown under Users > WP Members > WP Members Users, so that it displays other fields than those natively offered. I have some custom fields it would be nice to be able to display and it would be good to be able to switch those on and off – a bit as is possible with some fields in the Users > All Users display. Is there a bit of code/filter tinkering that might help me with this, please?
Lexi says
Ever since I updated the plugin from around late January this year I stopped receiving email notifications of new user registration (new users registering in my site requires admin approval). Would be nice to have this feature working again, so I can immediately activate new members who are qualified to access my site.
sumon says
Hello experts.
I am a new user. So please help me. I want to show my posts to everyone. But when anybody tries to make a comment he/she must be registered. How can I do so? Currently my posts are not viewable to everyone. When anyone click on my posts, they view the page of registration page powered by WP-Members. But when I allow everyone to view the post they can view it and if they want to reply, it shows the log in page of wordpress. But I want to show the registration page of WP-members here.
Anybody will help me?
Chad says
Updates to that process are on the project list. I expect to make the fields that are show on that screen customizable. However, I don’t have an ETA on when that will be worked in.
The functions dealing with that are in wp-members-admin.php and are in the section for Bulk User Management. While you can tinker with them to suit your needs, be aware that there is more than one function that would need to be modified and, as these functions are not pluggable, any changes would need to be reapplied in an upgrade.
Chad says
If you have not upgraded to 2.7.2, you should do so. This is likely your issue: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Chad says
The links that you are referring to are part of your theme’s comments.php file. You can update accordingly, or set up some type of redirect.
michael says
Many thanks for your prompt and , as always, helpful reply.
Aurora says
Thank you very much for this wonderful plugin that even a non-developer like me could put together and activate. I also managed to add moderating for each registration.
Only, I’m now left with a pesky little problem of double-registrations (on the part of some subscribers who couldn’t wait for me to moderate their original registration before adding another one). Their successive registration may have a slightly different email address but I can see they’re the same person. I wonder how I could delete these entries (and also rejected applications that no doubt will soon pile up).
Lars says
Hi!
I was wondering if there is anyway to remove the text block
” New User? Click here to register ” since their not allowed to register anyway.
I’ve found the textblock “wp-members-dialogs.php” but when removing it nothing happens.
And a second question, I only want the Login-box to show on the user admin site before loging in but at the moment the text-blocks on my page are showing as well.
Chad says
You can delete users via the WordPress users list under Users > All Users.
Also, I would suggest that if you haven’t already done so, you should adjust your successful registration message and also the content of the initial email to indicate that registrations need to be approved. This may help cut down on the number of people that double register.
Chad says
That text only shows if you have set a registration URL in the plugin’s settings. So my question would be, if you are not allowing users to register, why would you put a url into that setting? I would also HIGHLY advise against making direct edits to any plugin unless absolutely necessary. When you upgrade the plugin, your changes will be overwritten. If you look at the development of WP-Members, you’ll see that the plugin is actively maintained and there are frequent updates. Some of these are new features, but some are fixes and security issues, so it’s important to be able to stay current with the releases.
On the second question, you’re going to need to clarify.
Aurora says
Thank you so much Chad. That makes life a little bit easier.
I have changed the registration text to include the moderation procedure but I guess some of them just don’t read them these days..! 😀
patricia says
hello, thanks for your plugin! is there any way to add a “logout” link without using the whole sidebar widget?
Chad says
The simplest method is to have a link to http://yoursite.com/?a=logout
Henry says
Hi Chad,
I have a question…
How do I know if subscribers added by signing up through WP-Members to my wordpress site are getting notified of new posts on the blog section of my site?
Also, on the custom email settings, is it possible to add an image to the email?
I appreciate your help with these questions.
Thank you!
-HENRY
Chad says
Henry – your first question is a fairly open one. WP-Members does not manage anything in that regard, so it depends on what you are using for that. I would say start by having a test user for yourself and monitoring that.
On the second point, at this time, the email is plain text only. I may add html in the future, but that’s TBD.
Pierre says
Thanks Chad for this useful extension. It seems to work well… except that lately people who want to register seem not to receive the email message with their password. I’ve tried for myself, and the message never arrived. It worked OK for earlier users, though. I’m using version 2.7.2 with WordPress 3.3.1. Where could the problem come from?
Chad says
Verify that there is content in the emails in the email tab of the plugin settings (see: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/).
Pierre Johnson says
Thanks Chad. But my issue is another issue than the one pinpointed in your article. My issue is that new users don’t receive the notification with their password after registering. I’ve updated my “email” section however.
Chad says
If users were not receiving email notification, that is exactly the problem outlined in that post. By “updated” your email section, do you mean that there was no content in the emails? If so, that was the problem. If you checked the this and there was in fact content in the email settings, then your issue is probably with wp_mail, the WordPress function that sends email.
Pratik Chourdia says
Awesome plugin,
But if i just want to manage members to be as subscribers only. will this plugin help me ? also the users will able to upload their images ?
please reply, thanks in Advance 🙂
Chad says
Yes you can manage them as subscribers only. No they can’t upload images via anything in the plugin but that doesn’t mean they couldn’t via some other process (also, WP already has gravatar capability built in).
Lars says
Thanks for the plugin. It looks really wonderful from the description!
There’s only one thing: I just can’t get it to work. There’s no ‘Register’ link on my login page. I’ve unchecked the WP ‘Everyone can register’ as your guide told me. I’m kind of a noob on this, so sorry if this question is the dumbest you’ve ever seen 😉
Aurora says
Been running this plugin for the past week, and it has been running perfectly. Thanks once again for this wonderful plugin.
Now to a teeny little problem… I wanted to make a post (both topic and article) that’ll be visible only to members after logging in. So I added the custom field ‘block’ and gave value as ‘true’. But for some reason the entire post and topic is showing anyone visiting. Have I missed something? 🙁
Chad says
There are three optional pages you can set up: login, registration, and members area (for updating registration data and resetting passwords). IF you set up a registration page and/or members area, AND you set the location (URL) of those in the plugin’s settings, there will be a register link and a forgot password link in the login forms.
A login page and registration page are really very optional because the plugin already shows these two forms to users in place of blocked content.
Chad says
The plugin will show excerpts (and titles) on archive templates (such as category, tag, or monthly archive pages). If you are not using the ‘more’ tag for posts, then you’ll just be showing full content in these areas.
Lars says
Thanks for your reply.
I’ve now created a page with [wp-members page=”register”] in the body and copied the url of that page to the plugin’s settings. I also unchecked the block posts and block pages for sure. The registration link is not showing up though. Do you have any other suggestions? And how do I make the registration fields appear on the registration page?
Aurora says
If I understand you right, you’re saying it is not possible to mask complete posts – only excerpts.
If that’s the case is there a way I could make a whole page visible (e.g., a members welcome page) only after they log in? Non-members shouldn’t even know that page exists.
My WP-members options have ‘show excerpts’ in posts and pages checked. Because that is how I want my posts to appear and I have no problem with that. Thanks for the help.
michael says
Check this out: WordPress Access Control Settings in the WP Plug-Ins repository
Lars says
I think I’ve figured it out already. There was a conflict with another plugin.
So I can’t make a link to your registration form on the WP login page? Do I understand this right?
Aurora says
I’ll try this out. I hope it doesn’t clash with WP-members. Thanks for the tip Michael. ..
michael says
I use both plug-ins on one of my sites and they co-exist quite happily. But post back if you have any issues – if I can help, I will.
Bill Clune says
Chad wondering if you figured it out. our manual tweaking of the WP database is becoming an issue
Chad says
You can’t make the plugin put the registration form on the wp login page, that is correct. But you can certainly use that by adding fields to the WP login page registration process to match what you are using for registrations. You would do this using the register_form hook: http://codex.wordpress.org/Plugin_API/Action_Reference/register_form
Chad says
are you using any type of cache plugin?
Lars says
Thanks! I’ll try that.
Great support.
Dave says
I’ll try again on this.
The military-related organization I’m affiliated with has 2,500 (+/-) members. Dues are payable on an annual basis. In addition to our paying members (some of whom are delinquent on their dues and some are not), we have a small number of ‘comped’ members (local/state/national politicians).
At present, we have the current months newsletter along with the past five months (total of six months) on the website. We also produce an annual members directory which is mailed to all current members.
What I’d like to do in restrict the current month’s newsletter and the member directors to dues-current members.
I’ve never done a website that included a restricted access page, so I’m at a loss as to whether WP-Members will work for what I need. From what I’ve read, the plugin generates the unique member’s password and e-mails it to them, so that part is not a problem. Where I’m stuck is:
1. but how does the plugin determine whether an individual is dues-current or not?
2. how do I handle a member who goes delinquent?
3. would I be better off having the current month’s newsletter and the directory listed on the main page, which means a member would have to login for each, or should I have a menu link to a ‘Members Only’ page with the newsletter and directory both on that page?
4. will WP-Members handle the number of members we have?
This is kinda’ long-winded, but I want to explain as much detail re: what I need.
Thanks,
Dave
Chad says
Dave,
The best thing for you to do is review the Users Guide and test out the plugin. As far as your specific questions:
1. Custom fields can be used for admin use only, I would set a custom field for this. However, validating this wouldn’t necessarily be automated.
2. Depends… users can be deactivated.
3. Depends… However you want to do it. Only one login is needed, though.
4. Yes.
Dave says
Chad,
Thanks for the quick reply.
I’ve got some “honey do’s” starting me in the face and as soon as I get them completed, I take the plugin for a trial run.
Dave
Dave says
A thought just cam to mind. Can I set up our membership person so that he (and I as Admin) can both add a new member and deactivate a member that goes non-current? I would want to restrict his access to only that area.
anuraag says
wHY EXISTING USER LOGIN OVERLAPPED
http://bharaghar.in/registration
Aurora says
Both are running fine, thanks for the help Michael. I could even use it as a members-only post, and even if non-members can see the title, to read the article they need to be logged in.
michael says
Dave – I run my site this way – but you’ll need an additional plug-in such as User Role Editor to accomplish this. What I did was to make a new role, then put my user into it as the only member and allocated him specific capabilities. TBH, WordPresss isn’t the best at handling membership-driven sites (it wasn’t originally designed for this, so no great surprise) so you will need to add on a few bits and pieces to get things working the way you want.
Chad says
It’s possible that if you use a role manager and assign user management roles to a specific user (or a specific role) that might work. I’m not 100% sure as I have not tested that out myself.
Chad says
That’s good stuff – thanks Michael!
Davej says
Chad/Michael,
Thanks for the good suggestions. They are on my short list of things to do as soon as time presents itself.
Dave says
I’m working my way through the Users Guide so that I can test WP-Members and I’ve run into something that is puzzling. On my ‘Members Only’ page the phrase “Hey Dude, phones ringging.” appears about the page name, below the menu at the top of the main content area.
Any thought as to where this comes from and, more importantly, how I get rid of it?
Thanks
Chad says
It’s not from the plugin…
Davej says
Okay, I’ll keep digging.
FastLineNews says
is there a screenshot image to use this plugin? I still do not understand
Chad says
What is it that you don’t understand?
nicos says
Hi !
I’ve been playing with your plugin, and I first want to congratulate you on the work done here !
I’ve been able to use the hooks to integrate this with mailchimps lists and do some other good stuff.
There’s one thing I’m missing: the ability to redirect the user to the page he was on after registration.
example:
User on blocked content – login form is displayed (in my template, via do_shortcode() )
User clicks on the register link
He registers
But then he is redirected to the home page (or some other page).
Any idea on how I could redirect the user to the page with blocked content he was viewing ?
I’m thinking of a few different solutions (like settings a new php session var and reidrecting via the register action hook)…
Any idea for an elegant solution ?
Scott says
Chad, WP-Members is fantastic! Thank you ! I have a (hopefully) quick question. I have a registration / edit account page; just an empty page with [wp-members page=”register”] in it.
At first I referenced no css url in the settings field in WP-Members setting, but the form looked terrible. Using the WP-Members documentation I changed the setting to point to wp-members-kubrik.css. The form looks much better, but the entry fields are all shifted down one line so that “Last Name*” lines up with the entry field for First Name, Address 1 lines up with Last Name, and so on. I’m not a css guy so not sure what to look at to fix this or if its a bug or what. Any ideas?
Also, I did try to turn on “Use Legacy Forms” in WP-Members settings, and I like the result, but then the Login form on the sidebar becomes all jumbled, misaligned and looks awful. Obviously I’d like to stick with the css approach so trying to fix the registration/account css to work. Thanks for the help Chad.
Chad says
First, I would suggest avoiding the legacy forms if you can. They will be deprecated in the 2.8 release. They are table based and much less flexible (although they do have limited CSS properties).
Either way, you’re going to probably have to learn some CSS (or hire someone) to make things look seamless with your theme. With the vast number of theme’s out there, there simply is no one-size solution. Consider the included stylesheets a starting point for what can be done.
Here is where you want to start: http://butlerblog.com/2011/07/25/customize-the-wp-members-stylesheet/
A good thing to remember with customizing the stylesheets – you can’t really break it. It is simply layout, not functionality.
Also note, you can do more than just tweak what is already in there. You can add property definitions as well (and depending on your theme, you may find you need to). I find that using Firebug (http://getfirebug.com) helps track where properties are coming from. That way I know if I need to add a property definition or not.
Scott says
Thanks for the quick response, Chad. I’ll give those suggestions a try.
Marc says
Hi,
Congrats for this plugin !
I’m using it for several days now and I just have one problem : when a subscriber receive the confirmation email (after moderation), the password shortcode doesn’t show the user password but just some blank.
But when a user resets his password, the password shortcode just works fine.
What’s the problem ?
Thanks in advance.
Chad says
That is quite strange because the exact same function (and shortcode parser) is used for both emails. My suggestion would be to double check the shortcode that is not working VERY carefully. Maybe something is mistyped or encoded incorrectly.
Marc says
Thanks for your answer.
I’ve checked that several times.
I was wondering if there was some kind of logic like “a password chosen by a user shouldn’t be shown”.
But if you confirm that it should be working for random password AND “user chosen” password, it’s very strange indeed.
Chad says
Ahhh… you didn’t mention user chosen passwords. Is that what you are using? Is so, it will not send the password to the user when they are activated. This is because when the user sets their password, it is stored with WP’s PHPass encryption algo. In order to send them their password, we’d need to be able to decrypt it. The reason that random passwords can be sent at activation is because that is the point at which the password is set, so we actually have the password.
For user chosen passwords, you should change the default emails and send the password when they originally sign up (and indicate their registration is pending approval), then the activation email can merely indicate they are approved.
Marc says
Thanks a lot, it works perfectly like this !
BR
Adam Ramshaw says
Chad,
I’m moving the above site from Joomla to WP and have installed WP-Members on a hidden url.
I am having a problem with admin notifications of new user registrations. The applying person gets an email but not the admin.
The right email address is in Settings/General/E-mail Address
Settings/WP-Members/Notify admin is ticked.
I’ve checked a couple of leads from you FAQ and other comments but can’t find the problem.
I’m mystified. Any ideas?
Thanks.
Chad says
It could be possible that your host is throttling the emails. To combat spammers, some hosts place restrictions on emails sent from scripts. I would suggest trying an SMTP plugin for the wp_mail function such as WP Mail SMTP. This allows wp_mail to send via an authenticated SMTP connection.
seanyp says
I have two questions or really one that is dependent on the other. 1) Is there a way to customize the email that is sent to include HTML? 2) The second question would be. Is there anyway to add an additional field within the email once it is customized?
Chad says
At this time, emails are plain text only. An HTML mime type might be added in the future, but I don’t know when.
The fields listed here are the fields that are available.
seanyp says
Thanks for your prompt reply chad. Well I just encountered this post that you replied to and will be testing it out.
http://wordpress.org/support/topic/plugin-wp-members-changing-some-apects-of-the-registration-process
I’m currently working on the site above, but the client wants each member to be issued a unique number in a specific format. Additionally, they already have some members with this format of member number that I will be importing.
Chad says
If you have some type of algorithm to generate your unique number, you could probably use the wpmem_post_register_data action hook. This hook fires after the user data is validated and the user is registered, but before the process if final. You could use the hook to add your unique id to the user meta table.
seanyp says
Yes I’ll try that and let you know how it goes. I also need to send out a customized email with a logo and that number, so I’ll have to also edit the files mentioned in your post
http://wordpress.org/support/topic/plugin-wp-members-changing-some-apects-of-the-registration-process
PB Online infoweb says
Hi there,
WP-members is a fantastic plugin. Thanks.
But how can registered members recover their password (when they lost it) ?
I can’t find any shortcode to put on my site so that members can recover it.
In a regular registration of WP you have that option.
Can someone help ? Thanks in advance.
PB Online infoweb.
Chad says
Actually, you can’t recover it in WP either. WP stores its passwords securely encrypted using PHPass. So, you can reset it, but you can’t recover it. WP-Members operates on the exact same premise.
The password recovery process for WP-Members is part of the Members Area page which is a single shortcode. [wp-members page=”members-area”] creates a page that will allow logged in users to update their registration information and change their password, and it will allow non-logged in users to reset their forgotten password. Additionally, if you set the URL of this page into the plugin’s settings, a forgot password link will be placed into all of the login forms.
cuttlefish says
Hi, and thank you for your great plugin.
I’m facing a weird problem: i’m working on new site where all pages include the NextGen gallery plugin. In this site I have created a wp-members private page (using a “block” custom field), but when a open this page, the login form is rendered twice: one in it’s correct position, and one in place of the gallery. When I’m logged, the page and the gallery are properly shown. Can you help me?
Chad says
Assuming you haven’t put any wp-members shortcodes on the page, it sounds like a situation of having more than one instance of The Loop. WP-Members works within The Loop to determine of a post/page should be blocked or not, and then replaces the_content with the login/registration dialog. In cases where there is more than one Loop instance, you end up with a doubling of this process. I’m not familiar with the NextGen gallery, but I suspect that it uses it’s own Loop instance to generate the gallery and that’s why you are getting the extra forms.
There’s isn’t a true workaround for this. If the NextGen plugin uses a shortcode on the page, you could try putting this shortcode inside of the wp-members status shortcode like this:
[wp-members status="in"][your nextgen shortcode in here][/wp-members]
That way, the shortcode inside should only render in cases where the user is logged in. I’m not 100% sure that will solve the issue, but that’s what I would try.
cuttlefish says
Thank your for your reply. The problem is the loop, as you suggested. I used is_user_logged_in() (i don’t use shortcode to display the gallery) to hide the gallery. This seems a good solution. Bye.
Chad says
Ahhh yes, that would work too. Good solution.
Rob Noble says
I’ve been looking for a solution like this for ages to provide a client with this type of functionality for an events management website. Their clients will be able to logon and view their own content far more effectively and securely.
Greg Smith says
Great plugin. Really appreciate it.
One question to manage a large number of Members as shown in the WP-Member Users in the table in the dashboard how can I get “Surname” to replace “Username “as the first column? Help much appreciated. Thanks Greg
Chad says
Hi Greg – at this point, you can’t. The functionality on that table is currently limited to the functions that are there now. I’ll probably be building this out in future versions though to provide more customization. Your alternative is to use the WordPress User list which is under the same menu. That can be sorted by name (although it sorts by first name first). You could also hack the function that builds that table in wp-members-admin.php, although that’s not recommended as it’s not a pluggable function.
Chris says
Hi: I was wondering how can I create a separate menu to be only visible to the members that are logged-in. So a menu visible for non-members and another menu visible for those who are logged in to site. Thanks!
Chad says
http://butlerblog.com/2011/11/21/show-menu-based-on-wordpress-login-status/
seanyp says
Well I’ve finally gotten it to work. What I did was add the necessary code to your email module (wpmem_inc_regemail) to create the HTML email there. I also edited wp-members-register.php so that it would use the update_user_meta() function to add the additional fields I needed inside the wp_usermeta table.
One problem I experienced though was an inability to access a table with unique keys I had inside the WP database. I globalized $wpdb at the beginning of the function (wpmem_registration) and then made a call to the $wpdb->get_var() with the hope of getting the unique key to store inside the usermeta for that user but that somehow did not work. I ended up using the $user_id along with another internal algorith for this extra field.
Chris says
Thanks Chad !!
Chad says
I’ve been putting some thought into this comment this afternoon. The first part is concern for you is the ability to maintain it through plugin updates. Here are some of my thoughts on expanding this:
I think that everything you have here is likely in a pluggable function. You can tell if the function starts with
if ( ! function_exists( 'name_of_function' ) ):
. If that is the case, make sure you are putting these changes into a wp-members-pluggable.php file in your plugin’s directory (not the wp-members directory). That way, when the plugin is updated, you won’t lose your changes, and then have to re-edit the files. You may still need to check to see if there were any changes to the functions you customized, but that’s less work that re-doing everything (or worse – avoiding an update). If that’s the way you are already doing it, great. If not, check out this post for more information.But I think more importantly, I was thinking about your customization to the registration. My first thought was to use the wpmem_post_register_data action hook which would allow you to run your extra items in a separate function right after the registration process so you would at that point have validated data and a user ID which you could use to run your algo. But then I realized this hook comes after the email is sent, not before; and you need the algo to run before that so you can include the extra ID.
That got me to thinking about a couple of things. First, the possibility of moving this action hook up before the email is sent. As you can see in the function, this would be just flipping the two. I think that might make sense to do. I’ll need to test it though before I change it to make sure there isn’t anything I’m missing here.
The second thing I thought of came during my thoughts about flipping the two items and that was why not add an action or filter hook for the email there as well. That might solve both your issues because if you access these two things via hooks, you wouldn’t have to worry about keeping this thing up to date. And I think that a big chuck of what you have already wouldn’t need too much in the way of changes for that to work.
seanyp says
I actually revisited the code and placed my changes in a wp-members-pluggable.php file after thinking about updates. Yes I tried the wpmem_post_register_data hook first but realized they fired after the email. It would be great to have some filters for the email as you suggested though. I was actually thinking of adding them for you but you know your code better than I do. 🙂
Jesper says
Would it be possible to implement a facebook connect for the signup process in this plugin?
or do you know if it can work together with any of the million facebook connect plugins for wordpress?
thanks
Chad says
As long as the other plugin is compatible with the WP login process (usually using wp_signon), then yes, it should be compatible. However, depending on the fields you want to require from users, it should be noted that adding a login from an outside source like fb or twitter, that login will bypass any required fields (although you can get this data if a user updates their registration info).
Chad says
I’m pretty sure it makes sense to move the location of that action to be before the email.
I’m open to suggestions on hooks for the emails if you have any thoughts.
Marc says
Hi again,
I have more than 220 users with wp-members meta informations and I need to export them.
But WP-Members export only applies on checked users (ie 10 users at a time).
I can’t do that more than 20 times and then append all the results in one csv file, it’s too much work (because it’ll be a recurrent job).
Is there any way to export ALL the users registered in the WP admin panel ?
Maybe some code to show all users in the table ?
Thanks in advance.
Jesper says
Awesome!
I made it work with a facebook connect plugin so that people can sing up by just connecting with facebook.
However if they try to access the locked post without connecting to facebook they get the sign up form delivered by WP members.
Is there anyway to style the signup form and add the facebook connect button (which I have as a shortcode from the other plugin)
thanks
mortenmr says
Hi,
I have set up the wp-members to control access to my site nswhat.no
Logging on and registering works just fine, but when clicking “Forgot?” does not do anything. I’ve set up member page in “WP-member” settings, but have not seen any going on.
Thanks for any help!
Chad says
It doesn’t appear that you’ve published the page.
Chad says
Select “Not Exported” at the top of the page. It will give you a list of all of the users that have not yet been exported.
Chad says
There wouldn’t be a way to do that now without re-writing the login form. You could do that as a pluggable function, though (see http://butlerblog.com/2011/11/29/customizing-wp-members-with-pluggable-functions/).
There will be filter hooks for the login and registration forms in the next release and that would make something like that much simpler.
Marc says
Thanks !
Sorry, I didn’t see that “Not exported” was listing all not exported users in one page.
But would it be possible to have that with All users because we’re 3 admin on the site and we could have some bad synchro if someone export on his own.
Thanks in advance.
mortenmr says
I have, but it’s the same as the main post page. I haven’t set up a particular wp-members page apart from that.
I found a way to linking to the standard WordPress lost passwords page, and it looks like it works…
mortenmr says
Do you know if there is an easy way to have an automatic redirect after logon? We have a closed website for registered users only, and want to have the wp-member login as the standard homepage when opening the site. If the user is logged on, though, we’d like the user to automatically be redirected to the main post page or forum, depending on their user group.
Do you know of any plugin that could do this for wp-member? Peter’s Login Redirect seems like what we want, but I can’t get it to work with wp-member.
Chad says
It can’t be the same as the main post page. It would be the page that you set up using the [wp-members page=”members-area”] shortcode. When I looked at your site, you had this set as page_id=6, but trying to access that redirected to the front page, which to me indicates that it either is saved as a draft page or you have something else not configured correctly.
Chad says
I’ve been working on some various changes/upgrades to the user management area. Some of that will likely be included in the next update. There will be a full user export option for sure.
mortenmr says
I tried that, but the same error. I’ve also used a plugin called User Access Manager, to control website access between user groups. Turning this one off, displayed the members page with retrieve password correctly.
I’ll check into the settings of UAM, to see if that solves it.
Allison says
Hi – great plugin, thanks so much. Just a question on usernames – it seems that the registration won’t allow capital letters for usernames – is this right, and if so can they be enabled? The error message says that only alphanumeric usernames are allowed, and I would have thought caps would qualify. Thanks!
Chad says
If you are getting the alphanumeric characters error, that is not passing the WordPress function validate_username. Caps are allowed, so it must be something else.
Jon May says
I’m trying to find a way to block the blog page itself from being seen by users who are not logged in. Setting “block” custom field to “true” on that page doesn’t work. Neither does simply setting the default for ALL pages to be blocked — if you do that, all the pages are, in fact, blocked EXCEPT for the blog page. Any way to work around this???
Jon May says
Hi, I had posted this question on this site yesterday, but now I can’t find it. Anyway, I’m trying to “block” the blog page, so that no one can see the page itself unless they are logged into the site. Have tried several things, like adding the “block” custom field to the blog page and setting the value to “true”, but that doesn’t work: you can’t drill down into the individual posts, but you can still see the blog page itself. Is it possible to block the blog page? If so, how? Thanks.
Aurora says
Hi Chad
Perhaps you could help me again. I have over 1000 subscribers now and have been exporting ‘Not exported’ data over the past few weeks. I wanted to merge them into one but realised one of the csv exports was corrupted and I don’t know how to export it again. Is there any way I can export the complete subscriber list in one go?
Chad says
Hi John, the plugin will show excerpts truncated at the ‘more’ tag on any summary template. If you set up a static page as a ‘posts page’ this still operates the same way.
Chad says
I am actually working on a full user export for the next release. I should have a release candidate available sometime today or tomorrow, so watch the front page of the blog for an announcement.
The new release is mostly focused on new filter hooks (14 new hooks are in this release), but also includes a full user export option, and a couple of code fixes.
Aurora says
That’s fantastic, and should really help everyone. Thanks in advance Chad, and I’ll look out for your release.! 🙂
Knut says
Hi Chad,
I’m a bit new in this area. But thanks for developing this great tool!
I try to make a forum page just accessable for users. But the forum always appears under the registration form. I tryed to hide but it only works for text, not for the forum. Hope it does make sense. Is there a chnace to hide the content for not loged in users?
Chad says
There is a lot of “it depends” for that question: depending on how your forum is displayed – does it use additional theme templates? or is it a page shortcode? How is it displayed on the page?
Derrick Knight says
I am beginning to use your plugin for our church website for our member directory. One of the things we want to maintain for each member is a medium resolution image of the member. I see you provide the ability to extend the field for the user profile but don’t provide for a URL or image uploader. Do you have any recommendation for higher resolution images for the user profile? Most of the plugins seem to be out of date. Maybe upload and reference a URL in a fixed field?
Thanks for any insights.
Eike says
Hi Chad,
it is the bbpress plugin. The page appears with the members login and registration page and below is the forum index page, which actually should be invisable as long as the person is not longed in. The only thing what a not loged in person can’t do is commenting or posting in the forum. The members login page is always above. Thanks.
Chad says
Hi Derrick – I don’t really have a direct solution for you. Since the plugin was designed more with content restriction in mind rather than uploads, there is not an upload process supported. WordPress does already support avatars (specifically gravatar) based on the user’s email address, but that’s not really what you have in mind.
There are some possibilities, one of which is if you can get the url of an image, either via another upload process or simply the user specifying that location, as long as you had the image location stored in user’s profile (specifically as an extra field which would go in wp_usermeta), then you could pull that information to display the image. If you can’t find a plugin solution for that, you’ll probably need to develop a customized solution.
Derrick Knight says
Chad,
Thanks for a great membership plugin. Do you have any plans to support different membership levels? In my case, we have elders/deacons, general members and the general public. It would be nice to be able to designate a different membership level for each.
Thanks again for all your hard work over the years.
-Derrick
Chad says
That may come in the future – but no specific plans in the project list yet.
Chad says
You could try this: http://butlerblog.com/2011/01/25/protecting-pages/comment-page-2/#comment-55954
evan says
Hi
I have implemented this plugin of yours and was wondering about the following and would appreciate your help:
1. Is it possible to completely disable/hide the dashboard for my members ie contributors?
I have currently done this via using another plugin “Front End Users”.
2. Is it possible to allow members ie contributors to create new post’s? I have kept trying to allow this but cant find anyway of doing it. The closest I have gotten is with “Quick Post Widget” but that looks plain and allows them to select categories. I just want to allow post on that page.
3. Is there no WYSIWYG type editor that would allow members to be able to create a new post ie title and be able to type in text, link an attachment/url
AND
be able to work in comments as well?
Why is there no such editor as default?
I am using a plugin “Rich Text Editor For Comments” which is perfect but it does not allow the creation of new posts and works for comments only.
4. Is it possible to get the sidebar login to match the text of the rest of the site? Currently it looks very different from the standard WP text all around it.
Essentially what I am trying to do is allow contributors FRONTEND access only and provide them with all the tools they need to create new posts + reply to comments as easily as possible.
Chad says
On 1 – 3, I’m sure there are a number of ways you could approach this, so there is no one right answer. The WP-Members plugin uses the WP default role (whatever you have set for that) when registering a new user, so whatever you do in this area will tie into that. I’m sure there are many plugins that cover each of these things.
As for the sidebar login, it is driven by CSS just like your other widgets. You can customize the styles and there is some info on that here: http://butlerblog.com/2011/07/25/customize-the-wp-members-stylesheet/ In this case, since you are just dealing with the widget, I would probably first try just eliminating the default styles and see if your theme styles get picked up. If not, then you could customize either plugin CSS as described in that post, or add the necessary styles to your theme’s stylesheet.
Fernando Cabbages says
This looks too good to be true. I will look into it and send you back some feedback. And is it hack-proof? If not, is there a way to add encryption ? And as far as a member’s area, is there a way to restrict registration in exchange for monetary compensation?
Chad says
Nothing is ever hack-proof. But the plugin runs essentially the same as the WordPress registration process, so it is essentially as secure as WordPress. You can restrict registration by requiring that registration be approved before access is allowed.
Monica says
Hi,
I wanted my posts to be viewed by everybody but login as a member to leave a comment. Can you please suggest how this plugin can be helpful to me?
Chad says
WordPress already does that on its own. Just set “Users must be registered and logged in to comment” under Settings > Discussion.
You can use the plugin for just registration if that’s all you need, just uncheck the settings accordingly in the plugin settings. You could then use the plugin to have additional registration fields. To use those you would need to set up a registration page and then make some changes to your comments.php template to make sure that the links in your comments form direct to that instead of the WP backend.
Alan says
Is there a possible way for you to add a way for us to manage validations on candidates who register? I would like the ability to maintain/manage a ‘blacklist’ and/or a ‘whitelist’ of domain email address or a range of ip.
There seems to be many ways to do this, but none of which, is easily integrated into wp-members unless i was to modify the internal codebase, which i’m trying not to do if possible in order to be able to update the code in the future.
Chad says
You are wise to think that way (re: not modifying the code directly – not a good practice).
The obvious is the manual validation process that is in the plugin. But, you might want something more automated where, like you described, compares against a list. I think you could probably utilize the wpmem_pre_register_data action hook to build such a process. At the point of the hook, data has passed the plugin’s validation criteria, but has not yet been written to the database. It is at this point you create layer of validation for whatever criteria you determine. The hook location is in wpmem_registration in wp-members-register.php. Some documentation on the hook is in the Users Guide (linked to on this page above).
Jimp says
Hi Chad– great plugin and finctionality, it is exactly what I was looking for – thanks!!!!
However…..
I’m having trouble in setting up this (see below) function. I’m not sure if the trouble is in how I’m setting it up (most likely), or if it’s in WP or in WP-Members. I’m getting mixed feedback. (Please also see the WP forum link below.)
I want to have three levels of security:
1.Public Pages that the general user / public can view
2.Private Pages;
—–>2a.A group of Pages that are ID / password protected (WP-Members)
—–>2b.(I’ll call it) a ‘special page’ in this private group, that in addition to being ID/password protected (WP-Members), has an addition level of security and requires a unique ‘page password’ to view.
I thought / would think that the WP page ‘visibility’ function would give me this additional level security for that special page. However, when a user tries to access a private page and enters his/her (WP-Member) ID and password, they also get access to this password protect page….bypassing the need to enter the unique page password.
????
Thanks,
Jim
http://wordpress.org/support/topic/visibility-password-protected-page-not-protected?replies=5#post-2742221
Chad says
If you are setting the WP post visibility to password protected, there’s not a reason that I can see that wouldn’t work. If it’s not working, the only reason I can see would be the possibility that you are not saving the setting of the page. When you set it to password protected, then set the post password, and click “ok,” you must also then click the “update” button as well. If you just click OK following setting the password, you haven’t actually updated the post as password protected. If the post is properly updated as password protected, it will be indicated as such on the front end as “Protected: Name of Post” (at least when viewing in the Twenty Ten or Twenty Eleven themes).
Jimp says
Chad,
This ‘page’ is set up as you suggested, and I verified via the ALL PAGE list:
— — Membership List – Password protected
I’m using Theme without customization = Twenty Ten 1.2, however I still get to view page after entering the WP-Members ID and Password without having to enter the visibiliy password.
One point, that may be different, is the I’m using this WP site as a static site with one post (intro) and many pages – some which are public and some private..
Also, the ‘page’ I’m trying to password protect is a child of a child. For instance:
Parent – Public
-Child – Private (WP Member ID/passwort required to view)
–Child (of child) – Trying to Visibility Password protect
I hope this helps explain what I’m trying to accomplish.
Thanks,
Jim
Chad says
Jim – the hierarchy of the page structure shouldn’t matter. It is important to note however, for testing, that the “WP-Members ID and Password” are in fact the user’s WordPress login and the cookies would be set as such. WordPress uses a cookie separate from the login credentials cookies (that it uses to maintain login state) for password protected posts. When a user logs out, this clears out the WP login cookies, but does not effect the cookie for password protected posts which would be wp-postpass_, so in testing, you need to make sure that you clear that cookie out separately.
Kunal bharti says
my wp-members Plugins is not working plz help me
Chad says
I’m sympathetic to your request for help, but you have provided zero information on your problem. I would suggest that you start by reviewing the included readme file, the Quick Start Guide (referenced above), and the full Users Guide (also referenced above).
Alan says
Thanks for your quick reply chad. If I were to create a custom validation with wpmem_pre_register_data, where would you suggest this code live?
Also, when you say, manual validation process that is in the plugin. How would I get access to this, specifically the email part, without modifying the php code in the plugin? As of now, I am doing the validation IN the plugin, and it’s working great. I want to rip it out, so that I can update seamlessly in the future when a newer version of this plugin becomes available.
Lastly, for your ‘Reset Forgotten Password’ screen. It seems as if a User MUST know the Username he/she registered with, along with the correct email address they registered with as well. And only on the correct combination of two, will a temporary password be generated and sent to the users email. What happens IF/When a user forgets his Username? Or registered under a secondary email and forgot the perfect combination? Would it be easy to update the ‘Forgot Password’ screen to add in Username OR Email? Along with maybe, ‘Forgot Username’ solution?
Thanks so much!
-Alan
Chad says
The hooks in WP-Members are just like the hooks in WP, so you can put this in your functions.php. Alternatively, the plugin looks to load its own pluggable function file, so you could create a file wp-members-pluggable.php and put it in there (if you wanted to keep this separate from functions.php). That file would need to be stored in your plugins folder (not inside the wp-members folder).
All of the registration fields are passed to the hook, so you can do additional validation. You will need to come up with a way to handle errors. If you use the following, you can get an idea of what fields you have to work with:
With the password reset, there are different ways to approach this and I specifically chose to make it a combination for security reasons. There are certainly other approaches that are more or less secure. This is kind of the middle of the road. I do get requests for what you are asking and up until now, I have said that it is what it is, mainly because it would have to be added as an option. I have a strict policy of not making major changes that would effect existing users without giving it to them as an option. Any time an option is added to the admin side of the plugin, not only is it a lot more work to create the option than the actual feature, but it makes the plugin more complex to maintain. However, I am looking at possibly making this a feature that could be managed with a hook. So it might come in the future that way.
Wayne Belcher says
Hi Chad
I really like the look and feel of this plug-in. I am a WordPress novice and trying to get some things sorted for our Church web site. In default confifuration with the “Members Area URL” set to our Elders’ area I am trying to provide a facility where our Elders can get on line and review documents etc without having to email for copies etc. I have the pages set up and unless you know how to access them (or know that they are there) they appear to be hidden. But they do not require a login to access – one can do that from finding them on the URL line of the browser.
So how do I ensure that these Elders pages and any sub pages can be seucred except by login, and can I do that with a one size fits password for all.
Any suggestions
Thank you – much appreciated
Pastor Wayne
Erma says
Hi I’m having trouble finding the code for WP-members plugins. Can you pls help me??
Thank you
Hrishi says
Hi, I’m trying to implement a website where the user will need to register/login before they download any file (specifically PDFs and images). I’ve been going over the documentation and features but is this possible with this plugin?
Chad says
sounds like you haven’t set the plugin options to block ‘pages’ – the default install is just ‘posts’ – check your plugin settings.
Chad says
The plugin can protect the content containing download information, but it does not prevent someone from directly accessing the file if they know the location. To prevent that, I would suggest implementing some type of prevention method using .htaccess. An easier method would be to obfuscate the link, but that isn’t necessarily foolproof.
Wayne Belcher says
Thanks Chad – just saw your response.
I am happy to say that I have nailed before reading your response, AND, yes you were correct. Had a few minutes today to more closely read the User Manual, and its up and running.
Thanks – this really does the job well!
Wayne
Gil Namur says
Hi Chad,
I am looking for a solution like yours and I have a few questions.
I want to make all posts in specific categories available only to subscribed (paid) members and all other categories available for free.
Alternatively, I could do it on a per post basis as is described in your docs.
I have read through your docs and could not determine if this was doable (lock down a category, leave others open to all)
I will be handling user registration and payment using Gravity Forms & a few Gravity Forms Add-Ons (Paypal Payments Standard & User Registration). Are there any known issues between Gravity Form and WP-Members?
My site(s) are all built using the StudioPress Genesis framework.
If I can use your solution, I will be happy to contribute 😉
Thanks and cheers,
Gil
Aurora says
Hi Chad
Two more questions from this nagging (but grateful) user of your excellent plugin. 🙂
1.
since there is no delete or reject mechanism in the profile page itself, I prefix ‘x-‘ against their country so I could identify them in some way before deleting their details. But it is extremely cumbersome to delete them from WP users page individually. I reject roughly 40% of all applications and it takes up a lot of my time simply removing rejected ones from my ‘inactive’ list. I have some 400 rejected profiles that I’d like to delete right now but I know it is likely to take me at least 3 hours deleting one by one. Do you think there is a better way of doing this. Or if there isn’t yet, would this perhaps be something you would consider implementing in your next plugin update?
2.
I’m sorry this may sound like a dumb question to ask (me no techie). but perhaps you could advise. I have downloaded your 2.7.4 update which apparently helps me download entire database of users in one go but not sure how to upgrade this. Should I simply replace these files with the ones there using FTP (and would I loose any custom fields I had added in my registration form by doing so)? Thanks.
Chad says
It’s in the WordPress plugins folder. If you don’t know where/what this is, then it is probably a good indication that you should not be tinkering with it. What exactly are you looking for?
Chad says
Currently, the plugin does not do any category differentiation… That’s not to say that it won’t in the future, but at present, it’s not an option to block one category and not another. You would have to set the default one way or the other and then manage individual posts that don’t fit that setting.
Not sure about Gravity Forms… While I don’t generally consider other plugins when furthering the development of the plugin, I can say that I try to operate as tightly within the WP construct. While that doesn’t guarantee compatibility, I think it gets as close as possible. Also, there are quite a few hooks in the plugin to help with this, and that number is growing with each new release.
Chad says
You can actually bulk delete from the WP Users > All Users list. On the second question, yes you have it right – you can FTP transfer the files. Technically, you should deactivate the plugin, FTP transfer the new files, then reactivate. If you do it that way, you should not lose any settings that you already have; BUT – even though this is a minor update, I have to always give the caveat that you (1) should always test any updates on a staging system prior to upgrading a production site and (2) you should ALWAYS have an up-to-date backup prior to your update.
Jimp says
Chad,
Sorry for the delay in responding…I was traveling.
You are right, and since I was not smart enough to figure out how to clear the “WP logon cookies” every time a user logs out – I used the WP Login Timeout plug-in for my testing.
With the plug-in setting at only a couple of hours, I was able to do overnight testing of the viewing of the page – to make sure that the ‘page visibility’ password was required before it could be viewed. ..This reduces my security concern in reference to page access.
Thanks for your help,
Jim
Mathew Mitchell says
Hi there,
The plugin has been working perfectly until possibly the last update. When people register for the site, complete the form and a message on the following window says:
Fatal error: Cannot redeclare class PHPMailer in /home/farthing/public_html/wordpress/wp-includes/class-phpmailer.php on line 43
Is there something I’m missing and can easily fix?
Thanks,
Mat
Chad says
While the plugin does call WP’s wp_mail function for emailing, it doesn’t rewrite any of those, so I have no idea what would cause that error other than you might have some other plugin or function that creates a conflict by trying to redefine the phpmailer class.
Jack says
Thanks for the simple yet powerful plugin. But why am I getting this login / Registration page jumbled up? The fields for Passw and First Name are not correctly placed next to their description. Can it be fixed, is it to do with CSS ?
Thanks
Jack says
Forgot to add the address –
http://diasporic.org/ope/invoices/membership
Chad says
Yes, that is a css issue. To make the forms the most flexible, the layout is entirely css driven. You may have to do some tweaking to have things work with other styles that are loaded – your theme, other plugins, etc. The plugin is equipped to do this and in fact, I encourage users to only use the included styles as an example of what you can do – a starting point. You really should be customizing the entire stylesheet to give it a blended look with your theme.
If you look above on this page, there are some links to posts on how to customize the stylesheet. There are also two additional stylesheets included in the download that you can try out. So, there is lots to work with – and you can’t really break it. The only really important thing is to keep the location of your customized stylesheet outside of the plugin so that you don’t overwrite it when you upgrade.
jack says
Hi,
I want to set up categories for posts that only select members can see. I will have thousands of offices each with their own private category based on their www or other login field.
Will wpmembers handle this?
Cheers,
J
Chad says
probably not.
dan says
Hey Chad, thank you for the plugin. I think it’s exactly what we need. If I can find the solution to one problem.
Is it possible to limit registration based on username instead of email address? In other words, currently if I try to register a new user with an existing email address, it says “sorry, that email address already has an account.” And I see the logic of that. But I need to have people register who don’t have their own address (parents registering their kids, that kind of thing). Is that possible?
Thanks.
michael says
Dan – this might help: http://coffee2code.com/wp-plugins/allow-multiple-accounts/
neil says
Is there a way to turn a customer field into a file-uploader so members could upload an avatar/bio picture?
Kevin says
Hi Chad,
I’m trying to export ALL members that signed up. I can only get it to export all users that are shown on the currently displayed page. To export the other users, I have to click on the 2nd page, 3rd page, etc. to export them. Is there a way I can select all and have every user exported at once?
Chad says
Not at this time – that would take some significant customization. However, WP already has avatar capability built in, which WP-Members is compatible with. See: http://codex.wordpress.org/Using_Gravatars
Chad says
You can get a list of all users that have not been exported by selecting that in the menu. That selection will not paginate and will export any users you haven’t previously exported.
The 2.7.4 release does include an export of the entire list (see: http://butlerblog.com/2012/04/03/wp-members-2-7-4-release-announcement/).
Wine Psi Phi says
I’m having a problem with activating members with this program. It says the following:
Fatal error: Cannot use assign-op operators with overloaded objects nor string offsets in /home/idgaf/public_html/wp-content/plugins/members-list/class/xml.php(322) : eval()’d code on line 1
We have had this problem twice. Yet it randomly takes another member and will not activate them. How can we remedy the problem? Thanks
Mr. Smith Administrator 706-955-6385 Augusta, GA
Carl Anderson says
Hi,
Thanks for the excellent plugin.
I am importing my current database of members into my new wordpress site using WP-Member.
Is it possible to allow users to login with email address + password?
The problem I have is that when I import I can set the username to some automatically generated string but the user will not know their username, hence unable to sign in.
At the moment on my current site they use email address and password to sign in?
I dont want to set their username to be email address because then they wont be able to update their username(email) and will get messy. Thoughts?
Carl
Chad says
Not really sure what to tell you with that one… the error you are getting is from another plugin (members-list).
Chad says
Well, the plugin is not really set up for that. However, depending on how adept you are with php, the wpmem_login function does happen to be a pluggable function, so you might be able to write something that would allow an email login. See: http://butlerblog.com/2011/11/29/customizing-wp-members-with-pluggable-functions/ for information on WP-Members pluggable functions.
Carl Anderson says
Thanks for the reply. I seemed to have sorted it out pretty easy. For anyone else wanting to use email + password to login (instead of username + password) this is the code I changed in wp-members-core.php
function wpmem_login()
{
if( isset( $_POST[‘redirect_to’] ) ) {
$redirect_to = $_POST[‘redirect_to’];
} else {
$redirect_to = $_SERVER[‘PHP_SELF’];
}
$redirect_to = apply_filters( ‘wpmem_login_redirect’, $redirect_to );
if( isset( $_POST[‘rememberme’] ) == ‘forever’ ) {
$rememberme = true;
} else {
$rememberme = false;
}
if( $_POST[‘log’] && $_POST[‘pwd’] ) {
$user_login = sanitize_user( $_POST[‘log’] );
$creds = array();
$username = $user_login;
if ( !empty( $username ) )
$user = get_user_by( ’email’, $username );
if ( isset( $user->user_login, $user ) )
$username = $user->user_login;
$creds[‘user_login’] = $username;
$creds[‘user_password’] = $_POST[‘pwd’];
$creds[‘remember’] = $rememberme;
$user = wp_signon( $creds, false );
if( ! is_wp_error( $user ) ) {
if( ! $using_cookie )
wp_setcookie( $username, $user_pass, false, ”, ”, $rememberme );
wp_redirect( $redirect_to );
exit();
} else {
return “loginfailed”;
}
} else {
//login failed
return “loginfailed”;
}
} // end of login function
endif;