Tagged: protected content
June 29, 2011 at 4:59 pm #3682frantanMember
On my site I would like to be able to customize the following message that appears when content is protected.
Please Login to view this Content.(Not a member? Join Today!)
I know you can change the words that appear in this message by editing the language files but I would like to display my own message here that incorporates html (divs etc) and a form to allow people to join our email newsletter.
Could you tell me if this is possible please? And if yes what files I need to edit in order to do this.
Thanks very much!June 29, 2011 at 11:34 pm #33776amin007Participant
It is not ideal to add a email subscription form there. The best way would be to place your subscription form on the “Join us” page. Customers clicking on the “Join Today” button will land on that page.
with that said, you will have to change the “wp_eMember1.php” file (inside the “get_login_link” function if you want to customize that.December 20, 2011 at 2:16 am #33777pachooleeMember
I would like to customize this message with html also. But the “get_login_link” function is no longer in the wp_eMember.php file? So what file needs to be changed? thanksDecember 20, 2011 at 6:05 am #33778
The “get_login_link” function is in the following file:
eMember_auth_utils.phpDecember 20, 2011 at 8:10 am #33779pachooleeMember
Found it. Thanks.March 23, 2012 at 7:15 pm #33780
I am in the process of customizing my protected content message (members only message).
By following the instructions here https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin I’ve edited the language file so my site now shows the following message:
But I think new users will be lost and I need to make it more clear to them what’s going on. I’d like to add an H2 hedline and an image.
How exactly would I go about doing that?
I gather from researching these forums that I might have to change something related to get_login_link and then presumably I’ll have to tinker with the CSS.
Where can I find instructions/help?
Newbie memberMarch 24, 2012 at 3:11 am #33781
We have just added a new option in eMember which can make the following message (the post/page protected message) stand out easily:
Please Login to view this Content. (Not a member? Join Today!)
Now, go to the eMember settings menu and check the “Format the Post/Page Protected Message” checkbox which should make that message stand out more.
Let me know if that helps.March 24, 2012 at 12:09 pm #33782
I just bought eMember this week.
I have version 7.7.8.
Are you saying there is something more recent than this that I need to install?
If I go to my General Settings I see this:
Turn Off Protected Message Formatting
By default eMember formats the protected messages to make it easily visible by placing it inside a warning box. Check this option if you do not want eMember to apply any formatting to messages (this will make eMember output the plain text only).
This box is NOT checked and yet my message is not in a warning box as you can see at [http://www.scottishterriernews.com/2012/03/the-weeks-dog-news-headlines-2.html]
ThanksMarch 24, 2012 at 1:30 pm #33783
Ok, I updated, but I am still unclear on why I did not receive the most recent plugin version when I bought the Plugin on Wednesday.
The formatting is certainly an improvement.
But is there any way to customize it?
AnnBMarch 25, 2012 at 12:50 am #33784
You can customize the CSS of the “css/eMember_style.css” file to apply customization to that protected message. Look for the following block of CSS:
border: 1px solid #E3E3E3;
margin: 15px 0;
It also has another class named “eMember_protected_message” applied to that section so you can customize it from the custom CSS file too.
This post will explain the *plugin version* question you have:March 25, 2012 at 2:20 pm #33785
Thanks, I have made some changes and will try to make more later.
I also understand the whole plugin update thing better now.
AnnbJune 5, 2012 at 1:27 am #33786jfoppoliMember
I would like to customize the message in exactly the same way as AnnB did. Read this:
And I can actually change the text, but I notice she also managed to add links there to login and even subscribe, so it was not just a change of text.
Here is what she did:
I cannot figure out how to do this. Could you help me out, please?
JulioJune 5, 2012 at 1:51 am #33787PeterMember
I think she has actually only changed the text but in such a way that the global variables in the eng.php file are being displayed exactly as she wants them to.
For example in the file called eMember_auth_utils.php there is a block of code which looks like the following:
$no_fancy_login = '';
$no_fancy_login .= '<div class="'.$format_classes.'">';
$no_fancy_login .= EMEMBER_PLEASE .' '. EMEMBER_LOGIN .' ' .EMEMBER_TO_VIEW_CONTENT;
$no_fancy_login .= '('.EMEMBER_NON_MEMBER.' '.EMEMBER_JOIN.')';
$no_fancy_login .= '</div>';
The above code block is the default message which Ann has most probably modified simply by editing the eng.php file.
Can you see from the above how there are also links which are part of the whole message which consists of a bunch of those global message variables?
So maybe you could do the same thing and edit the message variables to say what your want them to say by editing the eng.php file (not the eMember_auth_utils.php file).June 5, 2012 at 2:03 am #33788jfoppoliMember
So how could I edit the .eng.php file to show that block of message instead of just
“You don-t have permission to see this content”?June 5, 2012 at 2:24 am #33789PeterMember
The above message in the block of code I showed you is the standard message which is displayed to somebody who tries to access a page which is protected when somebody enables the “eMember Protection Options” in the page edit window of wordpress.
How are you protecting your page?
Are you using one of the section protection shortcodes or the protection flag in the page edit of wordpress?
Can you please send a link to the protected page so we can see the message
- You must be logged in to reply to this topic.