Skip to content

About

BitMate Author Donations is a WordPress plugin for authors on WordPress powered sites to accept cryptocurrency donations.

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Repository files navigation

BitMate Author Donations - WordPress Plugin

BitMate Author Donations is a WordPress plugin for authors on WordPress powered sites to accept cryptocurrency donations. It can automatically add a cryptocurrency donation box below all posts, or can be manually placed via the "BitMate Donation Box" block in the editor, the built in shortcode [bitmate-author-donate] and/or widgets for sidebars and visual page builders.

Here are a few of the special features you might not notice at first:

  • Full block editor (Gutenberg) support: insert the "BitMate Donation Box" block anywhere, with a live preview and an optional recipient picker for pages without an author.
  • Can be used in "Maximalist" Bitcoin only mode with classic styles or will adapt to a modern multi-currency display when you add other currencies.
  • Sets Bitcoin label & message when using compatible installed wallets.
  • Makes use of compatible URI formats where possible, for example BIP 21 for Bitcoin.
  • Uses local and self-hosted fonts to avoid calling other servers.
  • Works without Javascript enabled - although offers optimisations when it is!
  • Makes use of open-source self-hosted QR code generator for increased privacy.

This GitHub repository is designed for active development and community collaboration. You can download the current release from the official WordPress repository.

Planned Features

  • International translation hooks
  • Investigate xpub key generation support

Plugin Installation

  1. Upload bitmate-author-donations to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enter a valid bitcoin address on the User Profile page under “BitMate Donation Information” for any users that wish to enable the donation box.
  4. Configure the display options through the “BitMate” page.
  5. (Optional) Add the "BitMate Donation Box" block or use the [bitmate-author-donate] shortcode anywhere you want to manually include the donation box, e.g. WordPress pages etc.

Development

The block editor assets are built with @wordpress/scripts. The compiled output in build/ is committed, so deployed sites do not need Node. To work on the block source in src/:

npm install
npm run build      # or `npm run start` for a watching dev build
npm run plugin-zip # creates bitmate-author-donations.zip for distribution

Frequently Asked Questions

What if I don't want the donation box to appear on my posts?

You can simply remove your cryptocurrency addresses from your user profile to disable the box from appearing on your posts. Alternatively if you would like to disable automatic inclusion sitewide, then you can disable the box after posts on the Display Settings page.

I need help with something not mentioned here?

Check out the official plugin site for more information and support.

I've found a bug and/or would like to suggest an improvement.

Check out the GitHub Repository if you would like to contribute to the continued development of the plugin.

Changelog

3.0.0

  • Removed obsolete plugin-support donation addresses and promotional QR images.
  • Secured notice dismissal and fixed wallet links and multiple donation box IDs.
  • Added full block editor support via the new dynamic "BitMate Donation Box" block, including a live editor preview and an optional recipient (user) picker so the box can be used on pages and templates without an author.
  • Automatic display below posts is unchanged, and now skips posts where the block or shortcode has been placed manually so the box is never duplicated.
  • Bitcoin Cash and Litecoin are now legacy currencies: existing addresses keep working and remain editable, but the fields are no longer offered to users without one.
  • Consolidated the donation box markup into a single shared renderer used by the automatic display, shortcodes, widget and block.
  • Moved the copy-to-clipboard and tab scripts from inline markup into a single enqueued script using the modern Clipboard API (with a legacy fallback), allowing multiple boxes per page.
  • Escaped all donation box output and added nonce verification plus sanitization to the user profile address fields.
  • Enabled translation loading (load_plugin_textdomain).
  • Now requires WordPress 6.5+ and PHP 8.0+.

2.1.0

  • Added international string capabilities
  • CSS Updates for Default Themes

2.0.2

  • Content display fix

2.0.1

  • Updated Welcome Page
  • SVN Image Directory Fix
  • Updated Read Me

2.0

  • Created "Maximalist Mode" which uses legacy styling when only a Bitcoin address is in use.
  • Added support for additional cryptocurrencies; Ethereum, Litecoin, Monero, ZCash.
  • Add option to show/hide names next to cryptocurrency icons.
  • Integrated CryptoFont by @AMPoellmann based on design inspiration from criptonoticias
  • Using Semnatic Versioning with consideration to; overall interface adjustments and cryptocurrency URI parsing as major (X.0.0), feature and currency additions as minor (0.X.0), and bug fixes as patches (0.0.X).
  • Moved from Google QR Chart API to local open source generator for improved privacy.
  • Added welcome/update screen.

1.2.2

  • Fixed page display bug.

1.2.1

  • Fixed mixed content error for SSL enabled websites.
  • Removed encoded character bug on settings page.

1.2

  • Fixed content display for authors without bitcoin address.

1.1.2

  • Display below posts option now only applies to posts, not pages.

1.1.1

  • Widget QR Code Bugfix

1.1

  • Added BitMate author donation widget
  • Optimised responsive CSS for improved display at smaller widths

1.0

  • First Public Release

Developer

Plugin developed by BitMate - Please visit our website and subscribe for updates to stay in the loop.

Any development project is based on thousands of hours of past development projects and learnings. We'd also like to give a shout out to the following people and companies that have helped make this possible in one way or another (listed in alphabetical order); Matt Corallo, Luke Dashjr, Denso Wave, Dominik Dzienia, Satoshi Nakamoto, Alexander Manfred Pöllmann, Nils Schneider, WordPress, and the teams behind all related cryptocurrency and open source libraries used in this project in the past, present or future.

WordPress Meta

  • Contributors: danielmcclure
  • Tags: bitcoin, donate, donations, cryptocurrency, currency, payments, bitmate, ethereum, monero, zcash, block
  • Requires at least: 6.5
  • Requires PHP: 8.0
  • Stable tag: trunk
  • License: GPLv3 or later

About

BitMate Author Donations is a WordPress plugin for authors on WordPress powered sites to accept cryptocurrency donations.

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages