Add Give Butter script to header #138
Labels
No labels
A11y
Automated Testing
Contributable
Contributed
Decision
Design
Development
Drutopia
IndieWeb
Infrastructure
Launch Critical
Marketing
Needs documentation
Post-Launch
status
Abandoned
status
Blocked
status
Deploy
status
Doing
status
Done
status
Duplicate
status
In Review
status
Needs Clarification
status
Test
status
To Do
type
Bug
type
Task
type
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: geo/geo-coop#138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not sure if this is technically an issue or just something else that we need to have done. Sorry if I'm filing this in the wrong place.
We moved from PayPal to Give Butter for fundraising and we would like to be able to embed one of their widgets on the site. Attached are Give Butter's instructions. I don't seem to have the ability to edit the header, so I'm guessing this is something you have to do. The code to add is:
Edit: Our coffers are running pretty dry right now and we need to do some emergency fundraising, so this is highest priority for us right now. Thanks.
@joshua_davis the screenshot does not give the full code, and it is probably not a good idea to try to type it out anyhow!
Could you paste it here?
We could add a module called Header & Footer scripts or this could be approximated with a raw HTML block but if this does not have to be tweaked often this inclusion of third-party assets is something that makes sense as a task for us.
Give Butter's next step, pasting a different sort of script into a page or a block, may require or be made easier by a raw HTML text format— if they show that code feel free to paste that here too.
Thanks!
@joshua_davis thank you! I'm including this remote script successfully on the test site but see there's things i was in the middle of that need to be cleaned up or removed before it goes live.
The Givebutter instructions indicate that additional inline scripts need to be added where you want the donation form or other elements. Do you know what else you want? Pasting in scripts is insecure so Drupal will fight you on that but maybe you have already tested that part out?
What we have already added is a large (half megabyte) and presumably privacy-invading script so it would be good to restrict it to the pages where the Givebutter elements are.
Side note: I added the script by making a quick contrib module to do so, so the settings can be updated in the future without need for code or deployment like this:
Per e-mail: Script will look like:
<givebutter-widget id="j2qe2p"></givebutter-widget>
so a block that allows full HTML would do it.I've tried embedding that script on our donation page (which is full html) in exactly the same way I would with a YT video, and it doesn't work.
@joshua_davis Sorry all the above info was for the test site, where the
<givebutter-widget id="j2qe2p"></givebutter-widget>
but in by editing in 'Source' mode, but however you put it in looked right also, does work:https://geo-test.drutopia.org/donate
both user/pass in the popup: agaric
However there are also unresolved visual problems from working on #114 so addressing those before deploying to live.