February 11, 2010 at 6:08 pm #782jtribeMember
I was wondering if it’s possible to modify the default text that appears when you want to enter a protected page:
“Please login to view this content.(Not a member? Join Today!)”
I wanted to make a small change to something like:
“Please login to view this content.(Not a member? Join Today. It’s free and only takes a second.)”
I’ve tried modify some of the text in wp_eMember1.php but when I do I seem to create an error..
Thanks for any help you can give me.February 11, 2010 at 6:27 pm #17932gymgangstaMember
Have a look in wp-eMember “lang” folder and edit the eng.php file Lines 8-14.February 12, 2010 at 2:17 pm #17933jtribeMember
Thanks for your help. I’m not seeing a language folder… I do have one in the wp estore plugin but can’t seem to find it for wp emember. I would be really grateful for any further help on this.February 12, 2010 at 3:10 pm #17934IvyMember
Hi, I will send you an email regarding this issue. Please let me know if you do not receive the email.
IvyFebruary 15, 2011 at 4:25 am #17935FrankMember
Hey Guys, I know that this post is a year old, but I too would like ot figure this one out. I have a client that wants to make mods on this line. I peeked into the file in question, but it wasn’t terribly apparent.
FrankFebruary 15, 2011 at 11:54 am #17936amin007Participant
There are links in that sentence so you won’t find the full sentence in the language file. It is broken down into smaller parts so the links can be created with smaller anchor texts. Look for the following constant in the “wp_eMember1.php” file and you will see what it does:
EMEMBER_TO_VIEW_CONTENTFebruary 16, 2011 at 3:43 pm #17937FrankMember
Thanks, got it now!
FrankNovember 30, 2011 at 2:06 pm #17938
This is related to the first poster’s question above. I want to fix the spacing between the words:
“Please Login to view this Content.(Not a member? Join today!)”
In my site there is NO space between the period after the word Content and the first parenthesis mark (open paren). It is a little thing but it’s been bothering me because I think it looks stupid. Can you tell me EXACTLY how to add the space there? I have the Eng Lang file open but I’m not sure where I should add that space to avoid breaking the code.
UPDATE: Tried a few things and found this worked (added a
define(“EMEMBER_TO_VIEW_CONTENT”, “to view this content.
Thanks anyway! Note that I also un-capitalized the word “content.”November 30, 2011 at 10:10 pm #17939PeterMember
Hi, You can try the following:
Search for the following line of code in the “eMember_auth_utils.php” file:
'('.EMEMBER_NON_MEMBER.' <a href="'.$join_url.'">'.EMEMBER_JOIN.'</a>)'
Then change it to whatever you like.
Hope that helps.December 1, 2011 at 2:45 am #17940adminKeymaster
An easier option is to simply change the following in your language file:
define("EMEMBER_TO_VIEW_CONTENT", "to view this Content.");
to the following (see how I added a space after the period?):
define("EMEMBER_TO_VIEW_CONTENT", "to view this Content. ");December 1, 2011 at 11:54 am #17941
Admin, I actually tried that repeatedly and for some strange reason it wouldn’t display as a space! Very weird.
Peter: I can’t find such a file. I have a file called emember_auth.php, but not the file you named (with the “util” part at the end). Where is it?December 2, 2011 at 1:59 am #17942adminKeymaster
That would mean that you are not editing the correct file. Which language file are you editing and how are you editing it (using the WordPress plugin editor or a text editor in your PC)?December 2, 2011 at 2:34 pm #17943
I tried editing the file in my text editor (actually via FTP while up on the server via my cPanel. The file I tried to edit is in the lang folder (eng). I do not have “eMember_auth_utils.php” but I have eMember_auth.php.December 2, 2011 at 9:59 pm #17944
Interesting, even after upgrading the plugin I do not seem to have a file called “eMember_auth_utils.php.” Where is that file? (Or is it only in the eStore plugin? I am using eMember.)
Admin: I finally got it to work! Apparently I did not “refresh” the server folder so my change to the lang (eng) file — adding the space — was not showing! Thank you!
I still don’t see any file called eMember_auth_utils.php, though. Not that I need it now, but I am just curious why I don’t seem to have it?December 2, 2011 at 10:26 pm #17945PeterMember
The file is definitely part of the eMember plugin. Just look in the folder located at:
But as mentioned by admin earlier, the other change (which is easier) is to do the mods to the eng.php file which is located in:
But I see you’ve solved your problem anyway so that’s great news!
- You must be logged in to reply to this topic.