Simple Module: easy uploads, editing, and rotates

nkurz

Joined: 2005-08-16
Posts: 12
Posted: Tue, 2005-08-23 11:00

I just threw together a module to make a simpler user interface especially for new users. I'm going to use it for a group album of people contributing photos from a recent wedding. It shows a more streamlined upload process, an edit option without confusing options, and AJAX style photo rotation.

The code quality of my module is terrible (I'm new to both PHP and Gallery). I've tested it only a tiny bit, and am sure there are bugs. I've cut corners with serial number checking, so there are lots of potential simultaneity issues. I think it's a decent proof of concept though, and I think it meets my immediate needs. I welcome suggestions for it, though, especially in the hope that someone with more knowledge of Gallery might be inclined to make a real module out of it.

Test site is up at: http://test.notate.net/gallery
Source available: http://test.notate.net/module_simple.tar.gz

(test site might disappear at any point, so I've attached the module here too)

--nate

AttachmentSize
module_simple.tar.gz12.9 KB
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2005-08-23 13:35

Since I can't edit your photos, I don't support you could make and post a screenshot of your interface? This way someone can see if they like it without having to install it first.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-08-23 15:30

this stuff sounds very interesting.

could you or nivekiam add it to the user contributions page on codex.gallery2.org? gotta check it out when i'm back in Europe.

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Tue, 2005-08-23 17:51
nivekiam wrote:
Since I can't edit your photos, I don't support you could make and post a screenshot of your interface? This way someone can see if they like it without having to install it first.

What do you mean you can't edit his photos? He has on his gallery page the userid and password where you can login and play around with it.

 
nkurz

Joined: 2005-08-16
Posts: 12
Posted: Tue, 2005-08-23 17:56
nivekiam wrote:
Since I can't edit your photos, I don't support you could make and post a screenshot of your interface? This way someone can see if they like it without having to install it first.

You can edit them. That's why I made a test site :). Go to the link and try it out.
If you can't, I set up something wrong. Use the login information in the album description and you should be able to upload, edit descriptions, and rotate.

--nate

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-08-23 22:12

Added to user contrib.. thanks, nkurz!

The rotate thing got js errors for me in the edit view, though it did appear to rotate when I clicked Change. (moz1.7.5,win2k)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2005-08-24 03:11

Do'h! Helps if I actually read ;)

EDIT: Very cool!

However when I rotate and click Cancel, the changes are not cancelled and the rotation is still made.

 
nkurz

Joined: 2005-08-16
Posts: 12
Posted: Wed, 2005-08-24 04:39
mindless wrote:
The rotate thing got js errors for me in the edit view, though it did appear to rotate when I clicked Change. (moz1.7.5,win2k)

I just tried it with Mozilla 1.7.11 and XP Home (closest I could come up with), but couldn't reproduce the problem you saw. Could you give more details so I could try to figure out the what went wrong?

Thanks!

--nate

 
nkurz

Joined: 2005-08-16
Posts: 12
Posted: Wed, 2005-08-24 04:46
nivekiam wrote:
However when I rotate and click Cancel, the changes are not cancelled and the rotation is still made.

True. I started to put that in, but wasn't sure how to do it. I didn't spend enough time on the existing code to figure out how the 'revert' functionality worked, particularly how one specifies how far it should be rolled back. I'll try to figure that out, as I agree it is confusing.

--nate

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-08-24 14:17

Just tried FF1.0.6/MacOSX10.4.2 and rotate worked fine.. i'll try my other setup again in a bit.