=== Plugin Name === Contributors: shauno Tags: nextgen-gallery, ngg-custom-fields, custom, fields Requires at least: 2.7.1 Tested up to: 2.7.1 Stable tag: 0.1 Creates the ability to quickly and easily add custom fields to images in a NextGEN Gallery. == Description == This plugin was developed to add custom columns to the excellent and popular NextGEN Gallery plugin. Simply enter the name of your new field(s), select between "input", "textarea" or "dropdown", and the field(s) will be automatically added to the manage images form in the NGG admin panel. == Installation == 1. Upload `ngg-custom-columns.php` to the `/wp-content/plugins/ngg-custom-columns/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Have a look at the FAQ to see how to work this thing == Screenshots == None available yet == Frequently Asked Questions == = How do I use this thing? = Simple! Once you have installed the plugin (pretty much like every other one out there), a "Setup Fields" option will appear under the "NGG Custom Fields" menu item. Click on the link and you will be presented with a screen allowing you to add custom fields. Capture the name and type of the new field you want to create, and press the shiney blue button "Create Field" Button. Your new field will now be in the "manage gallery" page for your NextGEN Gallerys. = Fantastic! Now how do I show my fancy new field? = Ah, glad you asked. All you have to do is place the code `` in the gallery template! = What the hell is "(int)IMAGEID" and/or "(string)FIELDNAME" = Not a php coder are we? No problemo! You need to replace `(int)IMAGEID` with the id NGG has assigned the picture. For instance, in `nextgen-gallery/views/gallery.php`, that would be `$image->pid` in the `foreach` loop (roughly line 38 in NGG 1.2.1) The `(string)FIELDNAME` is the name of the field you previously set up. So, if you setup a field called "Awesome field", the code you would add to the gallery template would look like this: `pid, 'Awesome field'); ?>` = Are you working on new versions? = To be honest, I don't know yet. This plugin was created because I needed it. Then I figured, it might be useful to someone else out there, so I decided to release it. It is actually my first release WordPress plugin, so I will have to gauge the interest before commiting to anything. = Can I hack / modify / steal the code? = Of Course! If you didn't already know, WordPress encourages use of the GPL licenses. This means you can pretty much do what you want with this code. Have a look at file `COPYING` that should have been provided when you download this plugin. If you cant find the file, have a look at [Offical GNU site](http://www.gnu.org/licenses/licenses.html#GPL) for more info