Slimbox is a great lightbox clone, developed by Cristophe Beyle.
The 1.7 MooTools based version has some problems in Google Chrome, that I was able to fix:
Simply change in slimbox.js lines 127 to 132 to this:
if ( center.offsetWidth != centerWidth || center.offsetHeight != centerHeight ) {
check = fxResize.start({width: centerWidth, marginLeft: -centerWidth/2, height: centerHeight, top: top});
}
It alters the animation a little bit, but I think this is as good as the original. See a demo on my projects page.
This an easy solution for adding tag support for any website. This is not a complete script, or addon, just a method you can use easily. The result will produce a tag cloud, like the one you can see in my sidebar.
STEP 1: Setup. Let's assume that you have a site that stores the articles in a table. You have to add a field that will store the tags. The tags will be separated by a space character.
If you ever struggled with converting new lines to "br" tags and keep the new lines inside the "pre" tags, then you will value this:
Although CodeIgniter has a nl2br_except_pre() function, it ignores the "pre" tags with attributes.
I've quickly looked through the official documentation of the nl2br() function just to save some time, and found a solution at the bottom of the page by Greywyvern. Unfortunetly it was too complex, so I modified it to my needs.
Press 'read more' to download the code.
All rights reserved, ©2008-2010 - Built on CodeIgniter framework - Konami codes - Mostly Valid XHTML 1.1 - Valid CSS 2.1