Picaweb 0.3.1

(JPEG)

Picaweb is a php application to help you to easily put pictures galeries on the web with the help of Picasa 2 (http://www.picasa.com) to generate the pictures and thumbnails. Picasa2 has an xml web galerie export option. Picaweb parse this xml and render the html pages on the fly (with Smarty http://smarty.php.net included).

The pages are put in the smarty cache for faster loading. The system does not use a database and is straightforward to install.

It works with PHP 4.3 or higher.

The application needs the DOM-XML php extension to work with php4. No extension needed with PHP5

Picaweb is open source and protected by the GPL license.
Picaweb is developped by JM Goemaere (jm@goliwok.com) for Yswood

DOWNLOAD Picaweb (760 Kb)

Basic Example

Sourceforge project page

## PREREQUISITE
-  PHP 4.3 or higher
-  DOM-XML extension installed for PHP4
-  no extension needed for PHP5 (simpleXML must be activated)
-  No Database needed !

## INSTALLATION
Download the package
Unzip it on your server in a browseable directory
Edit config.php with a text editor (optional)
The subdirectories ./cache and ./compils should be writeable
Point your browser to the Picaweb directory

All albums should be put in the ./albums subdirectory.
2 albums are already in the albums as examples.

## ADD AN ALBUM
Open Picasa2 (http://www.picasa.com)
Select some pictures
Choose the "Make a webpage..." option (ctrl-w)
Select your preferences for image sizes
Choose a name for your album
Choose a temporary destination for your album (i use my Desktop)
Hit "Next"
Choose "XML Code"
Hit OK or Finish
A window will open with your xml code... Close it
Put the album directory under the albums subdirectory of the picaweb installation
(on the server with FTP or IE or your machine)
Point your browser to your Picaweb installation
Your last album should appear at the top of the list

You can add a caption to an album and use it in Picaweb.
It is sometime easier to create an album first in Picasa add export the entire album.

To create an album, select some pictures and add a label. You can add a caption to your album.
A virtual directory will be created, just right click it and choose "Make a webpage..."

## TEMPLATES
You can change the presentation by modifying the 3 html templates
Picaweb uses Smarty (http://smarty.php.net)
See the smarty doc for more info.
- index.tmpl.html : list of your albums
- album.tmpl.html : album page with thumbnails
- pic.tmpl.html : picture page

Picaweb process a lot of fields you can use in your templates.
See the default templates as example.

## THUMBNAILS
Picasa already has a great template system for web export
(i didn’t know that when i started to script Picaweb)
You can tweak the export images and thumbnails of you Picasa installation by editing the
index.tpl file under the web/templates/xml of your Picasa installation
Ex :
define thumbnailWidth 200
define thumbnailHeight 200
define shadowedThumbnails 1

The default Picasa thumbnail size is a little too small for me.

There is a modified version of index.tpl in the misc directory. Just put it in pace of the original one.
c :\Program files\Picasa2\web\templates\xml\index.tpl

## CACHE
Picaweb uses the Smarty cache and his own cache.
To reset the cache use the reset.php of your Picaweb installation

## CHANGES
0.3.1
-  some corrections in the basic templates

0.3 :
-  PHP 5 compatibility !

0.2 :
-  corrected bugs for accentuated characters (european) in folder names
-  new basic templates

0.1 :
-  first version

## TODO
-  correct the bugs
-  DOM-XML independance
-  send to a friend option
-  compatibility with other template system for better integration with CMS and weblogs
-  basic admin page
-  slideshow option

SourceForge.net Logo