NP_LightBox is a simple plugin to add LightBox functionality to Nucleus blogs. NP_LightBox will automatically create a thumbnail of the image, and when clicked, will show the full size image in LightBox style.
| General Plugin info | |
|---|---|
| Author: | Seventoes |
| Current Version: | 1.0 |
| Download: | Here .zip ~10kb |
| Demo: | Here |
| Forum Thread: | Here |
Using NP_LightBox is very easy. To make an automatic thumbnail, and add lightbox functionality to an image, just follow this format while writing your post:
!~~ImageUrl[|Caption]~~!
Here are some examples:
!~~myNewBaby.jpg|Isnt it cute?~~!
That will make a thumbnail of the picture myNewBaby.jpg, which should be found in the directory specified in the plugin options, and add lightbox functionality to it.
!~~http://forum.nucleuscms.org/templates/nucleus/images/nucleusforum.gif~~! External links work as of version 0.9. Also notice that this one does not have a caption. This will make NP_LightBox show either the name of the image, or whatever text is specified in the plugin options.
The nucleus <%popup()%> behavoir can also be replaced with NP_LightBox. Heres an example: <%Popup(img.jpg|200|100|Caption)%> Width and height are ignored, so you dont need them.
Normal HTML Links may be replaced if you want too.
<a href=”img.png”><img src=”img.png”></a>
The links location must be the same as the image’s source.
<%LightBox()%> - Used to add required files to pages.
The first option is the directory which your images will be held in. This option MUST be set correctly, or NP_LightBox WILL NOT work.
The second option is the text which should be displayed if no caption is provided. This option can be set to LB_imageName to show the image’s filename.
The third option is weather or not to display thumbnails
The fourth option is the max size that thumbnails can be.
The fifth option is weather or not to replace nucleus <%popup%> behavoir with NP_LightBox behavoir.
The sixth option is weather or not to replace normal HTML image links with NP_LightBox behavoir.