- This topic has 3 replies, 2 voices, and was last updated 9 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 › how to show join link on paid member page to free member?
I read another topic similar but did not see how it could work.
When my free member clicks on a paid member page it just gives the orange alert ! you do not have permission to view this page.
How do I add a register link here for free members?
thanks
That message is controlled by the EMEMBER_CONTENT_RESTRICTED string, in the appropriate language file. The easiest thing to do is to simply edit the string, so that it includes a link to whatever page you want.
However, there are 19 different circumstances in which this message might be presented to the user. If you want to specifically target a particular circumstance, you must backup and then edit the emember_access_checkers.php file. You would then search for each time the EMEMBER_CONTENT_RESTRICTED string is used and then, if the circumstance warrants, append your link to the string.
if i can have the restricted warning to give a link to register for this course under all circumstances that would be fine.
this assumes the link takes them to the join-us page where all the courses will be offered
I find the EMEMBER_CONTENT_RESTRICTED string on line 2 of the lang file.
How do I add a link here to the join-us page?
thanks
You decide what you want the message to say, and then edit the text string.
For instance, the existing line says:
define("EMEMBER_CONTENT_RESTRICTED","You do not have permission to view this content.");
You might change it to:
define("EMEMBER_CONTENT_RESTRICTED","You do not have permission to view this content.<br>Please <a href='http://www.example.com/upgrade'>click here</a> to upgrade.");