Archive for the 'ikiwiki' Category

Plugin Updated

Got a mail from someone that gallery plugin, which I made for IkiWiki is not working and is giving error while rendering images..
Firstly, I thought that he must be making mistakes in setting the permissions of directories or probably because of some difference in settings. As, I formatted my comp few days ago, I didn’t have working version of IkiWiki so I downloaded the newer one and installed the plugin. Sadly, I found out that I faced the same problem. After, long hours of looking in the code and IkiWiki discussion pages, I found out that IkiWiki has changed the permissions for files which are being rendered by plugins and are not present in source directory mentioned by user.
And, files in directory called underlay dir can only be used by plugins.
Updated the plugin, so as to allow turning off resizing feature.. I still don’t know how the thumbnails were getting rendered when images were not..
Anyway, plugin is in usable state again .. and you can use it as

[gallery imagedir="imagedir" resize="0" options="" ]

I will allow resizing again as soon as I look into the “conditional underlay of files”. For those of you who are using the older version of IkiWiki, you won’t face any problem, so enjoy :)

It always feels great to see that people are using something developed by you :)

I need to switch to IkiWiki asap for blogging. I need desktop blogging software, I don’t want to go to blogger every time I have to write something. See, this is why frequency of my posts is very low.. .. I can peacefully write from my terminal window. :) Only problem with that is that, I only would be managing the database in that case which increases the probability of all the posts getting deleted by infinity :(

Jo bhi hai, newer version of gallery plugin is at SVN repo :
http://ned.snow-crash.org:8080/svn/ikiwiki-gallery/

Gallery Plugin for Ikiwiki

Ikiwiki is a wiki compiler. It converts wiki pages into HTML pages suitable for publishing on a website. You can read more about it here.

As a part of Google Summer of Code, I have implemented the initial version of the Gallery Plugin for Ikiwiki. I am using one similar version here. This plugin is implemented using Lighbox2.03. The plugin creates a nice looking gallery of the images, once the directory of images is specified. I would soon be adding features to display meta contents of images also.

Gallery Plugin can be downloaded from here.

Details about the files :
gallery.tmpl and page.tmpl => Template files which have to be put in template directory.
gallery.pm => Plugin File to be put into the Plugins directory.
Rest all files and folders are javascripts for creation of gallery which have to be put in base directory.

Plugin can be used as =>
[gallery imagedir="images" thumbnailsize="200x200" cols="3" alt="Can not be displayed" title="My Pictures"]

where-
- imagedir => Directory containing images. It will scan all the files with jpg|png|gif extension from the directory and will put it in the gallery.
- thumbnailsize => Size of the thumbnail that you want to generate for the gallery.
- alt => If image can not be displayed, it will display the text contained in alt argument.
- cols => Number of columns of thumbnails that you want to generate.
- title => Title of the gallery.

Features of the Gallery Plugin:
- You can go the next image by clicking on the right side of the image or by pressing ‘n’.
- Similary, you can go the previous image by clicking on the left side of the image or by pressing ‘p’.
- Press esc to close the gallery.
- While on image, nearby images are preloaded in the background, so as to make the browsing fast.

Right now, it features only one template namely lightbox. Lightbox can be downloaded from http://www.huddletogether.com. Later on, I will add few more templates.
For any queries or feedback, please mail me at arpitjain11 [[AT]] gmail.com
Visit here for more details as I will keep on updating here. :)