Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

User Submitting Gallery Images – Part 1

Posted on January 3, 2012 by Pippin in Advanced, Custom Post Types, Member Restricted, Subscriber Only, Tutorials, Working with Attachments, Working with Users, Writing Plugins 8 Comments
Home» Tutorials » Advanced » User Submitting Gallery Images – Part 1
Tweet
Love It - 4
This entry is part 1 of 9 in the User Submitted Image Galleries Series
User Submitted Gallery Images – Part 2 →
  • 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.

Tweet Follow @pippinsplugins
attachments, gallery, images, users

8 comments on “User Submitting Gallery Images – Part 1”

  1. deckerweb says:
    January 3, 2012 at 11:16 am

    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: uig

    Domain 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 :)

    Reply
    • Pippin says:
      January 3, 2012 at 11:32 am

      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!.

    • Pippin says:
      January 3, 2012 at 11:39 am

      Updated!

    • deckerweb says:
      January 3, 2012 at 12:27 pm

      Thanx, Pippin! Just awesome :)

  2. Joshua Nicholson says:
    February 10, 2013 at 10:05 pm

    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.

    Reply
    • Pippin says:
      February 10, 2013 at 11:37 pm

      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.

    • Joshua Nicholson says:
      February 11, 2013 at 12:23 am

      mrjotz

    • Pippin says:
      February 11, 2013 at 9:00 pm

      Joshua, sorry for the delay. I’ve fully activated your account.

      Sorry for the troubles.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • User Submitted Image Gallery – Final Overview
  • User Submitted Image Gallery – Part 8
  • User Submitted Image Gallery – Part 7
  • User Submitted Image Gallery – Part 6
  • Adding a Simple Image Gallery with the Repeatable Upload Field

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes

Latest Tutorials

  • Storing Session Data in WordPress without $_SESSION (19)

    The term Session in web development refers to...

  • Test Your Plugins with RTL (1)

    Right-To-Left languages are those that...

  • Submitting Your First Pull Request to a WordPress Plugin on Github (5)

    Github is an extremely popular tool for managing WordPress plugins, and one...

Enter your email to receive automated updates when new posts are published

WP Core Contributions

  • [24316]

View the ticket on Trac.

WP Codex Contributions

  • Function: shortcode exists
  • Function: has shortcode
  • Function: shortcode exists
  • Function: shortcode exists
  • Function: has shortcode

View all 41 changes in the Codex.

Latest Tweets

  • Could not fetch Twitter RSS feed.

Topics

wp_enqueue_script contextual help shortcodes meta box Tom McFarlin register_setting featured attachments get_user_meta Sugar Event Calendar add_options_page hook campaign monitor attachment image forms short codes plugin Related posts login do_action authors mail chimp apply_filters comments recent posts post types short code bbpress taxonomies custom post type gallery Ajax images Stripe taxonomy jquery widgets users add_filter easy content types add_action widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins