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

Changing Hyperlink in "Protected Content" shortcode

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › Changing Hyperlink in "Protected Content" shortcode

Tagged: emember protected link, hyperlink, protected

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 5 months ago by tysonsugihara.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 4, 2013 at 10:34 pm #8266
    tysonsugihara
    Member

    With the short code [emember_protected scope=verified_users_only] I would like to change the hyperlink to the login page instead of the registration page. Thanks for any help in advance!

    [http://systemicformulasmedia.com] is the site

    January 5, 2013 at 2:29 am #52798
    admin
    Keymaster

    I don’t suggest you do that change because you always want to send non members to the “Join us” page first. If need be you can have a link to your login page on your join us page. The reason is that… non-members doesn’t mean they already have an account. So you want to funnel the user through the “Join Us” page. A member who is not logged in will naturally look for a “Login link” somewhere on your site to log into the site.

    Anyway, You can tweak the PHP code to customize that link so it goes to the login page.

    Open the “emember_access_checkers.php” file from eMember and search for the following line of code:

    $replacement = '<a '. $join_url .' ><b>'.EMEMBER_MEMBERS_ONLY_MESSAGE.'</b></a>';

    Now, change that to something like the following to link to your login page:

    $replacement = '<a href="your-site.com/link-to-login"><b>'.EMEMBER_MEMBERS_ONLY_MESSAGE.'</b></a>';

    January 8, 2013 at 1:34 am #52799
    tysonsugihara
    Member

    Thank you!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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