Comments on: PHP Tutorial: Build a Backend Manager for Smooth Gallery http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery Web design & development work of Stefan Matei Mon, 15 Mar 2010 14:52:16 +0000 http://wordpress.org/?v=abc hourly 1 By: Stefan http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-11162 Stefan Wed, 17 Feb 2010 14:15:35 +0000 http://www.vileworks.com/?p=85#comment-11162 @<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'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: <a href="http://www.vileworks.com/wp-content/files/gallery_backend.zip" rel="nofollow">www.vileworks.com/wp-content/files/gallery_backend.zip</a> Cheers! @Duncan: I’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: http://www.vileworks.com/wp-content/files/gallery_backend.zip

Cheers!

]]>
By: Duncan http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-11153 Duncan Tue, 16 Feb 2010 21:30:14 +0000 http://www.vileworks.com/?p=85#comment-11153 Your Link doesn't work for the smooth gallery mananger download :( Your Link doesn’t work for the smooth gallery mananger download :(

]]>
By: vlad http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-7899 vlad Wed, 23 Sep 2009 10:14:14 +0000 http://www.vileworks.com/?p=85#comment-7899 Thanks very much for fast and useful reply. All the best. Vlad Thanks very much for fast and useful reply. All the best. Vlad

]]>
By: Stefan http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-7871 Stefan Tue, 22 Sep 2009 19:42:12 +0000 http://www.vileworks.com/?p=85#comment-7871 <p>@<a href="#comment-7841" rel="nofollow">vlad</a>: From the downloaded archive you only need the file called "manager.php" and the "backend" folder.</p> <p>Place those two in the same folder as the gallery file.</p> <p>Edit "manager.php" and modify these two variables:</p> <blockquote> <p>$password='demo';</p> <p>$gallery_location='index.html';</p> </blockquote> <p>Hope this helps!</p> @vlad: From the downloaded archive you only need the file called “manager.php” and the “backend” folder.

Place those two in the same folder as the gallery file.

Edit “manager.php” and modify these two variables:

$password=’demo’;

$gallery_location=’index.html’;

Hope this helps!

]]>
By: vlad http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-7841 vlad Mon, 21 Sep 2009 12:54:43 +0000 http://www.vileworks.com/?p=85#comment-7841 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't see it in plugins neither in settings and editor. I just don't have the knowing how. Can you please be of asistance. Thanks very much. <a href="http://vladimirklimsa.com" rel="nofollow">Vladimir</a> 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’t see it in plugins neither in settings and editor. I just don’t have the knowing how. Can you please be of asistance. Thanks very much. Vladimir

]]>
By: Stefan http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-1458 Stefan Thu, 12 Mar 2009 12:18:19 +0000 http://www.vileworks.com/?p=85#comment-1458 @<a href="#comment-1456" rel="nofollow">Svante Karlsson</a>: If you take a look at its source code you'll see that the gallery'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. <pre> <div id="gallerySet"> <div id="myGallery1" class="galleryElement"> .... </div> <div id="myGallery2" class="galleryElement"> .... </div> </div> </pre> The above is what a gallery set looks like. My gallery (from the tut) looks like this: <pre> <div id="myGallery" class="galleryElement"> .... </div> </pre> 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: <pre>$items = $html->find('#myGallery .imageElement')</pre> to this: <pre>$items = $html->find($_GET["gallery_id"] . ' .imageElement'); </pre> (Just to make sure, check all the apostrophes and quotes, WordPress comments may have screwed 'em up.) Then, when you access the php file, add at the end of its address ?gallery_id=myGallery1 or ?gallery_id=myGallery2 in order to pass it the correct parameter (I'm assuming you know how to send a value via GET). That should work, hope it makes sense. @Svante Karlsson:

If you take a look at its source code you’ll see that the gallery’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.

<div id="gallerySet">
    <div id="myGallery1" class="galleryElement">
          ....
    </div>
    <div id="myGallery2" class="galleryElement">
          ....
    </div>
</div>

The above is what a gallery set looks like. My gallery (from the tut) looks like this:

<div id="myGallery" class="galleryElement">
    ....
</div>

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:

$items = $html->find('#myGallery .imageElement')

to this:

$items = $html->find($_GET["gallery_id"] . ' .imageElement'); 

(Just to make sure, check all the apostrophes and quotes, WordPress comments may have screwed ‘em up.)

Then, when you access the php file, add at the end of its address ?gallery_id=myGallery1 or ?gallery_id=myGallery2 in order to pass it the correct parameter (I’m assuming you know how to send a value via GET).

That should work, hope it makes sense.

]]>
By: Svante Karlsson http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-1456 Svante Karlsson Thu, 12 Mar 2009 11:52:30 +0000 http://www.vileworks.com/?p=85#comment-1456 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 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

]]>
By: sabaccomo http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-873 sabaccomo Wed, 04 Feb 2009 12:37:29 +0000 http://www.vileworks.com/?p=85#comment-873 www.vileworks.com - now in my rss reader))) http://www.vileworks.com – now in my rss reader)))

]]>
By: James McRoy http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-818 James McRoy Sun, 01 Feb 2009 08:32:01 +0000 http://www.vileworks.com/?p=85#comment-818 This is a fantastic concept. Thanks for putting it together. As a newbie to php, I find I work best with cheat sheets. Since I always have my iPhone with me, I keep them there. The best one I've found so far is from these guys: http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=302760278&mt=8 They also have great cheat sheets for CSS and Javascript. Hope this is helpful! This is a fantastic concept. Thanks for putting it together. As a newbie to php, I find I work best with cheat sheets. Since I always have my iPhone with me, I keep them there. The best one I’ve found so far is from these guys:

http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=302760278&mt=8

They also have great cheat sheets for CSS and Javascript. Hope this is helpful!

]]>
By: PHP Tutorial: Build a Backend Manager for Smooth Gallery | CLD Tutorials - Web Design and Graphic Design Tutorials http://www.vileworks.com/php-tutorial-build-a-backend-manager-for-smooth-gallery/comment-page-1#comment-245 PHP Tutorial: Build a Backend Manager for Smooth Gallery | CLD Tutorials - Web Design and Graphic Design Tutorials Sun, 30 Nov 2008 14:52:44 +0000 http://www.vileworks.com/?p=85#comment-245 [...] View tutorial Difficulty : beginner Tutorial Stats : 1 views Rate Tutorial : (No Ratings Yet)  Loading ... DiggStumbleDel.icio.usFloatBumpMixxRedditzaBoxother [...] [...] View tutorial Difficulty : beginner Tutorial Stats : 1 views Rate Tutorial : (No Ratings Yet)  Loading … DiggStumbleDel.icio.usFloatBumpMixxRedditzaBoxother [...]

]]>