Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Membership Upgrades

by

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 13 years, 4 months ago by admin.
Viewing 15 posts - 1 through 15 (of 16 total)
1 2 →
  • Author
    Posts
  • January 27, 2012 at 10:28 pm #5406
    masmoola
    Member

    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 #41308
    Peter
    Member

    Hi 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 #41309
    masmoola
    Member

    Hi 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 #41310
    Peter
    Member

    Hi 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 #41311
    masmoola
    Member

    That 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 #41312
    masmoola
    Member

    I 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 #41313
    Peter
    Member

    Hi,

    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 #41314
    Peter
    Member

    Hi 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 #41315
    masmoola
    Member

    The 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 #41316
    masmoola
    Member

    I 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 #41317
    masmoola
    Member

    Oh, never mind. I got it.

    Thank you.

    January 28, 2012 at 4:36 am #41318
    masmoola
    Member

    I 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 #41319
    masmoola
    Member

    My 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 #41320
    masmoola
    Member

    Never 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 #41321
    masmoola
    Member

    Okay, 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;

    }

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 16 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ