based on example: http://www.addtoany.com/buttons/examples/https_ssl/
I had to change addtoany.module, function _addtoany_create_button() [part of it]
to:
// default: ssl warning "this page contains both secure and not secure... " comment line
//$_addtoany_script .= '
';
//revised to:
$_addtoany_script .= '
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | drupal_addtoany_https_fix_497458_v1.patch | 953 bytes | ao2 |
| #2 | addtoany-5x23-httpsfix.patch | 626 bytes | Chad_Dupuis |
Comments
Comment #1
vpapadim commentedsorry, but i did not format the code correctly... here is the above change again.
Comment #2
Chad_Dupuis commentedThanks for this - I've created a patch for the change.... Although this should probably be written as a user defined toggle within the setup pages.
Comment #3
haus commentedHallo, I am also interested that there is a dynamic adjustment for wheather I use https oder http.
Thanks
Comment #4
ao2 commented@haus, I've seen code checking for
$_SERVER['HTTPS']to decide about https.Patch attached for 6.x-2.4
Regards,
Antonio
Comment #5
micropat commentedShooting for next release.
Comment #6
micropat commentedCommitted, and should make the next release.
Antonio, your patch only needed the 's' in https://addtoany.simplecdn.net/menu/page.js ;-)
Comment #7
ao2 commented@micropat, yeah, sorry for the typo.
I tested the changes using the old address https://http-s1.simplecdn.net/static.addtoany.com/menu/page.js, and then failed to copy and paste the new one before submitting the final patch. :)
All the best,
Antonio