- This topic has 9 replies, 4 voices, and was last updated 3 years ago by .
Viewing 10 posts - 1 through 10 (of 10 total)
Viewing 10 posts - 1 through 10 (of 10 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › Modify message for expired 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
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?
Please read this, to learn how to change the message text strings:
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
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.
Directly in the language file? For example in ita.php? Right?
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
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.");
I tried this and got a critical site error.
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.