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 4 years ago by
admin.
-
AuthorPosts
-
June 2, 2015 at 5:51 am #12716
Giacomo
MemberHi, 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 #70257Giacomo
MemberAnother 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 #70258wzp
ModeratorPlease read this, to learn how to change the message text strings:
June 2, 2015 at 1:56 pm #70259Giacomo
MemberHi,
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 #70260wzp
ModeratorIf 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 #70261Giacomo
MemberDirectly in the language file? For example in ita.php? Right?
June 2, 2015 at 4:16 pm #70262Giacomo
Memberhi 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 #70263admin
KeymasterYou 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 #83930angelfire4xx
ParticipantI tried this and got a critical site error.
November 16, 2021 at 1:52 am #83934admin
KeymasterIf 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.
-
AuthorPosts
- You must be logged in to reply to this topic.