NP_PopupImage

This plugin changes the standard behavior of Nucleus when dealing with images. Instead of separating between inline and popup images, this plugin creates inline images with an automatically generated thumbnail and a popup link to the full version. This behavior resembles most other blog systems.

General Plugin info
Author: Till Gerken
Current Version: 0.1
Download: -
Code: popupimagecode
Demo: -
Forum Thread: -

Installing

To use it, first make sure that you have ImageMagick installed. If you installed it in your path, you can leave the path field in the configuration empty. All thumbnails are prefixed with the string you need to enter in the “thumbnail prefix” field, for example the thumbnail for “mypicture.jpg” will be called “thumbnail_mypicture.jpg”.

How to use the plugin

Thumbnails will automatically be stored in the media directory of your blog. If you delete them, they will be regenerated the next time somebody tries to look at an item containing an image. If you want to force an update of your thumbnails because the original images changed, simply delete them.

To include an image in your post, choose it from the media selector and include it “inline”.

Tips and Tricks

For the popup links to be rendered correctly, you need to change the following settings in your templates:

Popup Link Code:

<a href="<%rawpopuplink%>" onclick="<%popupcode%>">

Inline Image Code:

<%image%></a>

History

code available here, with a new bugfix that was found by CalebSGnn

Alternative Plugins

popupimage.txt · Last modified: 2006/07/05 13:03 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki