<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[SimpleViewer Forum - Improvements]]></title>
		<link>http://www.simpleviewer.net/forum/viewtopic.php?id=11570</link>
		<description><![CDATA[The most recent posts in Improvements.]]></description>
		<lastBuildDate>Thu, 25 Nov 2010 00:30:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Improvements]]></title>
			<link>http://www.simpleviewer.net/forum/viewtopic.php?pid=31477#p31477</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>How about an option to just read all the images in a folder and display those ?</p></blockquote></div><p>You can use the following PHP page as your XML file.&nbsp; Call the file &#039;gallery.php&#039;, use the line:</p><div class="codebox"><pre><code>fo.addVariable(&quot;xmlURL&quot;, &quot;gallery.php&quot;);</code></pre></div><p>... in your embedding code and place all your images in a folder called &#039;images&#039;. (The server must have PHP installed for this to work.)</p><div class="codebox"><pre><code>&lt;?php
function GetDirArray($folder)
{
    $handle=opendir($folder);
    while ($file=readdir($handle))
    {
        if ($file!=&quot;.&quot; &amp;&amp; $file!=&quot;..&quot;)
        {
            $ret[count($ret)]=$file;
        }
    }
    closedir($handle);
    sort($ret);
    return $ret;
}
$gallery=GetDirArray(&#039;images&#039;);
echo &#039;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#039;;
echo &#039;&lt;tiltviewergallery&gt;&#039;;
echo &#039;&lt;photos&gt;&#039;;
for ($i=0; $i&lt;sizeof($gallery); $i++)
{
    echo &#039;&lt;photo imageurl=&quot;images/&#039;.$gallery[$i].&#039;&quot;&gt;&lt;title&gt;&lt;/title&gt;&lt;description&gt;&lt;/description&gt;&lt;/photo&gt;&#039;;
}
echo &#039;&lt;/photos&gt;&#039;;
echo &#039;&lt;/tiltviewergallery&gt;&#039;;
?&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Steven Speirs)]]></author>
			<pubDate>Thu, 25 Nov 2010 00:30:02 +0000</pubDate>
			<guid>http://www.simpleviewer.net/forum/viewtopic.php?pid=31477#p31477</guid>
		</item>
		<item>
			<title><![CDATA[Improvements]]></title>
			<link>http://www.simpleviewer.net/forum/viewtopic.php?pid=30932#p30932</link>
			<description><![CDATA[<p>I&#039;ve just started using this gallery, and have to say it&#039;s brilliant. But there are a couple of features i would like to see in a future version;</p><p>* Option to show the name of the image which the mouse pointer is currently over above or below the gallery<br />* Option to change color of the border of the reload and navigation buttons (makes it easier to see)<br />* Option to have more than 1 border on the images. There should be at least 2 borders, 1 inner and 1 outer border around the images (makes the galley more elegant)</p><p>And a final thing, i&#039;ve seen quite a couple of other flash galleries which doesn&#039;t need to have a pre-defined xml file for the images. How about an option to just read all the images in a folder and display those ?</p><p> <img src="http://www.simpleviewer.net/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Imagix)]]></author>
			<pubDate>Tue, 09 Nov 2010 15:42:08 +0000</pubDate>
			<guid>http://www.simpleviewer.net/forum/viewtopic.php?pid=30932#p30932</guid>
		</item>
	</channel>
</rss>
