Comment 3 for bug 1510421

Revision history for this message
Aaron Wells (u-aaronw) wrote :

The patch will automatically look for the old "thumb.png" file, so it should be automatically compatible with block plugins that haven't been upgraded for 15.10.

It also provides 3rd-party developers with the option to name a specific FontAwesome icon they want to use for their block.

The easiest way to test it, is to install a 3rd-party plugin using the old & the new method. I've updated my Clippy blocktype with a couple of branches for this purpose:

Clippy with the "legacy" thumb.png: https://github.com/agwells/maharacontrib-blocktype-clippy/archive/Bug1510421-thumbnail.zip

Clippy with a FontAwesome icon (a paperclip): https://github.com/agwells/maharacontrib-blocktype-clippy/archive/Bug1510421-fontawesome.zip

To test:

1. Install Mahara
2. Download the clippy plugin with the legacy thumbnail, and install it into htdocs/blocktype/clippy
3. Go to the admin screen and install the clippy plugin
4. Log in to Mahara and edit a page. Look for the clippy icon in the "General" blocks category. You should see the small, in-color Clippy icon.
5. Delete the contents from htdocs/blocktype/clippy and replace them with the version of clippy with a FontAwesome icon
6. Log back in to Mahara and edit a page. Look for the clippy icon in the "General" blocks category. You should see a black-and-white FontAwesome paperclip icon.