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 12 years, 9 months ago by admin.
-
AuthorPosts
-
February 6, 2012 at 9:06 pm #5488workhorseMember
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 #41695PeterMemberHi 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 #41696workhorseMemberyou guys are the best . . .thank you
February 7, 2012 at 10:37 am #41697adminKeymasterYou 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).
-
AuthorPosts
- You must be logged in to reply to this topic.