<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jes.Gs v2.0 &#187; scripts</title>
	<atom:link href="http://www.jes.gs/tag/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jes.gs</link>
	<description>The Portfolio and Blog of Minneapolis Web Designer Jessica C. Green</description>
	<lastBuildDate>Sat, 21 Jan 2012 19:56:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP and XML: LightGallery</title>
		<link>http://www.jes.gs/general/php-and-xml-lightgallery/</link>
		<comments>http://www.jes.gs/general/php-and-xml-lightgallery/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 03:47:00 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=247</guid>
		<description><![CDATA[Light-weight Image Gallery script powered by PHP and XML.]]></description>
			<content:encoded><![CDATA[<p>LightGallery is a new light-weight gallery script that I wrote as an answer to &#8220;weightier&#8221; scripts like Gallery and Coppermine. LightGallery does not require MySQL to run; however it <em>does</em> require <strong>PHP 5</strong> and the <strong>GD library</strong>.<span id="more-247"></span> A short example of LightGallery in action can be seen <a href="http://dumpster-fairy.com/gallery/">here</a>. You can also download the script <a href="http://www.jes.gs/wp-content/uploads/2009/03/gallery.zip">here</a>.</p>
<p>How to use LightGallery? First off, start by inserting this code at the top of any page you&#8217;d like to display your gallery:</p>
<p>Followed by:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$path</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/path/to/my/images/folder'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$thmb_size</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'thumb-height thumb-width'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$gallery</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Gallery<span style="color: #009900;">&#40;</span><span style="color: #000088;">$path</span><span style="color: #339933;">,</span> <span style="color: #000088;">$thmb_size</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Output</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><code>$path</code> is obviously the full path pointing to the directory where your images reside. Replace <strong>thumb-height</strong> and <strong>thumb-width</strong> with the desired height and width of your thumbnail. The beauty of LightGallery is that it is one PHP Class that can be used as many times as need be. If you need to create a new gallery, all you have to do is create a new directory, upload your images to that directory and create a new Gallery object with <code>$path</code> set to that path.</p>
<p><strong>Some limitations include</strong>:<br />
The gallery directory has to be one level below the root directory where <code>gallery.php</code> resides. Another limitation is that LightGallery uses jQuery and ThickBox and ThickBox is hard-coded into LightGallery, though I plan to change that at a later date.</p>
<p><strong>Tips</strong>:<br />
If you want your thumbnails to display tool-tips and have captions in ThickBox, edit the <code>album.xml</code> file that is created in the directory where your images reside. Specifically edit the  and  tags so that they contain your desired title and description. Another planned edition to LightGallery is a single-user backend to allow easy editing of titles, descriptions and possibly deletion of images.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/general/php-and-xml-lightgallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

