Closed kookster closed 1 year ago
@debenedictis we discussed on slack that you thought you could handle this, if not let me know.
@ginalooch can you provide a configured button to @debenedictis, or do we need to get it another way?
<script>
(function() {
if(document.querySelector('.commitchange-donate[data-fixed]')) return;
var cc_donate = document.createElement('div');
cc_donate.innerHTML = "<a data-fixed class='commitchange-donate'></a>";
document.body.appendChild(cc_donate);
var npo = 4341;
var script = document.createElement('script');
var first = document.getElementsByTagName('script')[0];
script.setAttribute('data-npo-id', npo);
script.id = 'commitchange-script';
script.src = 'https://commitchange.com/js/donate-button.v2.js';
first.parentNode.insertBefore(script, first);
})();
</script>
@ginalooch that code looks like it is for the basic, fixed position button that floats at the very bottom of the page - which is not going to work for replacing the donate button in the menu, for example:
http://www.radiotopia.fm/radiotopia/
Using the 'guided' button creation, you can use your own text or image, and you can set specific donation levels, such as what match our current campaign. I'll take a look at this with Robert when I get in this afternoon.
Am I right that we want this donation button to have similar behavior and donation levels as the existing campaign?
There is something fishy going on with CC button builder, I have contacted Yutaka. It only allows me to add 12 designations (despite the fact that it says I can add up to 20). That said, until that gets sorted out, I have set up a donate button that will go to Radiotopia as a place holder (included below). I will f/u if I am able to create the other button with all 13 shows represented.
Instructions to include the donate button:
<script>
(function() {
if(document.getElementById('commitchange-script')) return;
var npo = 4341;
var script = document.createElement('script');
var first = document.getElementsByTagName('script')[0];
script.setAttribute('data-npo-id', npo);
script.id = 'commitchange-script';
script.src = 'https://commitchange.com/js/donate-button.v2.js';
first.parentNode.insertBefore(script, first);
})();
</script>
<a data-amounts='10,20,30,70,100,200,1000' class='commitchange-donate' data-custom='' data-designation='Radiotopia'><span>Donate</span></a>
@ginalooch, Is it possible to get just a link like is currently use for Donate here:
http://www.radiotopia.fm/radiotopia/
The link for Donate on that page is:
https://commitchange.com/ma/cambridge/prx-inc/campaigns/radiotopia-fall-campaign-2015
Can I just use https://commitchange.com/ma/cambridge/prx-inc for now and implement it with the embed later?
I look forward to hearing from you.
Thank you, Robert
I think this is what you need @debenedictis
The anchor tag gina provided above can be used to replace the anchor tag in the menu at the top of the radiotopia.fm page.
@ginalooch @kookster ok, Thank you.
related: Add adzerk Logo to Radiotopia footer (https://github.com/PRX/radiotopia.fm/issues/18)
And, Kerri has requested a once-per-person "Thank You" SumoMe Welcome Mat for the main Radiotopia.fm page.
The SumoMe Welcome Mat has been paused on all of the producer websites
@ginalooch: is this what you want to see when someone clicks Donate on radiotopia.fm after 6pm today?
Added AdZerk to footer (in my local copy).
Thank You Mat ready to go at 6pm.
The Thank You mat is now live.
@debenedictis is this done? if so, pls close.
@ginalooch How long should the thank you mat run on Radiotopia.fm?
n/a
Turn off Sumome for the RT producer websites
Turn off the re-direct on RT.FM after 6p Thurs (revert the changes @farski made to hide the homepage)
Make sure there is a new donate button (not the old paypal) on the RT.fm site (see below).
Add Sumome welcome mat to RT site that reads: "Thank You for Listening, Loving & Sharing".