Home
|
Last change: Fri, 04 May 2007 20:16:18 +0200
|
|
|
 |
WWWPhoto
WWWPhoto is a tag based web photo gallery for PHP5 with GD-Library and MySQL or PostgreSQL. Since release 0.1.0 the navigation on the user view is Ajax driven by using the JSON implementation for PHP from Michal Migurski, Matt Knapp and Brett Stimmerman (http://pear.php.net/pepr/pepr-proposal-show.php?id=198).
| Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user makes a change. This is meant to increase the web page's interactivity, speed, and usability. From Wikipedia, the free encyclopedia |

Features
- Simple installation - Thumbnail caching - Style tunable via frontend, no CSS-hacking needed (but possible) - Easy XML-Theme definition - Fire and forget database sync button - User management for private photos - PostgreSQL and MySQL support (Proxy Pattern :-) - No cookies or JavaScript required for visitors
Screenshots
Updating database
Options and Themes
Administrate photos
A public view
Navigation with Ajax
Logged in as admin
Hercules mochrome effect configured trough options
In Action
Here you can see the current public view of WWWPhoto. Don't hesitate to add new Tags! http://photo.pburkhalter.net
Downloads
Note: You have to backup your database if you update wwwphoto. There's no guided update procedure at this point.
Update to 0.1.x: release 0.1.x and 0.0.45 have the same database and thumbnail defintion, therefore you don't have to delete your database nor thumbnails for upgrading to 0.1.x.
Update from to 0.1.1 to 0.1.2: in release 0.1.2 it is possible use tabs and open links in a new window.
FAQ
Why it is slow? WWWphoto has to create the high-quality thumbnails on the first call. After the thumbnails are created, it is very fast (server side thumbnail caching).
Why I have to activate JavaScript? JavaScript isn't evil anymore. Welcome to Ajax and WEB 2.0 :-)
|
|
|
| donputscho on 21 April 2006 10:37:47 | | please use a cluster to make it faster | | why do you don't use a cluster to create the tumbnails? |
| donputscho on 26 April 2006 13:47:41 | | wwwphoto is realy easy to install | wwwphoto is realy easy to install.
thanks to buck for this great photogallery. |
| anonymous 13 May 2006 20:34:29 | | comment | I found this because I was tired of waiting for gallery2 to support tags. This, however, does not use tags correctly, it uses them as categories. See http://en.wikipedia.org/wiki/Folksonomy for the difference between tags and categories. Tags are free form and should not have to be set up apriori. Also the typical way to access the tags on a site is to use /tag/$tagname instead of index.php?tag=$pid. And finally the image view should have the tags it has which link to those tags. If desired the admin should be able to let guest users tag images also.
I am going to work on some of this for my own site, I'll send patches if you want.
Also, the authentication system is strange, is there any reason you didn't use built in password() functions? I assume its because postgres doesn't support this but I'm not sure, I know mysql does.
Finally, it would be really nice if the admin thumbnail creation didn't need to use set_time_limit so that this could run with php safe mode on. This can be fixed by making asynchronous requests to a thumbnail creation page passing 1 image pid at a time. The user page would then loop through all the images that need thumbnails created and the user would get immediate feedback. It would also be able to run as long as it needs, the current set_time_limit(60*60) times out for me very often (I've been importing ~300 images at once). |
| Buck 14 May 2006 21:12:31 | | comment | Thank you for your suggests!
I will check your points. Unfortunatley you are right with the tag-issue (particulary with the access way). If you fix this, your patches are of course welcome!
The authentication system is implemented like the unix one:
- http://www.unix.org.ua/orelly/networking/puis/ch08_06.htm
- http://ch2.php.net/manual/en/function.crypt.php
I found no PostgreSQL password()-function, therefore I decided to implement this in a generic way. Maybe it is not necessary to save the salt in an extra column. But then, it must be possible to determine the encryption type in order to get the exact salt-length (the salt is already stored in the hash-column).
I'm not sure if I got you on the safe_mode point. Is the usage of the 'set_time_limit()'-function avoiding a proper use of php safe mode? It would be wise to fork the make_thumbnail()-function to background. This point is interesting.
Btw: I wrote a lousy C-code for generating a wwwphoto-style-thumbnail. Maybe I should post the code on this site.
Please send me an email, so we can discuss the issues in a larger input-field :-) |
| Robin on 27 May 2006 16:06:57 | | I have a problem | | Hi i have installed your photo gallary after that when i enter the admin id and password nothing happens the screen stays there.help me in this. |
| Buck 30 May 2006 1:29:17 | | cookies? | | Do you have disabled cookies? There's an open task in the TODO file. Cookies must be enabled (for admin purposes only) until this task is closed. |
| Fili on 6 September 2006 21:45:24 | | login | | I'm beginner with PHP and I cannot login. Which username and password should I use? |
| Buck on 7 September 2006 10:27:14 | | Sad... | The encrypted admin password is stored in your database. You have now some options:
- Create a new password by using the method described in Password::generatePassword($password) and edit the 'account' table of your database manually (dont forget to edit the column named 'salt' too).
or
- Just delete a table (f.e. 'account'). This will force wwwphoto to recreate all your tables. After this, wwwphoto will show you your new admin password. This is also the initial process to set up the admin account. You are then asked to change it by using the corresponding Menu-Tab named 'Users'. |
| Buck 10 October 2006 14:16:01 | | Update | I was on an AJAX Workshop last week and found some new motivation. So I did a redesign of the WWWPhoto index page:
http://photo.pburkhalter.net/
It lacks on some functionality at this time, but planned is:
1. accessing tags by photo.pburkhalter.net/mytag
2. allow user to tag photos by viewing them
3. show photo tags on the photo focus view
5. show exif information
4. comment each photo
Maybe I'l getting done soon, so I can release 0.1.0 |
| Jcros on 30 November 2006 22:27:20 | | install issues | | I have installed wwwphoto to a centos 4 server and my ubuntu laptop. It works on my laptop with no issues but the centos 4 server only gives me a blank white page and a text box. Can anyone tell me what I might be missing that may cause this. |
| salvadhor on 5 February 2007 18:35:16 | | ... | WWWphoto is a great piece of code. But ...
Is there any possibility to make gallery public ? I want to allow anonymous users to view pictures without login in.
Also - exif, comments - it'll be nice to see that in action !
|
| Buck on 5 February 2007 18:57:32 | | Restrictions | Just remove all users from the photos you want to make public. If you restrict a photo to 'admin', then just 'admin' can see it. Per default, a new photo is restricted to 'admin'.
I'm working on the comments :-)
Also categories, exifs, and watermarks are planned.
(btw. a watermark can already be configured trough options -> shade-on-thumbnails-file) |
| salvadhor on 5 February 2007 20:43:42 | | Thanks | Thanks !
I've added two small code corrections ( restrictions for non-logged users to not create/remove tags ), and it's fully usable :)
|
| Buck 5 February 2007 20:46:18 | | comment | | Oh, I should include this in the Option Menu! |
| Thais on 8 August 2007 9:49:28 | | public tag removal | | I was looking for the patch ov salvadhor that prevents non-logged on users adding/removing tags. Or am i missing a menuoption? |
| Lord Weirdo 13 October 2007 10:25:36 | | Postgres7.4.13 | Hi Buck,
I'm very impressed by wwwphoto, and so I've downloaded it...
I've had the problem, that my Host has MySQL 4.1, so I've decided to take PostgreSQL.
Is it Possible, that for some reason wwwphoto doesn't work with Postgres 7.4.13?
The error message would be:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? in /home/httpd/vhosts/####/httpdocs/####/wwwphoto0.1.5/include/database.php on line 69
Error: cannot connect to database localhost.####wwwphoto (42P12)
It can't be a problem with passwd or something like that... I've checked...
Do you or someone else have a guess?
Thanks |
| Buck 13 October 2007 15:39:37 | | Re: Postgres7.4.13 | Hi,
I assume you have everything set in config/config.php, right?
Check if you can change 'localhost' to the IP of your Host, to 127.0.0.1 or your domain name. I depends on the configuration file 'pg_hba.conf' of the PostgreSQL server. Maybe Postgres is listening on a different port. |
| Leonid on 6 November 2007 16:17:28 | | At the first start | Hi
Parse error: parse error, unexpected ';', expecting '(' in /home/urghanar/public_html/design/wwwphoto/index.php on line 75
ver WWWPhoto 0.1.5
MySQL |
| Leonid on 20 November 2007 16:55:32 | | Problem | There is a problem.
Using national languages tags are normally displayed in index.php, but it is impossible to enter them there.
In the administrative interface tags indication as two byte. To enter them there it is impossible also.
Whether is it possible to correct it?
PostgreSQL is used. |
| woodenpickle on 3 January 2008 21:29:37 | | Install Error | Hey, I am getting the same error as Leonid just after install..
Parse error: parse error, unexpected ';', expecting '(' in /homepages/33/d184209107/htdocs/gal/index.php on line 75
Was there a solution found to fix it?
Thanks,
Bob
|
| Buck 7 January 2008 3:17:36 | | comment | Hi, which PHP Version are you using?
|
| Vinay on 18 February 2008 9:10:39 | | php error | Hey, I am getting the same error as Leonid just after install..
Parse error: parse error, unexpected ';', expecting '(' in /var/www/html/photo/index.php on line 75
I am using PHP 5.2.2
Please suggest any solution ...
Thanks,
Vinay |
| Bernhard Rode on 1 April 2008 10:37:10 | | Mehr Entwickler | Hi, nach langem suchen bin ich heute über dein projekt gestolpert.
Endlich mal ein sinnvolles Stückchen Software.
Ich würde gerne einige Sache ausprobieren und falls sie funktionieren wieder einfliessen lassen.
Hast du Pläne ein Sourceforge oder Google Code Projekt aufzustellen, damit man eine zentrale Sourcecode Verwaltung zur Verfügung hat?
|
| Bernhard Rode on 1 April 2008 15:53:08 | | Sorry for my german post | Sorry for writing in german =)
I just wanted to thank you for wwwphoto and i was asking wheter your thinking of getting the project to Google Code or Sourceforge, so coders like me might join and add futures...
looking forward hearing from you
b.
mail at bernhardrode dot de |
| Simeon Hoch 13 October 2008 21:37:03 | | Thumbgen? | Hi Buck,
I wanted to ask, for what can I use the thumbgen. Is it possible to combine wwwPhoto with thumbgen? I didn't get any Readme or something like that... |
|
|