### Plugin overview

For Version 0.94

NP_Gallery provides a nucleus-native integrated photo and image gallery. It is designed to be 'nucleus-like' in its function and usage.

### Table of Contents

- Features
- Important links
- Plugin Requirements
- Installation
- SkinVars
- Plugin Options
- Configuration
- Templates
- Internationalization
- Version History

### Features

- Controllable from Nucleus Admin Area
- Fully template driven, CSS tableless output
- Automatic thumbnail creation using GD or Imagemagick
- Extends nucleus plugin API
- Compatible with captcha plugin
- Use keywords to assign pictures to sets, dynamically display the sets on your blog
- Ability to create 'hover tooltips,' drawing boxes around people and naming them
- Massupload via FTP - infinite amount
- Slideshow feature
- Previous and next thumbnails
- Album teams, public/private albums
- album thumbnails per page
- display dynamic "promotional posts" in your blog.
- More

### Important links

- Newest versions hosted here :Link
- Versions up to 0.8 can be downloaded from the nucleusplugin sourceforge page: link
- Gallery plugin wiki page link
- Nucleus support forum threads

### Plugin Requirements

Besides the nucleus requirements of php 4 or greater and mysql 3.58 or greater, NP_Gallery requires either GD v2 or greater or Imagemagick be installed on the server. Additionally, the database user (as set in nucleus' config.php) needs to be able to create temporary tables in mysql.

### Installation

NP_Gallery installs as any other plugin in nucleus, but requires some extra steps to be fully functional.

First, clone your current skin and rename it NPGallery. Click on all of the skin parts EXCEPT for 'main index' (ie archive, archive list, etc), delete the contents and click 'update skin'. As 'main index' part is the only skin part used by the plugin, the other parts are superfluous and can be deleted. If you don't want to delete them, they will not interfere with the function of the plugin.

Now modify the main index part of NPGallery skin to display the gallery instead of your blog. Do this by replacing your <%blog(default/index,10)%> statement with <%gallery%>. This will make the gallery page look just like your blog page (with the obvious differences) including the right/left menus (if you have them). These can be omitted, or you can make your gallery page look totally different than your blog page. The NPGallery skin is what controls the look. Some skins such as leila do not have this in the skin template, but in some other file that is included, just copy and paste everything from that included file into the skin template and replace blog with gallery.

Second, create your gallery directory and make it writable. By default this directoy is media/gallery, but it can be any directory you want it to be, however if you change from the default directory you will need to change the gallery configuration in the admin area. To make the directory writable, chmod the directory to 0777. Search for one of the many tutorials on the web if you are unsure how to do this. If you want to use massuploads, create an empty directory /upload in your blog root and chmod it to 777.

Third, Create a new blog, and set that blog to use the "NPGallery" skin you created in step 1.

Finally, make a link to your gallery somewhere in your main blog page. This is usually something like www.mysite.com/index.php?blogid=2 where the number is whichever blog you created.

Some Frequently Asked Questions are answered in FAQ.html , such as removing the sidebar and getting the gallery to put thumbnails that will the whole page.

Now you can configure your gallery by going to the gallery admin area. This initial configuring is important in getting the gallery to work.

### SkinVars

Note: These skinvars are intended to be used in general nucleus skins. They are not designed to be used in np_gallery templates.

- Gallery(link): returns a hyperlink to the gallery album list page. Usage example: <a href="<%gallery(link)%>">Gallery</a>
- Gallery(sets,keywords,aesc/desc): displays the pictures with keywords "keyword", supports multiple keywords, seperated with ' and ',aesc/desc for aescending or descending.example <%gallery(sets,pets and girls,desc)%>, will show pictures with the keywords 'pets' and 'girls' in a descending order.
- Gallery: displays the Gallery page (album list, album, picture, etc). It is meant to be used in the NPGallery skin. Usage: <%gallery%>

### Plugin Options

Most of NP_gallery options are configured on the gallery admin page, but there are some basic options in "edit options" for NP_Gallery in the plugin menu.

### Configuration

###