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

Modify message for expired member

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › Modify message for expired member

  • This topic has 9 replies, 4 voices, and was last updated 3 years, 5 months ago by admin.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • June 2, 2015 at 5:51 am #12716
    Giacomo
    Member

    Hi, I’d like to change the standard message for the expired members in a protected page. If i use a partial the content protection i see the message with link fro renew, but if protect the page, i see only a message like this: “This content is protected!”.

    I need to see in this second scenario a link to the renew page, how i can customize it?

    Thanks

    June 2, 2015 at 5:55 am #70257
    Giacomo
    Member

    Another question,

    it’s possibile to have a automatic redirect to a specific page after the renew, if i used the shortcode for free renew?

    And if is impossible, how i can customize the message: “Membership Renewed!” to add a link to a specific page?

    June 2, 2015 at 11:55 am #70258
    wzp
    Moderator

    Please read this, to learn how to change the message text strings:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

    June 2, 2015 at 1:56 pm #70259
    Giacomo
    Member

    Hi,

    yes, to modify the message ok, but i need to add a link in message, which file i have to modify and in which line of the code?

    I need to modify two messages: the message “Content protected”, for expired member, and the confirmation message, after free renew (with shortcode).

    Thanks :)

    June 2, 2015 at 2:39 pm #70260
    wzp
    Moderator

    If you want to add a link to a message string, just replace the text with the appropriate HTML code for the link you want to see.

    June 2, 2015 at 2:44 pm #70261
    Giacomo
    Member

    Directly in the language file? For example in ita.php? Right?

    June 2, 2015 at 4:16 pm #70262
    Giacomo
    Member

    hi wzp,

    The language file is a php sequence of “define” function.

    If i insert html code i see a white page.

    Can explain me how to insert html code in this file with an example?

    Thanks :)

    June 3, 2015 at 12:51 am #70263
    admin
    Keymaster

    You can specify a renewal page link in the settings menu of this plugin.

    Below is an example of modifying the language file and adding HTML link code.

    Lets say you want to modify the following message:

    define("EMEMBER_SUBSCRIPTION_EXPIRED_MESSAGE", "Your subscription period expired. ");

    You can replace the above line with the following:

    define("EMEMBER_SUBSCRIPTION_EXPIRED_MESSAGE", "Your subscription period expired. Go <a href="page-url">here</a> to find more details.");

    November 14, 2021 at 2:38 pm #83930
    angelfire4xx
    Participant

    I tried this and got a critical site error.

    November 16, 2021 at 1:52 am #83934
    admin
    Keymaster

    If you get the syntax wrong then it will give that error. Start fresh and make small changes to the file and test every small change.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • 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