As my first somewhat official task, I set out to create a vpatch for mp-wp to add the footnotes1 and shareable text-selection2 features seen on most republican blogs. After some false starts I realized I would first need to set up a proper local dev environment for working with vtools. Luckily I had some time available during the holidays for completing this particular prerequisite, after which I was able to create a working vpatch for mp-wp.
Without further ado, the vpatch, signature, and my key:
http://billymg.com/downloads/mp-wp/mp-wp_add-footnotes-and-textselectionjs.vpatch
http://billymg.com/downloads/mp-wp/mp-wp_add-footnotes-and-textselectionjs.vpatch.billymg.sig
http://billymg.com/downloads/billymg.asc
Pressing
In order to press this patch you will need a keccak-powered v.pl
. Diana Coman was kind and patient enough to help me with this and pointed me to her post on the subject. If you are starting out with V for the first time I highly recommend grabbing the starter pack from that post. It works out of the box and will save you a lot of headaches.
Pressing a fresh copy of mp-wp from this vpatch gets you everything included in the genesis vpatch plus:
wp-content/plugins/footnotes.php
wp-content/themes/default/selection-magic.php
As well as a small modification to wp-content/themes/default/single.php
and wp-content/themes/default/page.php
to wrap post and page content in a unique ID that the selection-magic javascript can reference.
Setup of the footnotes feature followed the directions from hanbot. After setting up mp-wp you'll just need to 'activate' the footnotes plugin in the Plugins section of your wordpress admin panel.
Next task
My next official task, from hanbot this time, is to put together a vpatch to fix a small image reference bug in the genesis vpatch. I've started working on this locally and after sufficient testing will write up another blog post with the new patch.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAABAgAGBQJclb3dAAoJEEVLD8C8B7h+iEoP/3T2++2RpIKXlMM1Rmjj/Z1D
riGFDXGQjjhTgStMLtudQ/UsfWGcFlb3YpHkydizedY5eZVrbtJNJpehawBpb+pV
+vpb758YK7gdWnaauzSCQwBF9U1lTgKLcqiFf63RkR7wPnZpiKsbBE9V+9Tk5zce
fALRPBA8I3HKF8px2YVTq/cZrSrADwCsNd5542tQxOHRJurOizVQo+S5MIjq5map
ls3FDDjYPCV7hOrn/+HJ3ibof+iQf6u/QtC42jpnHkN2+p8U62/F3E5p0dmNVx8A
/t3UeTqjybYvJbWdhGIyf6oP2tukLoJjbzgY1MR+60ADVWysk8SiToJx27nJ7/al
rKcX+SRdoOeRQ53VBnpEKCrJI14OAAJWBdvyHcAWmQvrDzQtufs7H1FaHlvFPkBc
ZHEa1sIKtatoqzeBhXx80qvYWOaFztlCYR3GgnTd7nvSAFjJ+WIsefNTZmkID8Vf
71WQoyd5+IoTDQOZaHzyTeYXxxiCEpQPFZnA45KG0VXZqmai5ux7yInEBxzX9Hf0
VT50AFVtNFZKwU2wQnrlT2hupSC5ofYmaWEzwQlw3zpX2uZym9jh84WtQznqxuIJ
tseKWeaHfA3WY+UZhmWjXiJnO0DUz+XTaFPufSYN7QNW8eIbXhVoONfa6vduh1cA
FYH/Mv6DgOCQdUsSzfrp
=Euq8
-----END PGP SIGNATURE-----
[...] my first two mp-wp patches. Hanbot caught one in the .svg file extension patch. The other, in the footnotes and text-selection patch, I noticed myself after deploying the changes on this blog. Nothing was broken, just some stray [...]
[...] mp-wp_add-footnotes-and-textselectionjs.vpatch (billymg) (sauce) [...]