Add Album Usability

darksnow

Joined: 2009-11-12
Posts: 6
Posted: Thu, 2009-11-12 16:17

I've installed G2 embedded in PHPBB3 and my users have raised a valid concern.

When adding a new album, you are presented with the usual page asking for the album path, title, keywords, description etc, which is all fine, but after you add your new album the user is taken to the Album tab of the edit album pages.

While this may well be fine for those creating a personal gallery, it's a bit overwhelming for users that just want to upload a few pictures and don't want to worry about what size they will be resized to, that's a decision for the administrator of the site.

So, my question is, is there a way to change this behaviour so the user is taken to the empty gallery rather than the "Edit Album" page?

It seems like something pretty straight forward to accomplish and I think it would provide a huge usability boost.

Thanks.

Martin.
Darksnow.co.uk

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Thu, 2009-11-12 18:44
Quote:
So, my question is, is there a way to change this behaviour so the user is taken to the empty gallery rather than the "Edit Album" page?

Sure, install Gallery3 :) But it doesn't currently integrate with anything like PHPBB. You could probably hack G2 for this, but I'm not sure what that hack would be. You wouldn't want to put a redirect in the edit page as you'd never be able to edit :)

I'd probably look at editing /modules/core/ItemAddAlbum.inc and modifying the code around line 91:

                /* Figure out where to redirect upon success */
                $redirect['itemId'] = $instance->getId();

Unfortunately, I have no idea what you'd change.

Curiosity got the best of me and I figured out what to edit. In /modules/core/ItemAddAlbum.inc change the follow code:

                /* Figure out where to redirect upon success */
                $redirect['itemId'] = $instance->getId();
                $ret = GalleryCoreApi::assertHasItemPermission($instance->getId$
                if (empty($ret)) {
                    $redirect['view'] = 'core.ItemAdmin';
                    $redirect['subView'] = 'core.ItemEdit';
                    $redirect['editPlugin'] = 'ItemEditAlbum';
                }

To this:

                /* Figure out where to redirect upon success */
                $redirect['itemId'] = $instance->getId();
                $ret = GalleryCoreApi::assertHasItemPermission($instance->getId$
                if (empty($ret)) {
                    $redirect['view'] = 'core.ShowItem';
                }

I changed that one line and removed the other 2.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
darksnow

Joined: 2009-11-12
Posts: 6
Posted: Fri, 2009-11-13 16:25

You, my friend, are a star.

It's easy when you know where to look, all fixed and much easier to use for it.

Cheers :D

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Fri, 2009-11-13 16:44

I agree and I'm glad we've gone that route with G3.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments