Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Free membership is disabled… Giving me fits!
Tagged: change registration, Free Member, Parse error, Please Login to view this Content. (Not a member? Join
- This topic has 7 replies, 7 voices, and was last updated 12 years, 2 months ago by Peter.
-
AuthorPosts
-
February 16, 2011 at 11:32 pm #2733Tall MidgetMember
The following appears on several of my pages…
Free membership is disabled on this site!
Please visit the Payment Page to pay for a membership.
How do I get rid of it? My site is a paid membership site, and I do not want to have a free member option…
Bob Newton
February 17, 2011 at 12:37 am #29107wpCommerceModeratorThis message is shown when a visitor land on your registration page but you don’t have free membership enabled on your site. If anyone pays for a membership this page becomes visible to complete the registration.
Please open the eMember_misc_functions.php file and search for the following line –
else
{
//Free membership is disabled
$output .= EMEMBER_FREE_MEMBER_DISABLED;
$payment_page = $emember_config->getValue('eMember_payments_page');
if (!empty($payment_page))
{
$output .= '<br />'.EMEMBER_VISIT_PAYMENT_PAGE.'.'.EMEMBER_CLICK.' <a href="'.$payment_page.'">'.EMEMBER_HERE.'</a>';
}
}The above output is shown when free membership is disabled on the site. You can now replace it by the following codes to get rid of the whole message:
else
{
//Free membership is disabled
$output .= '';
}You can also customize those messages from the language file (e.g eng.php).
Please have a look at the following post which will explain –
February 17, 2011 at 1:19 am #29108amin007Participant“My site is a paid membership site, and I do not want to have a free member option” – This means no one should be going to the “Registration page” without paying. You get that message when someone goes directly to the registration page without making a payment for the membership so the plugin is giving them a warning. You can obviously customize that message to say something else.
February 17, 2011 at 4:24 am #29109Tall MidgetMemberI must have done a Boo-BOO!
I tried to the //Free membership is disabled
as suggested above…
I saved the file and when I clicked out of the file I got the following error…
Parse error: syntax error, unexpected T_STRING in /home/usaveter/public_html/wp-content/plugins/wp-eMember/eMember_misc_functions.php on line 1
All suggestions will be appreciated…
Bob Newton
February 18, 2011 at 12:21 am #29110IvyMemberHi, If you have made a coding mistake the best way to fix this is to reload a fresh copy of the plugin. You can get a fresh copy of the plugin here:
Please note this will override any modification you have made to the plugin but you will not lose your settings.
September 4, 2012 at 3:20 pm #29111whatizrealMemberHi, this is exactly what I’m trying to do, but when I went to the eMember_misc_functions.php file, there was no line that talked about “//Free membership is disabled”.
Where can I find this? I’d like to change the look of this so my users aren’t confused.
Thanks so much!
September 4, 2012 at 11:22 pm #29112adminKeymasterThis post will help with customizing the text messages displayed by the plugin:
September 4, 2012 at 11:23 pm #29113PeterMemberLook in the eMember_registration_utils.php file.
-
AuthorPosts
- You must be logged in to reply to this topic.