<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Simple Photo Album / Slide Show Generator</title>
	<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/</link>
	<description>i Code to help you profit!</description>
	<pubDate>Tue,  6 Jan 2009 01:51:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>

	<item>
		<title>by: michel</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-144</link>
		<pubDate>Wed, 08 Aug 2007 13:36:44 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-144</guid>
					<description>Hi Peter,

Yes, you're right.
The Unix filenames are case-sensitive.

You either need to rename the files with lower-case names
or you could adjust the &lt;code&gt;ssg-album.php&lt;/code&gt; script to get it working with &lt;code&gt;.JPG&lt;/code&gt;

Open the &lt;code&gt;ssg-album.php&lt;/code&gt; file with a text-editor and find the line:
&lt;div style=&quot;padding:1ex;border:1px solid silver;font-size:.8em;&quot;&gt;&lt;code&gt;$imgList = array_merge(glob(&amp;#34;*.jpg&amp;#34;), glob(&amp;#34;*.png&amp;#34;), glob(&amp;#34;*.gif&amp;#34;));&lt;/code&gt;&lt;/div&gt;
and add codes with &lt;code&gt;.JPG&lt;/code&gt;:
&lt;div style=&quot;padding:1ex;border:1px solid silver;font-size:.8em;&quot;&gt;&lt;code&gt;$imgList = array_merge(glob(&amp;#34;*.jpg&amp;#34;), glob(&amp;#34;*.png&amp;#34;), glob(&amp;#34;*.gif&amp;#34;),&lt;/code&gt;
&lt;code&gt;&amp;#160;&amp;#160;glob(&amp;#34;*.JPG&amp;#34;), glob(&amp;#34;*.PNG&amp;#34;), glob(&amp;#34;*.GIF&amp;#34;));&lt;/code&gt;&lt;/div&gt;

Michel</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Yes, you&#8217;re right.<br />
The Unix filenames are case-sensitive.</p>
<p>You either need to rename the files with lower-case names<br />
or you could adjust the <code>ssg-album.php</code> script to get it working with <code>.JPG</code></p>
<p>Open the <code>ssg-album.php</code> file with a text-editor and find the line:</p>
<div style="padding:1ex;border:1px solid silver;font-size:.8em;"><code>$imgList = array_merge(glob(&quot;*.jpg&quot;), glob(&quot;*.png&quot;), glob(&quot;*.gif&quot;));</code></div>
<p>and add codes with <code>.JPG</code>:</p>
<div style="padding:1ex;border:1px solid silver;font-size:.8em;"><code>$imgList = array_merge(glob(&quot;*.jpg&quot;), glob(&quot;*.png&quot;), glob(&quot;*.gif&quot;),</code><br />
<code>&nbsp;&nbsp;glob(&quot;*.JPG&quot;), glob(&quot;*.PNG&quot;), glob(&quot;*.GIF&quot;));</code></div>
<p>Michel
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: webranger</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-143</link>
		<pubDate>Wed, 08 Aug 2007 12:59:44 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-143</guid>
					<description>Michel,

I guessed the answer immediately after hitting the submit button just now. The images in the slideshow folder are listed as .JPG, just because the originator used caps. The single image I have used up until now was one of these and it worked OK, but I suppose your script calls for .jpg's and .JPG's are ignored.

Anyway, it's OK now.</description>
		<content:encoded><![CDATA[<p>Michel,</p>
<p>I guessed the answer immediately after hitting the submit button just now. The images in the slideshow folder are listed as .JPG, just because the originator used caps. The single image I have used up until now was one of these and it worked OK, but I suppose your script calls for .jpg&#8217;s and .JPG&#8217;s are ignored.</p>
<p>Anyway, it&#8217;s OK now.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: webranger</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-142</link>
		<pubDate>Wed, 08 Aug 2007 12:53:04 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-142</guid>
					<description>Michel,

Since your last reply I have been succesfully running this script on a php page on one site. Now I'm trying to do the same on another site, but it isn't working. I've replaced the code for a single image with the script and changed the page name to php and I cannot see what is the problem.

I copied both the ssg-album.php and the lines of script from the other site, the slideshow folder name is the same; I've tried everything I can think of. What can be the problem?</description>
		<content:encoded><![CDATA[<p>Michel,</p>
<p>Since your last reply I have been succesfully running this script on a php page on one site. Now I&#8217;m trying to do the same on another site, but it isn&#8217;t working. I&#8217;ve replaced the code for a single image with the script and changed the page name to php and I cannot see what is the problem.</p>
<p>I copied both the ssg-album.php and the lines of script from the other site, the slideshow folder name is the same; I&#8217;ve tried everything I can think of. What can be the problem?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: michel</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-110</link>
		<pubDate>Fri, 09 Feb 2007 07:08:10 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-110</guid>
					<description>Hi Peter,

If you have the ssg-album.php and the images in the same folder
use the dot as the $ssg_album_dir variable value:
$ssg_album_dir=&quot;.&quot;;
  
Note, .html pages can't execute a php-codes.
So the include(&quot;ssg-album.php&quot;); may not work inside the index.html

You have to use a .php page to get the script included.
Or you have to set your server to process the index.html file as .php

I hope this helps.

Michel</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>If you have the ssg-album.php and the images in the same folder<br />
use the dot as the $ssg_album_dir variable value:<br />
$ssg_album_dir=&#8221;.&#8221;;</p>
<p>Note, .html pages can&#8217;t execute a php-codes.<br />
So the include(&#8221;ssg-album.php&#8221;); may not work inside the index.html</p>
<p>You have to use a .php page to get the script included.<br />
Or you have to set your server to process the index.html file as .php</p>
<p>I hope this helps.</p>
<p>Michel
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: webranger</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-109</link>
		<pubDate>Wed, 07 Feb 2007 20:01:35 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-109</guid>
					<description>Michel,

You originally made this script at my request, and assisted me in getting it working right on a php site.

However, I now want to use it on other sites which are html. I have just tried it - with a new download - and have a problem - the images it finds to list are in the same folder as the index.html (which is a subfolder, not public_html), but it then looks for them in the /slideshow folder - and doesn't find them, of course.

The ssg-album.php is in the same folder as the index.html file and in the /slideshow folder. If I put it in the /slideshow folder only, nothing happens at all. I tried changing the line to include(&quot;slideshow/ssg-album.php&quot;) but that didn't work either.

Could you please tell me how to get the get the script to look in the /slideshow folder for the list? I can see that it works OK if it has the correct image names.</description>
		<content:encoded><![CDATA[<p>Michel,</p>
<p>You originally made this script at my request, and assisted me in getting it working right on a php site.</p>
<p>However, I now want to use it on other sites which are html. I have just tried it - with a new download - and have a problem - the images it finds to list are in the same folder as the index.html (which is a subfolder, not public_html), but it then looks for them in the /slideshow folder - and doesn&#8217;t find them, of course.</p>
<p>The ssg-album.php is in the same folder as the index.html file and in the /slideshow folder. If I put it in the /slideshow folder only, nothing happens at all. I tried changing the line to include(&#8221;slideshow/ssg-album.php&#8221;) but that didn&#8217;t work either.</p>
<p>Could you please tell me how to get the get the script to look in the /slideshow folder for the list? I can see that it works OK if it has the correct image names.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Arnie</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-45</link>
		<pubDate>Wed, 23 Aug 2006 20:03:20 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-45</guid>
					<description>What a beauty! 

It runs like clockwork ;)

Thanks Michel!

Arnie</description>
		<content:encoded><![CDATA[<p>What a beauty! </p>
<p>It runs like clockwork <img src='http://askmichel.icoder.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks Michel!</p>
<p>Arnie
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: michel</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-44</link>
		<pubDate>Wed, 23 Aug 2006 17:17:46 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-44</guid>
					<description>Hi Arnie,

The Multi-Instances version is available.
Now you can include as many slide-shows as you like into the same page.

The Download link is the same.

My test page http://askmichel.icoder.com/wp-content/test.php
&lt;code&gt;&lt;span style=&quot;color: brown;&quot;&gt;&amp;#60;?php&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;$ssg_album_dir = &amp;#34;uploads/2006/08/&amp;#34;;
$ssg_album_idle  = 5;
$ssg_album_shuffle = true;&lt;/span&gt;
&lt;span style=&quot;color: brown;&quot;&gt;include(&quot;ssg-album.php&quot;);&lt;/span&gt;
&lt;span style=&quot;color: brown;&quot;&gt;?&amp;#62;&lt;/span&gt;
...
&lt;span style=&quot;color: brown;&quot;&gt;&amp;#60;?php&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;$ssg_album_dir = &amp;#34;uploads/2006/08/&amp;#34;;
$ssg_album_idle  = 10;
$ssg_album_shuffle = true;&lt;/span&gt;
&lt;span style=&quot;color: brown;&quot;&gt;include(&quot;ssg-album.php&quot;);&lt;/span&gt;
&lt;span style=&quot;color: brown;&quot;&gt;?&amp;#62;&lt;/span&gt;&lt;/code&gt;

Michel.</description>
		<content:encoded><![CDATA[<p>Hi Arnie,</p>
<p>The Multi-Instances version is available.<br />
Now you can include as many slide-shows as you like into the same page.</p>
<p>The Download link is the same.</p>
<p>My test page <a href='http://askmichel.icoder.com/wp-content/test.php' rel='nofollow'>http://askmichel.icoder.com/wp-content/test.php</a><br />
<code><span style="color: brown;">&lt;?php</span><br />
<span style="color: blue;">$ssg_album_dir = &quot;uploads/2006/08/&quot;;<br />
$ssg_album_idle  = 5;<br />
$ssg_album_shuffle = true;</span><br />
<span style="color: brown;">include("ssg-album.php");</span><br />
<span style="color: brown;">?&gt;</span><br />
...<br />
<span style="color: brown;">&lt;?php</span><br />
<span style="color: blue;">$ssg_album_dir = &quot;uploads/2006/08/&quot;;<br />
$ssg_album_idle  = 10;<br />
$ssg_album_shuffle = true;</span><br />
<span style="color: brown;">include("ssg-album.php");</span><br />
<span style="color: brown;">?&gt;</span></code></p>
<p>Michel.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Arnie</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-43</link>
		<pubDate>Tue, 22 Aug 2006 20:08:44 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-43</guid>
					<description>Michel,

The script works perfect now !

My next question; Is it possible to use more than one instance of the script (i.e. have several shuffling images on the same page) with different delay settings)?  

I tried putting 3 code snippets (with different time settings) on the same page - but only the first image would shuffle (although every batch of images was written to the page).  The first batch of images (image #1) shuffled through - displaying with all the different &quot;idle&quot; pauses.

I tried  to name the script files &quot;ssg-album1.php&quot; to &quot;ssg-album3.php&quot; but no success.

Which variables in the script would you change to make it possible to generate more than one set of image arrays, making it possible to display multiple slide-shows on  one page?

I also tried a search-and-replace of &quot;ssg_album_&quot; and replaced it with &quot;ssg_album1_&quot; --&amp;#62; &quot;ssg_album3_&quot; 
- but no javascript code was written to the page.

Do you see any solutions to this?

Thank you again Michel, for making this script available.

Regards
Arnie</description>
		<content:encoded><![CDATA[<p>Michel,</p>
<p>The script works perfect now !</p>
<p>My next question; Is it possible to use more than one instance of the script (i.e. have several shuffling images on the same page) with different delay settings)?  </p>
<p>I tried putting 3 code snippets (with different time settings) on the same page - but only the first image would shuffle (although every batch of images was written to the page).  The first batch of images (image #1) shuffled through - displaying with all the different &#8220;idle&#8221; pauses.</p>
<p>I tried  to name the script files &#8220;ssg-album1.php&#8221; to &#8220;ssg-album3.php&#8221; but no success.</p>
<p>Which variables in the script would you change to make it possible to generate more than one set of image arrays, making it possible to display multiple slide-shows on  one page?</p>
<p>I also tried a search-and-replace of &#8220;ssg_album_&#8221; and replaced it with &#8220;ssg_album1_&#8221; &#8211;&gt; &#8220;ssg_album3_&#8221;<br />
- but no javascript code was written to the page.</p>
<p>Do you see any solutions to this?</p>
<p>Thank you again Michel, for making this script available.</p>
<p>Regards<br />
Arnie
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: michel</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-42</link>
		<pubDate>Tue, 22 Aug 2006 17:33:11 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-42</guid>
					<description>Hi Hafiz &amp; Arnie,
You're right! The bug wasn't fixed completely :-)
Thanks for your help.

It has been finally fixed now.

I have a test page at http://askmichel.icoder.com/wp-content/test.php
The &lt;code&gt;ssg-album.php&lt;/code&gt; is loaded from a sub-folder:
&lt;code&gt;&lt;span style=&quot;color:blue&quot;&gt;$ssg_album_dir = &amp;#34;uploads/2006/08/&amp;#34;;
$ssg_album_idle  = 5;
$ssg_album_shuffle = true;&lt;/span&gt;
&lt;span style=&quot;color:brown&quot;&gt;include(&amp;#34;ssg-album.php&amp;#34;);&lt;/span&gt;&lt;/code&gt;

It works now.
Please download the new version with the same link once again.

Michel</description>
		<content:encoded><![CDATA[<p>Hi Hafiz &#038; Arnie,<br />
You&#8217;re right! The bug wasn&#8217;t fixed completely <img src='http://askmichel.icoder.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Thanks for your help.</p>
<p>It has been finally fixed now.</p>
<p>I have a test page at <a href='http://askmichel.icoder.com/wp-content/test.php' rel='nofollow'>http://askmichel.icoder.com/wp-content/test.php</a><br />
The <code>ssg-album.php</code> is loaded from a sub-folder:<br />
<code><span style="color:blue">$ssg_album_dir = &quot;uploads/2006/08/&quot;;<br />
$ssg_album_idle  = 5;<br />
$ssg_album_shuffle = true;</span><br />
<span style="color:brown">include(&quot;ssg-album.php&quot;);</span></code></p>
<p>It works now.<br />
Please download the new version with the same link once again.</p>
<p>Michel
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Arnie</title>
		<link>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-41</link>
		<pubDate>Tue, 22 Aug 2006 13:07:20 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/08/21/simple-photo-album-slide-show-generator/#comment-41</guid>
					<description>Hi Michel

The new script works perfect for me, as long as the ssg-album.php and the code page is in the same directory as the images.
If, on the other hand, the images is in another directory, an image might be displayed, but it will not shuffle.
And if you have several of the include-code snippets on the same page, only one will shuffle.

The javascript code seems to default to &quot;./image_name.jpg&quot; even if you set the full server path in both the ssg-album AND the file displaying the slideshow.
(like /home/username/public-html/images/subdirectory&quot; ), or a domain-based directory path -
(like &quot;/images/subdirectory&quot; or using a relative path -
(like &quot;../images/subdirectory&quot; ) - or a path relative to a /subdirectory and  file located in a subdirectory -
(like &quot;www.domain.com/some-directory/file_with_the_include-code.php&quot; )

be set (both in &quot;slideshow.php&quot; and &quot;ssg-album.php&quot; files)?

Best regards</description>
		<content:encoded><![CDATA[<p>Hi Michel</p>
<p>The new script works perfect for me, as long as the ssg-album.php and the code page is in the same directory as the images.<br />
If, on the other hand, the images is in another directory, an image might be displayed, but it will not shuffle.<br />
And if you have several of the include-code snippets on the same page, only one will shuffle.</p>
<p>The javascript code seems to default to &#8220;./image_name.jpg&#8221; even if you set the full server path in both the ssg-album AND the file displaying the slideshow.<br />
(like /home/username/public-html/images/subdirectory&#8221; ), or a domain-based directory path -<br />
(like &#8220;/images/subdirectory&#8221; or using a relative path -<br />
(like &#8220;../images/subdirectory&#8221; ) - or a path relative to a /subdirectory and  file located in a subdirectory -<br />
(like &#8220;www.domain.com/some-directory/file_with_the_include-code.php&#8221; )</p>
<p>be set (both in &#8220;slideshow.php&#8221; and &#8220;ssg-album.php&#8221; files)?</p>
<p>Best regards
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
