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

I want to create pages only logged in affiliates can see

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Tweaks › I want to create pages only logged in affiliates can see

Tagged: affiliate login

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 5 months ago by PHPChick.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 25, 2016 at 10:50 am #12760
    PHPChick
    Spectator

    So I’ve figured out programatically how to make this work using php in my wordpress page. I’m using the insert php plugin to do this.

    in short this code will do the trick :

    [insert_php]
    $referrer = $_COOKIE['login_cookie_for_affiliate'];
    if ($referrer != ""){
    echo "Hi $referrer, thanks for logging in! ";
    echo 'MY CUSTOM PAGE CONTENT';
    }
    else{
    echo '<br><b>Affiliate login not detected.</b> Please note - you must be logged in to use this form. Please <a href="/affiliate-portal/">log in here</a> and return to this page before attempting to view this page.';
    }
    [/insert_php]

    ‘

    however – I just need to know what the login cookie name is for an affiliate is so I can lock it appropriately.

    Thanks!

    January 25, 2016 at 12:45 pm #72404
    wzp
    Moderator

    No cookies required…

    https://support.tipsandtricks-hq.com/forums/topic/global-logged-in-variable

    January 29, 2016 at 9:34 am #72405
    PHPChick
    Spectator

    awesome – thanks. This is cleaner than what I had.

  • 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