Link to Image adds BBCode and HTML link codes to the image view. Offers code for a customizable text link, thumbnail links, and full image inline.
Author: Erik Youngren <artanis.00@gmail.com>
License: GPLv2
Submit a Bug Report or Suggestion for Link to Image:Use¶
There is one option in Board Config: Text Link Format.
It takes the following arguments as well as plain text.
|| arguments || replacement ||
|| $id || The image ID. ||
|| $hash || The MD5 hash of the image. ||
|| $tags || The image's tag list. ||
|| $base || The base HREF as set in Config. ||
|| $ext || The image's extension. ||
|| $size || The image's display size. ||
|| $filesize || The image's size in KB. ||
|| $filename || The image's original filename. ||
|| $title || The site title as set in Config. ||
Link to Image will default this option to '$title - $id ($ext $size $filesize)'.
To reset to the default, simply clear the current setting. Link to Image will then fill in the default value after the save.
To leave the setting blank for any reason, leave a space (' ') in it.
Theming¶
Link to Image now has a prototype theme engine built into it. All HTML generation has been moved to a seperate file.h1. Install <pre> 2. In the Config panel, make sure Base URL is set (you may as well set Data URL while you're there, if you haven't already.) <pre> <pre> ** http://trac.shishnet.org/shimmie2/wiki/NiceURLs - Nice URLs ** Recent changes to .htaccess (with its addition to the SVN) may make this step unnessasary. h1. Change Log = Version 0.2.0 - 20070529 == <pre> h2. Version 0.1.4 - 20070510 * Style changes. * Added output containing only the locations of the thumb, image and post. * Added a link to wikipedia's HTML page, just as BBCode has a wikipedia link. h2. Version 0.1.3b - 20070509 * Renamed style.css to _style.css to avoid the auto loader. h2. Version 0.1.3 - 20070508 * Created Readme.txt * Merged 0.1.2 into 0.1.2b * Removed uneeded documentation from main.php * Rewrote the css to be unique. Previously used CSS I wrote for elsewhere. Styled to reduce space consumption. * Added code to insert the CSS import. ** Updated Nice URLs to allow access to the /ext/ folder. (Why is my stylesheet returning HTML instead of CSS?) * First SVN update. h2. Version 0.1.2b - 20070507 (fairly simultaneous with 0.1.2) * shish: ** Updated to new extension format *** Created folder link_image in trunk/contrib *** Renamed link_image.ext.php to main.php and moved to /link_image/ <pre> ** Documentation (different from mine.) ** Changed add_text_option() and added add_label() in SetupBuildingEvent because I was using an edited version of the function that shish didn't know about. It was a wonder that didn't throw massive errors. ** Published on SVN. h2. Version 0.1.2 - 20070506 * Textboxes now select-all when they gain focus. * Commenting and documentation. h2. Version 0.1.1 - 20070506 * Fixed HTML thumbnail link code. (image tag was being html_escaped twice, resulting in "$gt;" and "<" from the first escape becoming "&gt;" and "&lt;") It turns out that html_escape was completely unnecessary, all I had to do was replace the single-quotes around the attributes with escaped double-quotes ('\"'.) h2. Version 0.1.0 - 20070506 * Release. h1. Links * http://trac.shishnet.org/shimmie2/wiki/Contrib/Extensions/LinkToImage - Home * http://trac.shishnet.org/shimmie2/browser/trunk/contrib/link_image - Shimmie2 Trac SVN * http://forum.shishnet.org/viewtopic.php?p=153 - Discussion