<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using Lightbox with Apache directory listings as an image gallery</title>
	<atom:link href="http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/</link>
	<description>fun and geekery</description>
	<lastBuildDate>Sat, 04 Feb 2012 14:59:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ndv2</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-26521</link>
		<dc:creator>ndv2</dc:creator>
		<pubDate>Sat, 28 Jan 2012 02:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-26521</guid>
		<description>Hi,
    I just wanted to contribute a little bit here. For sites with very large images lightbox has a tendency to be unusable. To fix it do the following (lightbox v2.05):

- In lightbox.css, change line 2 from:
#lightbox img{ width: auto; height: auto;}
to
#lightbox img{ max-width: 800px; width: auto; height: auto; }

- In lightbox.js, right before &quot;Bug Fixed by Andy Scott&quot;, line 260, add:
if (imgPreloader.width &gt; 800) {
imgPreloader.height = imgPreloader.height / imgPreloader.width * 800;
imgPreloader.width = 800;
}
-- if the above doesn&#039;t display correctly in this post, I got the info from:
http://lokeshdhakar.com/forums/discussion/5362/solved-how-to-limit-displayed-image-width-size/p1


    I also had an issue where the images loaded far down on the page in firefox 9. To fix that:

- In lightbox.js change line 231 from:
var lightboxTop = arrayPageScroll[1] + (document.viewport.getHeight() / 10);
to
var lightboxTop = arrayPageScroll[1] + 120;


    Thats it. Thanks for these instructions Matt. You saved me a lot of time</description>
		<content:encoded><![CDATA[<p>Hi,<br />
    I just wanted to contribute a little bit here. For sites with very large images lightbox has a tendency to be unusable. To fix it do the following (lightbox v2.05):</p>
<p>- In lightbox.css, change line 2 from:<br />
#lightbox img{ width: auto; height: auto;}<br />
to<br />
#lightbox img{ max-width: 800px; width: auto; height: auto; }</p>
<p>- In lightbox.js, right before &#8220;Bug Fixed by Andy Scott&#8221;, line 260, add:<br />
if (imgPreloader.width &gt; 800) {<br />
imgPreloader.height = imgPreloader.height / imgPreloader.width * 800;<br />
imgPreloader.width = 800;<br />
}<br />
&#8211; if the above doesn&#8217;t display correctly in this post, I got the info from:<br />
<a href="http://lokeshdhakar.com/forums/discussion/5362/solved-how-to-limit-displayed-image-width-size/p1" rel="nofollow">http://lokeshdhakar.com/forums/discussion/5362/solved-how-to-limit-displayed-image-width-size/p1</a></p>
<p>    I also had an issue where the images loaded far down on the page in firefox 9. To fix that:</p>
<p>- In lightbox.js change line 231 from:<br />
var lightboxTop = arrayPageScroll[1] + (document.viewport.getHeight() / 10);<br />
to<br />
var lightboxTop = arrayPageScroll[1] + 120;</p>
<p>    Thats it. Thanks for these instructions Matt. You saved me a lot of time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-26517</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 23 Jan 2012 13:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-26517</guid>
		<description>Hi Nick

I don&#039;t think this functionality has changed since Apache 1.3.6.  Is HeaderName working?  Are you sure you have mod_autoindex enabled?  

Do you have an AllowOverride directive in your config?  You must have at least AllowOverride Indexes for this to work, although this shouldn&#039;t make a difference if putting ReadmeName in the main config file doesn&#039;t work.

Matt</description>
		<content:encoded><![CDATA[<p>Hi Nick</p>
<p>I don&#8217;t think this functionality has changed since Apache 1.3.6.  Is HeaderName working?  Are you sure you have mod_autoindex enabled?  </p>
<p>Do you have an AllowOverride directive in your config?  You must have at least AllowOverride Indexes for this to work, although this shouldn&#8217;t make a difference if putting ReadmeName in the main config file doesn&#8217;t work.</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-26515</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 22 Jan 2012 22:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-26515</guid>
		<description>Hi Matt,

thank you for your great tutorial.

I tried to establish this simple galery but i got a problem with the apache (version 2.2) 

errorlog says the following: 

&quot;.htaccess: ReadmeName not allowed here&quot;

even in the cfg file ReadmeName is not working, maybe this issue is connected with some changes in the autoindex mod -&gt; http://httpd.apache.org/docs/current/mod/mod_autoindex.html 
do you have any idea what could be wrong?

thank you for an reply!

greets,
nick</description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>thank you for your great tutorial.</p>
<p>I tried to establish this simple galery but i got a problem with the apache (version 2.2) </p>
<p>errorlog says the following: </p>
<p>&#8220;.htaccess: ReadmeName not allowed here&#8221;</p>
<p>even in the cfg file ReadmeName is not working, maybe this issue is connected with some changes in the autoindex mod -&gt; <a href="http://httpd.apache.org/docs/current/mod/mod_autoindex.html" rel="nofollow">http://httpd.apache.org/docs/current/mod/mod_autoindex.html</a><br />
do you have any idea what could be wrong?</p>
<p>thank you for an reply!</p>
<p>greets,<br />
nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ady</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-26484</link>
		<dc:creator>ady</dc:creator>
		<pubDate>Sun, 02 Oct 2011 14:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-26484</guid>
		<description>Thanks, works like a charm, it really spices up the listing pages</description>
		<content:encoded><![CDATA[<p>Thanks, works like a charm, it really spices up the listing pages</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-9089</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 18 Jan 2010 12:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-9089</guid>
		<description>Sure, I didn&#039;t think about formatting spaces nicely.  I guess it&#039;s easier just to read the innerHTML of the link instead of the href attribute.  As for a link to the image file, you can include html in the title attribute which will show up in the description.

I&#039;ve updated the post again to include these features.  Thanks for helping me make it better :)  Any more suggestions are welcome.</description>
		<content:encoded><![CDATA[<p>Sure, I didn&#8217;t think about formatting spaces nicely.  I guess it&#8217;s easier just to read the innerHTML of the link instead of the href attribute.  As for a link to the image file, you can include html in the title attribute which will show up in the description.</p>
<p>I&#8217;ve updated the post again to include these features.  Thanks for helping me make it better <img src='http://www.actionshrimp.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Any more suggestions are welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ps</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-9086</link>
		<dc:creator>ps</dc:creator>
		<pubDate>Sun, 17 Jan 2010 18:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-9086</guid>
		<description>WOW!
Now of course, it would be even better, if the image name would display spaces correctly; and would be a clickable link to the actual image so one could download it..

But as a workaround I made the right-click working in the directory index, and thanks to you one knows already the name of the picture!

I don&#039;t want to waste your time anymore.
It works great, and you, Sir, made my day! Thanks!!!</description>
		<content:encoded><![CDATA[<p>WOW!<br />
Now of course, it would be even better, if the image name would display spaces correctly; and would be a clickable link to the actual image so one could download it..</p>
<p>But as a workaround I made the right-click working in the directory index, and thanks to you one knows already the name of the picture!</p>
<p>I don&#8217;t want to waste your time anymore.<br />
It works great, and you, Sir, made my day! Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-9084</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 17 Jan 2010 15:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-9084</guid>
		<description>Good idea.  You&#039;re on the right lines.  To get the filename you need to read the href attribute.  You should also make sure that people can&#039;t somehow embed code into your page using strange filenames; below I&#039;ve used the Prototype stripScripts() and stripTags() functions.  This is the line you are looking for:

elmt.setAttribute(&#039;title&#039;, elmt.readAttribute(&#039;href&#039;).stripScripts().stripTags() );

Put this in the last if statement.  Don&#039;t forget to add a semicolon to the end of the other line!  I&#039;ve updated the code in the post.

Hope that helps.
</description>
		<content:encoded><![CDATA[<p>Good idea.  You&#8217;re on the right lines.  To get the filename you need to read the href attribute.  You should also make sure that people can&#8217;t somehow embed code into your page using strange filenames; below I&#8217;ve used the Prototype stripScripts() and stripTags() functions.  This is the line you are looking for:</p>
<p>elmt.setAttribute(&#8216;title&#8217;, elmt.readAttribute(&#8216;href&#8217;).stripScripts().stripTags() );</p>
<p>Put this in the last if statement.  Don&#8217;t forget to add a semicolon to the end of the other line!  I&#8217;ve updated the code in the post.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ps</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-9069</link>
		<dc:creator>ps</dc:creator>
		<pubDate>Sat, 16 Jan 2010 21:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-9069</guid>
		<description>Hey thanks a lot for this tip. I use it now to spice up my fancy indexes!!

Still, I wonder if you could help me adding the filename to the image description.
I think it has something to be like:

elmt.setAttribute(&#039;title&#039;, ?????????????)

But how do I read out the name of the current image?
I&#039;m sorry, this is my first look at JavaScript, I don&#039;t know how to set this variable..

Thank YOU anyway!!!</description>
		<content:encoded><![CDATA[<p>Hey thanks a lot for this tip. I use it now to spice up my fancy indexes!!</p>
<p>Still, I wonder if you could help me adding the filename to the image description.<br />
I think it has something to be like:</p>
<p>elmt.setAttribute(&#8216;title&#8217;, ?????????????)</p>
<p>But how do I read out the name of the current image?<br />
I&#8217;m sorry, this is my first look at JavaScript, I don&#8217;t know how to set this variable..</p>
<p>Thank YOU anyway!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben lagrone</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-6066</link>
		<dc:creator>Ben lagrone</dc:creator>
		<pubDate>Tue, 12 May 2009 17:25:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-6066</guid>
		<description>Thanks! I modified your instructions to upload only the images folder to the root!
I had spent my lunch trying to edit the .js ;(
You saved me countless hours of frustration.</description>
		<content:encoded><![CDATA[<p>Thanks! I modified your instructions to upload only the images folder to the root!<br />
I had spent my lunch trying to edit the .js ;(<br />
You saved me countless hours of frustration.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

