Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We patched the module for our site, as we run our site on HTTPS, and we needed to load the CC images over HTTPS as well to avoid certificate errors. I'm attaching the patch that we used.
Comment | File | Size | Author |
---|---|---|---|
#2 | creative_commons.module.patch | 863 bytes | bkat |
creative_commons.module.patch | 4.05 KB | rael9 |
Comments
Comment #1
bkat CreditAttribution: bkat commentedA better solution for the image uri is to remove the protocol from the URI so that uses whatever URI the page is being viewed with:
define('CC_IMAGE_URI', '//i.creativecommons.org/l');
This way if the page displaying the license image is http, it will use http://i.creativecommons.org/l and if the page is being viewed via https, it will use https to retrieve the image: https://i.creativecommons.org/l
Comment #2
bkat CreditAttribution: bkat commentedHere's a patch based on my changes.
Comment #3
stupiddingo CreditAttribution: stupiddingo commentedRTBC #2 works well in mixed mode testing.
Comment #5
sdrycroft CreditAttribution: sdrycroft commentedThanks bkat and rael9, I've committed this change.