Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

[emember_protected] Question On Join Us and Log-In

by

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, 7 months ago by avd23.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • September 23, 2012 at 8:14 pm #7467
    avd23
    Spectator

    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 #49648
    admin
    Keymaster

    You can customize most user visible text messages using the following method:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

    September 25, 2012 at 4:56 pm #49649
    avd23
    Spectator

    I 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 #49650
    avd23
    Spectator

    Even 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 #49651
    avd23
    Spectator

    Sorry 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 #49652
    admin
    Keymaster

    Open 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 #49653
    avd23
    Spectator

    So 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 #49654
    admin
    Keymaster
    $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 #49655
    avd23
    Spectator

    OK 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.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ