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

Affiliate wigget links

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Affiliate wigget links

Tagged: affiliate widget, SSL

  • This topic has 3 replies, 3 voices, and was last updated 13 years, 3 months ago by admin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 6, 2012 at 9:06 pm #5488
    workhorse
    Member

    I have the affiliate login url in my affiliate settings but the links to the affiliate signup and forgot password in the affiliate wigget has links to the defualt affiliate pages. I would like these to go to the affiliate sign up pages that is in the site proper.

    I would also like them to beusing the ssl layer. I set all my other affiliate login links to https. Is there anything else I should be doing to make sure that the affiliate program works in the ssl mode.

    Thank you.

    https://theultimateyogi.com/store/affiliate/

    the affiliate wigget is at the bottom of the side bar there.

    Jason

    February 7, 2012 at 5:07 am #41695
    Peter
    Member

    Hi Jason,

    Regarding the sidebar widget Affiliate links – you’ll need to perform a small hack in the code to get the links to show your configured affiliate url.

    I’m personally reluctant to encourage source code hacks as this causes complications if you need to download an updated version of the plugin in the future because you’ll lose the changes or will need to re-hack them.

    However if you’re desperate and really need this then here is a hack I’ve just come up with:

    1) make a copy of the wp_affiliate_login_widget.php file and keep this original version in a separate and safe directory on your computer in case you stuff things up.

    2) After you’ve made a copy of the original file, now edit the wp_affiliate_login_widget.php file and look for the code where the following function is defined.

    This is the ORIGINAL code:

    function aff_login_widget()

    {

    if(aff_main_check_security())

    {

    $output = show_aff_widget_logged_in_details();

    }

    else

    {

    $output = show_aff_widget_login_form();

    }

    return $output;

    }

    Modify the above so it looks like the following:

    function aff_login_widget()

    {

    $affiliate_login_url = get_option('wp_aff_login_url');

    if(aff_main_check_security())

    {

    $output = show_aff_widget_logged_in_details($affiliate_login_url);

    }

    else

    {

    $output = show_aff_widget_login_form($affiliate_login_url);

    }

    return $output;

    }

    Regarding the SSL question, you might have to wait till Admin sees this post because he is the expert in that subject.

    February 7, 2012 at 7:31 am #41696
    workhorse
    Member

    you guys are the best . . .thank you

    February 7, 2012 at 10:37 am #41697
    admin
    Keymaster

    You can simply use the following shortcode on your sidebar to show an affiliate login widget for the on page version (add a text widget and use this shortcode):

    [wp_aff_login_onpage_version url="link-to-your-affiliate-login-page"]

    If you have your WordPress page(s) working with SSL then the plugin will automatically work with SSL (there is nothing special that need to be done).

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