This is a quick and quality solution for every developer that needs / wants to add custom fields to the user registration process and use them later. I needed this badly for my WordPress Multisite installation and couldn’t find a description anywhere. Now before we begin it’s good to note that:
This solution uses three custom functions connected to WP’s hooks and filters and so doesn’t touch the core,
My setup included a multisite installation and I’m running the great Theme My Login plugin to bring the user registration process to frontend. This plugin however just re-uses existing WP code and so the following solution should also work without this plugin installed.
I wanted to expand the registration process as pictured on the right – add a simple captcha field and add one dropdown list with two values: ‘jobseeker’, and ‘employer’. The latter needed to be saved into the database under the ‘user_type’ user meta field.
How the user registration process goes
Once the user signs up for his/her account but before its activation (by clicking on a link in the user activation email), instead of creating the account right away WP creates a record in the wp_signups table, like so
Custom user meta fields that you want to include are put inside a serialized array in the meta column (the last column on the phpMyAdmin screenshot above). As you can see I added a meta field called “user_type” with the value “employer”.
Once our user activates his/her account, all data inside that array is converted into familiar user_meta fields that we can easily retrieve.
One of my readers, Geoff Raygada from UK gave us all an amazing treat by sending me his detailed tutorial about converting the Olympus Camedia C5060 to infrared. You can read it in full below. Geoff is an avid photographer and he also was kind enough to share with us some samples of his infrared photography that you can see right here
Make sure to check out his flickr profile. Thanks Geoff! The difference between Geoff’s approach and mine is that so far I’ve always replaced the set of filters with clear, optical, borofloat glass (hence getting rid of the anti aliasing filter in the process), while he chose sensibly to preserve the original filter while only removing the infrared-blocking layer by means of polishing it off entirely.
One of my readers, Geoff Raygada from UK gave us all an amazing treat by sending me his detailed tutorial about converting the Olympus Camedia C5060 to infrared. You can read it in full here. Geoff is an avid photographer and he also was kind enough to share with us some samples of his infrared photography that you can see below.
Information: Starting today I am offering a PEN (E-P1, E-PL1 and E-P2) Full Spectrum / Infrared conversion service within Europe. The price of the conversion is 120 € plus cost of shipping both ways (to and from Poland). Please contact me for more details.
Hello everyone. I get asked quite often by email (damn, how nice is to be able to write that!) about details of replacing the glass filters over the sensors of your soon-to-be modified cameras. Please stay tuned! A detailed article about it is in the works (the Infrared Primer pt. II as I call it). Until then I present you another short tutorial about converting a PEN camera. If you are new to the topic of infrared and wide spectrum photography, I recommend that you read the Infrared Primer pt. I to get a hang of the physics, and my somewhat old overview article on wide spectrum photography. If you feel that my descriptions in this tutorial are a bit vague and inexhaustive, please look through my several previous tutorials. It’s all been said and covered there, along with many useful tips!
About the E-PL1 as modified IR / wide spectrum camera
I have to admit, albeit reluctantly, that the E-PL1 in a way seems better than the E-P2 itself. It’s more responsive, the screen seems to have a higher refresh rate and looks more crisp. It has a built in flash that can control up to 3 groups of external flashes, just like the flagship E-3 and E-5 could (reviews seem to fail to mention that). True that gone are the two control dials, but the interface and configurable buttons make more than up for it. I love the way how I can assign autofocus to the big record button in MF mode (a trick our good old Olympus friend Andrzej Wrotniak taught us). The bottom line is that the E-PL1 is dirt cheap for such a fine camera that it is! Let’s convert it to enjoy;
the lack of the AA filter,
increased spectrum of available light, hence shorter exposure times,
weird, retro instagramish color hues without IR filters on the lens,
This post is about integrating Fancybox (or any other lightbox-type image viewer) in WordPress (or any other CMS for that matter :)). Usually to wrap and nicely display your image inside Fancybox, you need to give it a class=”lightbox”, a rel=”lightbox” attribute, or something similar. Even if for you it’s only a bit of pain in the butt, for your clients this might be a hurdle they just can’t overcome while updating their websites.
I propose a nice, fully automatic solution. You can easily adapt it for your own CMS and lightbox script. I’ll explain bits and pieces first, and at the end present you with full code to copy and paste. Please note that by default, WordPress already has Thickbox implemented, and the most elegant way to implement lightbox in WP is to use it, however this is out of scope of today’s post. Also notice that the code below is for jQuery framework. If you use mooTools, etc. you’ll have to play with it a little. Also this code could’ve been more compact, but it works nicely as it is and it’s easier to explain as it is.
The big idea is to pluck all of the images that we want (in WP – images of class “wp-image”, that are children of an anchor element) and put them in an array. We don’t want to just tear all of your interface images along with them. To do this, I use;