Backend for Autoviewer

Autoviewer is a popular flash image gallery script. The thing that makes it little bit annoying is that updating the images requires editing a configuration file manually. A friend of mine wanted to publish some of his art  online so I wrote a simple dynamic script for him to manage his gallery by himself. This script uses PHP and MySQL database and the backend admin interface is built on top of example scripts by Greg that use scriptaculous and prototype AJAX libraries.

See the new version!

Basic features of the script include upload, removal and management of images. Images (jpegs from camera) are uploaded to the server using a separate administration interface. The script automatically resizes the images to a more manageable size. Once uploaded image order can be changed dragging and dropping the images back and forth. If an image seems useless it can be removed simply by clicking the delete (x) button.

To get started you will need to download the zip-package and make sure you have the prerequisites (PHP with gd-image support and MySql configured)

  1. download download.jpg, rename it to .zip and extract the contents
  2. extract contents to /backend folder
  3. rename htaccess.txt to .htaccess
  4. create a dabase in your mysql admin tool
  5. add database name, login and password to configure.php, configure.php in /admin and to db-php in /admin
  6. Set password control into the admin folder
  7. create the database table by calling install.php in admin folder
  8. set the write permissions for the folders

I have done little bit of special customization for my friend by adding diameter and price fields, but you can just omit those fields or change to something more suitable. I have had lot of other ideas about improving the script also. It would for example be nice to allow creating multiple galleries dynamically. With little bit of more tinkering I could utilize the new xmlURL parameter in the new Autoviewer version. Another idea I have playing around with is making the tool available using the Google App Engine. Thing is that it would require porting the app to python, but maybe I have too much time on my hands some time soon.

8 Responses to “Backend for Autoviewer”

  1. 1 chris December 21, 2008 at 8:04 pm

    Wheres the files for this?

  2. 2 fideocam December 22, 2008 at 10:54 pm

    Just download the jpg and change the file extension like suggested. I don’t have a separate server for hosting so I had to rename the file to .jpg that wordpress supports.

  3. 3 Todd January 31, 2009 at 7:23 pm

    Ive been looking for a backend to autoviewer for a while now. Ive downloaded all the files and think Iv configured them correctly? When I call up the install.php I get a message saying “Creating table: ‘images’….Creating table: ‘gallery’….”

    It doesn’t seem to write anything in the database.

    In the admin folder I get this error

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/giantleap/public_html/mysharedaccounts/t2design/backend/admin/db.php on line 4

    Please can you help?

    many thanks


  4. 5 fideocam February 12, 2009 at 8:05 pm

    After some debugging Todd’s problem seems to be related to using PHP4. The script uses object-oriented programming and that is available only in newer versions.

  1. 1 Backend for Autoviewer 2.0 « Fideocam - The Blog Trackback on February 10, 2009 at 8:52 pm
  2. 2 Backend for Autoviewer 2.03 « Fideocam – The Blog Trackback on May 18, 2009 at 9:11 pm
Comments are currently closed.

Fideocam concept

Fideocam is a pioneer in automating video tools for personal experience capture.



%d bloggers like this: