Tips and Tricks HQ Support Portal › Forums › WP eMember › [emember_protected] Question On Join Us and Log-In
- This topic has 8 replies, 2 voices, and was last updated 12 years, 1 month ago by avd23.
-
AuthorPosts
-
September 23, 2012 at 8:14 pm #7467avd23Spectator
Is there any way I can change the code or the text for this short code so that it would read: “This content is for members only. Please LOG-IN or Join-Us Today”
Presently the “his content is for members only” takes the user to the join-us page, but it would be nice if it would pop up the log-in form or take the user to the join-us page.”
Any chance of my being able to make this change to your short code?
Using EMember V8.2.1 and WP 3.4.2
September 24, 2012 at 2:49 am #49648adminKeymasterYou can customize most user visible text messages using the following method:
September 25, 2012 at 4:56 pm #49649avd23SpectatorI was able to change the wording but how do I set up the links for this line:
“This content is for members only. Please LOG-IN or Join-Us Today”
HTML didn’t work for linking to the LOG-IN popup box and I couldn’t get the JOIN US to link to anything.
can you supply me how this line should read code wise so I can paste it in the define line for emember_members_only_message
That would help a lot. Thank you.
September 25, 2012 at 5:07 pm #49650avd23SpectatorEven when I changed the wording the whole line
“This content is for members only. Please LOG-IN or Join-Us Today”
simply sends the reader to the join us page.
What I want is to remove the existing link and then have the line only link to LOG-IN for the word LOG-IN and then JOIN-US Today – link to the join us page.
In other words:
LOG-IN goes to log-in or pops up the log-in box
JOIN-US goes to the join page
The rest of the line does not go anywhere. It is simply text. Can you provide me the code for this?
September 25, 2012 at 5:24 pm #49651avd23SpectatorSorry to labor the point but just to be clear I can understand how to use HTML for the code but right now the
define (“EMEMBER_MEMBERS_ONLY_MESSAGE) goes directly to the joinus page so it does not matter what HTML code I use in the language.php file for that message, it always goes to the join-us link and I cannot figure out how to turn it off for the line. Hope this is enough information. Thanks.
September 26, 2012 at 2:35 am #49652adminKeymasterOpen the “emember_access_checkers.php” file and search for the following line of code:
$replacement = '<a '. $join_url .' ><b>'.EMEMBER_MEMBERS_ONLY_MESSAGE.'</b></a>';
Thats what creates a link to the join us URL. You can change that code to suit your needs.
September 26, 2012 at 3:06 am #49653avd23SpectatorSo what would I delete as I want to use HTML in the EMEMBER_MEMBERS_ONLY_MESSAGE
Could you be a little more specific as to what needs to be deleted in order for the link to stop. If I delete any part of it my site crashes. Sorry I cannot figure it out. Thanks.
September 26, 2012 at 4:28 am #49654adminKeymaster$replacement = '<a '. $join_url .' ><b>'.EMEMBER_MEMBERS_ONLY_MESSAGE.'</b></a>';
Replace the above line with the following:
$replacement = EMEMBER_MEMBERS_ONLY_MESSAGE;
September 26, 2012 at 4:31 am #49655avd23SpectatorOK figured it out. For other forum members to make the change you need to get rid of the link by changing the “emember_access_checkers.php” file in this line:
$replacement = '<a '. $join_url .' ><b>'.EMEMBER_MEMBERS_ONLY_MESSAGE.'</b></a>';
TO READ
$replacement = '<b>'.EMEMBER_MEMBERS_ONLY_MESSAGE.'</b>';
Then go back to language file and find “EMEMBER_MEMBERS_ONLY_MESSAGE” and add the HTML there.
That fixes this completely.
Thanks again for all your help. You guys rock.
-
AuthorPosts
- You must be logged in to reply to this topic.