<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - can someone help me code this right]]></title>
		<link>http://punbb.informer.com/forums/topic/21502/can-someone-help-me-code-this-right/</link>
		<description><![CDATA[The most recent posts in can someone help me code this right.]]></description>
		<lastBuildDate>Thu, 13 Aug 2009 17:57:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/129587/#p129587</link>
			<description><![CDATA[<div class="quotebox"><cite>quaker wrote:</cite><blockquote><p>Mattf,Tieguy</p><p>that last code fixed it now all the images works </p><div class="codebox"><pre><code>echo &#039;&lt;td&gt;&lt;img width=&quot;50&quot; height=&quot;50&quot; src=&quot;&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&quot;/&gt;&lt;/td&gt;&#039;.&quot;
&quot;;</code></pre></div><p>Q</p></blockquote></div><p>I had the same problem, and this fixed it as well. Thanks a lot.</p>]]></description>
			<author><![CDATA[dummy@example.com (fisher39)]]></author>
			<pubDate>Thu, 13 Aug 2009 17:57:56 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/129587/#p129587</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/127435/#p127435</link>
			<description><![CDATA[<p>just dropped by to say hi. and i was just trying to learn html. and think im just a newbie..well guys gudluck with the codes</p>]]></description>
			<author><![CDATA[dummy@example.com (mceso421)]]></author>
			<pubDate>Wed, 06 May 2009 06:41:19 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/127435/#p127435</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126823/#p126823</link>
			<description><![CDATA[<p>my next project for the gallery would be to add categories ...</p><p>main<br />--&gt;photo<br />-----&gt;photo1<br />topic<br />--&gt;level1 <br />-----&gt;level2</p><br /><p>categories must pull the first image in the directory for cat_img</p><br /><p>anyone want to help with this?</p><p>Q</p>]]></description>
			<author><![CDATA[dummy@example.com (quaker)]]></author>
			<pubDate>Wed, 15 Apr 2009 15:35:42 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126823/#p126823</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126816/#p126816</link>
			<description><![CDATA[<div class="quotebox"><cite>Tieguy wrote:</cite><blockquote><p>Doesn&#039;t seem you need to, but no real reason not to.</p></blockquote></div><p>I was becoming more dubious as to whether I was actually correct or not as I was typing that line, hence the last part. <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> That one is obviously just me being pedantic again. <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Wed, 15 Apr 2009 14:48:10 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126816/#p126816</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126815/#p126815</link>
			<description><![CDATA[<p>thanks...</p><p>here an image slice</p><p><span class="postimg"><img src="http://i40.tinypic.com/2d9nu5j.jpg" alt="http://i40.tinypic.com/2d9nu5j.jpg" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (quaker)]]></author>
			<pubDate>Wed, 15 Apr 2009 14:43:01 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126815/#p126815</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126814/#p126814</link>
			<description><![CDATA[<p>Mattf,Tieguy</p><p>that last code fixed it now all the images works </p><div class="codebox"><pre><code>echo &#039;&lt;td&gt;&lt;img width=&quot;50&quot; height=&quot;50&quot; src=&quot;&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&quot;/&gt;&lt;/td&gt;&#039;.&quot;
&quot;;</code></pre></div><p>Q</p>]]></description>
			<author><![CDATA[dummy@example.com (quaker)]]></author>
			<pubDate>Wed, 15 Apr 2009 14:39:26 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126814/#p126814</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126813/#p126813</link>
			<description><![CDATA[<p>what does that mean?</p><p>if someone will email me i will create them a admin account so they can see what im talking about..</p><br /><p>Q</p>]]></description>
			<author><![CDATA[dummy@example.com (quaker)]]></author>
			<pubDate>Wed, 15 Apr 2009 14:37:14 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126813/#p126813</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126812/#p126812</link>
			<description><![CDATA[<div class="quotebox"><cite>MattF wrote:</cite><blockquote><div class="quotebox"><cite>Tieguy wrote:</cite><blockquote><p>Sorry for the switch to single quotes, but I don&#039;t like using two [they confuse me for whatever reason].</p><div class="codebox"><pre><code>    echo &#039;&lt;td&gt;&lt;img width=&#039;50&#039; height=&#039;50&#039; src=&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&gt;&lt;/td&gt;
&#039;;</code></pre></div></blockquote></div><p>You do need the double-quotes for 1.1 strict validation, (I believe. Cant remember if single quotes are okay?). Best to put it as:</p><div class="codebox"><pre><code>echo &#039;&lt;td&gt;&lt;img width=&quot;50&quot; height=&quot;50&quot; src=&quot;&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&quot;/&gt;&lt;/td&gt;&#039;.&quot;
&quot;;</code></pre></div></blockquote></div><div class="quotebox"><cite>Wikipedia wrote:</cite><blockquote><p>This contrasts with some earlier established traditions that began around the time of HTML 2.0, when many used uppercase tags. In XHTML, all attribute values must be enclosed by quotes; either single (&#039;) or double (&quot;) quotes may be used</p></blockquote></div><p>Doesn&#039;t seem you need to, but no real reason not to.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tieguy)]]></author>
			<pubDate>Wed, 15 Apr 2009 14:36:10 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126812/#p126812</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126809/#p126809</link>
			<description><![CDATA[<div class="codebox"><pre><code>                if($file == &quot;.&quot; || $file == &quot;..&quot; || !($imagedata = @getimagesize(PUN_ROOT.&quot;gallery/&quot;.$file)))

                    continue;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Wed, 15 Apr 2009 14:03:16 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126809/#p126809</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126807/#p126807</link>
			<description><![CDATA[<p>that works but it skips about for or 5 images...<br />hummm<br />here is the code that handles the images<br /></p><div class="codebox"><pre><code>    &lt;?php

            $dirhandle = opendir(PUN_ROOT.&quot;gallery&quot;);

            while(false !== ($file = readdir($dirhandle)))

            {

                if($file == &quot;.&quot; || $file == &quot;..&quot; || !($imagedata = @getimagesize(PUN_ROOT.&quot;gallery/&quot;.$file)))

                    continue;

                echo &quot;&lt;tr&gt;\n&quot;;

                echo &#039;&lt;td&gt;&lt;img width=\&#039;50\&#039; height=\&#039;50\&#039; src=&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&gt;&lt;/td&gt;\n&#039;;

                echo &quot;&lt;td&gt;&quot;.$imagedata[&#039;mime&#039;].&quot;&lt;/td&gt;\n&quot;;

                echo &quot;&lt;td&gt;&quot;.ceil(filesize(PUN_ROOT.&quot;gallery/&quot;.$file)/1024).&quot; KB&lt;/td&gt;\n&quot;;

                echo &quot;&lt;td&gt;[ &lt;a href=\&quot;admin_loader.php?plugin=&quot;.$plugin.&quot;&amp;amp;action=delete&amp;amp;file=&quot;.$file.&quot;\&quot;&gt;Delete&lt;/a&gt; ]&lt;/td&gt;\n&quot;;

                echo &quot;&lt;/tr&gt;\n&quot;;

            }

            ?&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (quaker)]]></author>
			<pubDate>Wed, 15 Apr 2009 13:58:12 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126807/#p126807</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126806/#p126806</link>
			<description><![CDATA[<div class="quotebox"><cite>Tieguy wrote:</cite><blockquote><p>Sorry for the switch to single quotes, but I don&#039;t like using two [they confuse me for whatever reason].</p><div class="codebox"><pre><code>    echo &#039;&lt;td&gt;&lt;img width=\&#039;50\&#039; height=\&#039;50\&#039; src=&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&gt;&lt;/td&gt;\n&#039;;</code></pre></div></blockquote></div><p>You do need the double-quotes for 1.1 strict validation, (I believe. Cant remember if single quotes are okay?). Best to put it as:</p><div class="codebox"><pre><code>echo &#039;&lt;td&gt;&lt;img width=&quot;50&quot; height=&quot;50&quot; src=&quot;&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&quot;/&gt;&lt;/td&gt;&#039;.&quot;\n&quot;;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Wed, 15 Apr 2009 13:55:38 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126806/#p126806</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126803/#p126803</link>
			<description><![CDATA[<p>Sorry for the switch to single quotes, but I don&#039;t like using two [they confuse me for whatever reason].</p><div class="codebox"><pre><code>    echo &#039;&lt;td&gt;&lt;img width=\&#039;50\&#039; height=\&#039;50\&#039; src=&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&gt;&lt;/td&gt;\n&#039;;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Tieguy)]]></author>
			<pubDate>Wed, 15 Apr 2009 13:40:33 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126803/#p126803</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126800/#p126800</link>
			<description><![CDATA[<p>this is what im trying to do<br /></p><div class="codebox"><pre><code>echo &quot;&lt;td&gt;&lt;img width=&quot;50&quot; height=&quot;50&quot; src=&quot;.PUN_ROOT.&quot;gallery/&quot;.$file.&quot;&gt;&lt;/td&gt;\n&quot;;</code></pre></div><p>but i get this error<br />Parse error: syntax error, unexpected T_LNUMBER, expecting &#039;,&#039; or &#039;;&#039; in /home/bunpaic/public_html/forum/plugins/AMP_Lightbox_Gallery.php on line 143</p>]]></description>
			<author><![CDATA[dummy@example.com (quaker)]]></author>
			<pubDate>Wed, 15 Apr 2009 13:19:45 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126800/#p126800</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126799/#p126799</link>
			<description><![CDATA[<p>this is for the admin panel to upload photos. i dont need a hyper link in it. i just want to be able to show the photos </p><p>this is for my lightbox gallery script.</p><p>demo<br /><a href="http://bunpai.com/forum/gallery.php">http://bunpai.com/forum/gallery.php</a></p><p>it is a simple gallery script where you upload photo to a folder and it displays them.</p><p>Q</p>]]></description>
			<author><![CDATA[dummy@example.com (quaker)]]></author>
			<pubDate>Wed, 15 Apr 2009 13:03:37 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126799/#p126799</guid>
		</item>
		<item>
			<title><![CDATA[Re: can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/post/126788/#p126788</link>
			<description><![CDATA[<p>Try this peace of code:<br /></p><div class="codebox"><pre><code>echo &#039;&lt;td&gt;&lt;a href=&quot;&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&quot;&gt;&lt;img width=&quot;50&quot; height=&quot;50&quot; src=&#039;.PUN_ROOT.&#039;gallery/&#039;.$file.&#039;&quot;&gt;&lt;/a&gt;&lt;/td&gt;&#039;;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Slavok)]]></author>
			<pubDate>Wed, 15 Apr 2009 08:14:19 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126788/#p126788</guid>
		</item>
	</channel>
</rss>
