Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Membership Upgrades
Tagged: emember upgrade payments
- This topic has 15 replies, 3 voices, and was last updated 12 years, 10 months ago by admin.
-
AuthorPosts
-
January 27, 2012 at 10:28 pm #5406masmoolaMember
I just created a membership with two levels and you have an option right up front to sign up for either of the tow levels.
When you sign up for only the basic level, you come to the member home page and all of the basic options for level one and the level two options all on the same page member home page.
When you click on the level two options on the member home page when only a level one member, it takes you to a page that just says, “restricted” and nothing else.
How can I set up those pages to show a text or button that says, “If you would like to upgrade your membership to level two, click here, and then it takes them to an upgrade page with a new payment button.
I can’t seem to figure out how to create that feature for the people who are going to click on those links out of curiosity.
I think it’s better to allow them a button right then for an upgrade, or some kind of message on how to upgrade their account to level two and where to go to do that.
Is this possible?
Please explain in easy terms. I’m not super technical.
Thank you,
Dave
January 27, 2012 at 11:24 pm #41308PeterMemberHi Dave,
What you need to do is to protect a section of a post or page.
For example, in the level 2 membership page use the following shortcode to protect the content you wish. Outside of the shortcode tags put your link or button text informing people how to join your level 2 membership.
See example below:
<Your unprotected link or text asking them to upgrade goes here>
[emember_protected for=2]
your protected content goes here
[/emember_protected]
The above shortcode effectively means that the content within the shortcode tags is only accessible by people who have level 2 membership.
For more info about protecting a section of a page see this post:
http://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
January 28, 2012 at 2:06 am #41309masmoolaMemberHi Peter,
I put a link to the page below along with a test username and password to let you in and see the page I’m talking about.
How do I control/edit the text and the link in that message? I would like to change it to “Click here” to upgrade your account” – and then I can have the link redirect to a page where they can pay for the upgrade.
Need to change this>>>
Hidden content is forbidden for this membership level.
Please Renew your account.<<<<<
to this>>>>
Hidden content is forbidden for this membership level.
Click here to upgrade your account<<<
http://paintersrevenueguide.com/members-login/
username: gorilla2
password: passgorilla2
Thank you,
January 28, 2012 at 2:36 am #41310PeterMemberHi Dave,
Ok the best thing to do is to use the same shortcode as before but to suppress the message which talks about hidden content being forbidden.
Note that there is also an example of this on that page I sent you earlier.
So you would use the following:
[emember_protected for=2 do_not_show_restricted_msg=1]
your protected content goes here
[/emember_protected]
Then you can put whatever message and link you like outside of the above tags.
January 28, 2012 at 2:55 am #41311masmoolaMemberThat makes sense, but if I put a message outside of the tags, won’t that message show up all the time, even if they have full access to that information?
If so, is there a way I can change the message in the warning you have set up?
January 28, 2012 at 3:04 am #41312masmoolaMemberI was just thinking, it looks like it might be time for a slight update in programming.
I bet you learn a lot and have probably already made several updates from questions asked.
I appreciate all your help.
BTW: where all do you promote your software? Have you had any better luck with some avenues? Any great sites you can recommend to find affiliates or for promotion?
January 28, 2012 at 3:33 am #41313PeterMemberHi,
You can modify the message by changing it in the file which lives here:
/wp-eMember/lang/eng.php
Look for the line:
define("EMEMBER_HIDDEN_CONTENT_MESSAGE","Hidden content is not available to this membership level. ");
I highly recommend making a copy of the original file first
January 28, 2012 at 3:50 am #41314PeterMemberHi again,
I just realised that you wanted the second sentence modified not the first
If you look at that eng.php you’ll see that the sentence “Please Renew your account” is made up of a conglomeration of the other message definitions shown in that file.
You can change some of these OR you can define your own message.
Then you will need to go to the file /wp-eMember/emember_access_checkers.php and find the following line and change it to reference your message:
$account_upgrade_url = $emember_config->getValue('eMember_account_upgrade_url');
return wp_emember_format_message (EMEMBER_HIDDEN_CONTENT_MESSAGE. '
'.EMEMBER_PLEASE.' '.EMEMBER_RENEW_OR_UPGRADE.' '.EMEMBER_YOUR_ACCOUNT);Hope that helps.
January 28, 2012 at 4:17 am #41315masmoolaMemberThe first sentence is fine.
I only need to change the second sentence and the link where it leads, but I can’t find that second sentence: Please Renew your account. The word “Renew” is a link and that link leads to the wrong page and I can’t figure out how to change the link to a different page.
I looked through both of those files, but could not find it.
January 28, 2012 at 4:32 am #41316masmoolaMemberI was able to change the name, but can’t figure out how to change the link where it leads.
January 28, 2012 at 4:35 am #41317masmoolaMemberOh, never mind. I got it.
Thank you.
January 28, 2012 at 4:36 am #41318masmoolaMemberI hope that change by adding the link doesn’t affect any of the other processes.
If I only added the link and changed that name, will everything else be okay?
January 28, 2012 at 5:25 am #41319masmoolaMemberMy entire site just broke and I can’t get access to any of it.
All I did was change the one word in that code and it broke everything and I tried to repaste the old code back into that file and it would not let me fix it.
Can you tell me what I need to do to fix by looking at the error on the site?
http://paintersrevenueguide.com/
this is the original code line that I edited:
return wp_emember_format_message (‘<b>’. EMEMBER_HIDDEN_CONTENT_MESSAGE. ‘
‘.EMEMBER_PLEASE.’ ‘.EMEMBER_RENEW.’ ‘.EMEMBER_YOUR_ACCOUNT.'</b>’);and this is what I changed in that code:
return wp_emember_format_message (‘<b>’. EMEMBER_HIDDEN_CONTENT_MESSAGE. ‘
‘.EMEMBER_PLEASE.’ ‘.click here to upgrade.’ ‘.EMEMBER_YOUR_ACCOUNT.'</b>’);I had it working fine with just the word “upgrade”, but then when I added the “click here to”, everything broke.
January 28, 2012 at 5:35 am #41320masmoolaMemberNever mind. I just replaced the file and it fixed everything.
It’s amazing how it all breaks with one minor thing changed.
January 28, 2012 at 5:40 am #41321masmoolaMemberOkay, so I edited this code and it all seems to work okay. Can you take a look at this code and let me know if you think this will work without any problems? You should be able to tell what I changed.
$account_upgrade_url = $emember_config->getValue(‘eMember_account_upgrade_url’);
return wp_emember_format_message (‘<b>’. EMEMBER_HIDDEN_CONTENT_MESSAGE. ‘
‘.EMEMBER_PLEASE.’ ‘.upgrade.’ ‘.EMEMBER_YOUR_ACCOUNT.'</b>’);}
return $contents;
}
-
AuthorPosts
- You must be logged in to reply to this topic.