- User Submitting Gallery Images – Part 1
- User Submitted Gallery Images – Part 2
- User Submitted Image Gallery – Part 3
- User Submitted Image Gallery – Part 4
- User Submitted Image Gallery – Part 5
- User Submitted Image Gallery – Part 6
- User Submitted Image Gallery – Part 7
- User Submitted Image Gallery – Part 8
- User Submitted Image Gallery – Final Overview
In part one of the User Submitted Image Galleries tutorial series, I’m going to walk you through the beginning steps of setting up our User Image Gallery plugin. This is a plugin that will allow us to have a user-submitting gallery of images our website. If a user registered an logged-in, they will be able to hav a portfolio of all images they have uploaded. Non logged-in users will be able to submit images as guests. The plugin’s functions will closely mirror the system I built for CG Cookie, Inc.
The gallery system is going to work with custom post types, so each image in the gallery will be an entry in the custom post type. We will also be setting up a set of custom taxonomies: one that will allow us to categorize the images, and one that will allow us to tag the images, much like the default Post Categories and Tags.
This first part of the series will cover setting up the post types and taxonomies, as well as a few of the plugin options and files. Once complete, the plugin will consist of seven to ten files and will cover a large array of functions.
You must be logged in and have an active premium membership to view the rest of this content. Register or login from the sidebar.

Hi Pippin!
Thanx for the new tutorial and sample plugin – as always, rocks!!
One suggestion I have: Please add the textdomain on all Gettext strings – that’s neccessary for actually displaying translation and will users teach even more how to properly use all this localizing stuff.
Just like so:
'not_found' => __( 'No Images found', 'uig' ),So you have to had
, 'uig'everywhere within Gettext.I would still prefer to use the full plugin title for shorter plugin names so it would be “user-image-gallery” if it were mine
I have made myself a rule: for 3-words-names i use the full plugin name as textdomain and for longer names I try to find suitable abbreviations…
You could also add the following in your plugin headers for full awesomeness – also fits the full new WordPress standards & coding guidelines:
Text Domain: uigDomain Path: /languages/
This way the plugin header itself (name, description, author, link, version) becomes automatically translateable and could be perfectly read by translation plugins like “Codestyling Localization” ( http://wordpress.org/extend/plugins/codestyling-localization/ ) or the WordPress.org .pot file creator.
Thanx, Dave
Ah, absolutely correct about the gettext strings. I’ll update it now.
I prefer to use the plugin prefix for the text domain because it keeps things simpler, but either method works fine.
I wasn’t aware of the new header info, but I’ll add that now too!.
Updated!
Thanx, Pippin! Just awesome
I’m registered for the 3-month paid account and am logged in, and I can’t see the restricted content. I made the purchase yesterday.
What’s your username? I can look up your account and confirm it is activated. PayPal has been doing maintenance the last few days so accounts were not all auto activated.
mrjotz
Joshua, sorry for the delay. I’ve fully activated your account.
Sorry for the troubles.