Video: The Royal School of Needlework

Sometimes I wish I lived in Europe! So many museums and school featuring wonderful needlework can be found in Europe. Last winter DMC even invited us Marie-Claire Idées readers for a factory visit (factory video) but for me to attend is enormously expensive because I am in Montreal, Canada. A quilter friend posted this lovely video today and I thought I would share it with you.

Visit The Royal School of Needlework!

Header Rotation Script from WordPress Media Database

This simple script functions as a replacement script for Matt Mullenweg’s classic rotation script from 2003. This script fetches a random image from the native WordPress Media gallery of file attachments. It was created to give my clients full control over their galleries of random backgrounds, headers, etc. I build sites and coach clients to be 100% independent within the native WordPress environment.

Just like the original file, it’s not a plugin, therefore the footpath and render time is minimal. It calls upon your wp-config.php file so you should not have to configure anything other than your file name wildcard.

All your images should be the right size but it is possible to use it with Timthumb. I works with WordPress 2.6+ and is based on standard installs. You may modify and distribute as you wish or embed in your themes.

https://github.com/MarieLynnRichard/wpdb-header-rotation

INSTRUCTIONS:

Current version: 1.0

After saving the file rotator.php, edit it in a text editor.

  1.  Edit the $wildcard with the name of your images.
  2. Upload all your images in WordPress’ Media interface.
  3. Place this file in a folder named scripts in /wp-content
  4. Test your results by calling this file directly @ http://yourdomain.com/wp-content/scripts/rotator.php
  5. Change the value of $test to 0 so the script redirects to your image.
  6. In your theme, change the name of the image you wish to rotate to:
    /wp-content/scripts/rotator.php

If you would like to control many random image groups, un-comment the switch block and call your ?place= in addition to the script.

See it in action


On the Brooklyn Grange website
where it is used as a random background switcher.