=== 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.2 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? = There are a couple of ways to implement your new fields in the various template. The method you should use if you are running the latest version of NGG (1.2.1 at the time of writing this), is by putting this tag where you want your field to show: `ngg_custom_fields["Your Field Name Here"]; ?>` = That didn't work!? = If you are using an older version on NGG, that might not work. Then you need to use the following tag instead: `` = 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'); ?>` = 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