Alternate upload and organise application

Glooper

Joined: 2005-09-21
Posts: 225
Posted: Thu, 2009-09-24 04:00

EDIT: A simpler one module version can be found here... http://gallery.menalto.com/node/91414 .. left this here though in case anyone is interested in keeping it seperate :)

I wanted to create an easier way to upload and manage albums for the people I'm developing G3 sites for . I've also been playing around with googles gwt and love it so I've created an alternative to the simple uploader and organise module that uses gwt. It actually sits outside your g3 gallery so to install you need to do the following steps.

1/ install the module json_api which I've attached to this message. This is a standard gallery 3 module that provides an API for the gwt application. install this in your modules directory and enable from the Gallery Modules page.

2/ unzip the g3admin.zip somewhere else on your server such that you can access it... this is the gwt application that will run in your web browser. you can unzip this in your main gallery3 directory.

3/ edit the index.html found in the g3admin directory which you have just unzipped and change the line
<input type="hidden" id="baseurl" value="http://localhost:8080/g3aug/"/>
to be
<input type="hidden" id="baseurl" value="http://Webserver/path/to/g3/"/>
so that the app access your g3 install.

4/ install googles gear (if you haven't got it already). this is used for the upload of files and will in the future be used for drag and dropping files from the desktop. ( http://gears.google.com/ )

5/ navigate to the g3admin directoy (i.e. http://Webserver/path/to/g3/g3admin/ )
login as administrator and enjoy!

From here you can view your entire gallery.. right click on items to edit/delete them...add albums, upload files (again from the right click menus).. drag and drop photos and albums etc...
also when uploading files you can navigate to various other directories without disturbing the upload.

There's probably loads of bugs so let me know if you have any problems :)

Ben

Benjamin Albert Smith - Photography

AttachmentSize
json_api.zip3.59 KB
g3admin.zip335.71 KB
 
Glooper

Joined: 2005-09-21
Posts: 225
Posted: Thu, 2009-09-24 04:30

Just been doing some testing

It doesn't work in safari ... gears isn't available for safari yet
in IE it kinda works but looks all wrong (surprise surprise!), the thumbs are distorted, the tree text is strange, the dialog boxes have extra buttons and the progress bar when uploading is weird!

In Firefox and Chrome it looks good though :).

Not sure I'm going to waste my time with getting it looking good in IE... gwt makes me use transitional html which is a pain in the arse with IE IMHO and as it's not a public front end I'm only going to support firefox and chrome!...

Ben

Benjamin Albert Smith - Photography

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 619
Posted: Thu, 2009-09-24 04:45

Very nice :)

Are there any plans to make g3admin.zip into a module as well? It'd be cool if you could access it from within Gallery like the simple uploader.

 
Glooper

Joined: 2005-09-21
Posts: 225
Posted: Thu, 2009-09-24 05:33

Cheers watcher...

I hadn't planned to.. but I might look into it. Been working on it for a few days so want a rest from it for maybe a week.. will look at it again then and see whether I can integrate it as a module

also not sure how to add this project to github as it's a java eclipse project that has to be compiled with googles compiler thingy. Not as simple as being just straight javascript etc..

Ben

Benjamin Albert Smith - Photography

 
Glooper

Joined: 2005-09-21
Posts: 225
Posted: Fri, 2009-09-25 04:20

Now in one easier to install module... so you can access from directly from gallery... created a new thread for it here...

http://gallery.menalto.com/node/91414

Ben

Benjamin Albert Smith - Photography