Gallery 3 Album Sort Order help

vacpakman1

Joined: 2012-09-23
Posts: 3
Posted: Wed, 2012-09-26 13:17

So my permissions on Gallery 1 just quit working last week (so the resized images were blank) so I just installed Gallery 3 and then imported all my images from Gallery 1. Everything works great thank you :) I am having the following 2 small items that I need some help with.

1. Album Sort order - When I create a new album and add pictures to it it just disappears. How do I set it so that when I create a new album it shows up first on the list? In other words show me recent albums first?

2. We use our gallery to host pictures then use the url address in our html code. I notice on gallery 3 it has a different url address string which means the photo's wont show up. Anyway to set it so the url address string is the same as Gallery 1 so our images show up?

Thanks Dustin

 
vacpakman1

Joined: 2012-09-23
Posts: 3
Posted: Wed, 2012-09-26 13:32

OK so I just figured out the album sort order, so now I just need to figure out how to get the url path the same as my old gallery. So in gallery 1 for example the url path was

/albums/album135/147a_1.sized.jpg

and for the same image on the new Gallery 3 the url string is

/var/resizes/album135/147a_1.jpg?m=1348610309

Is it possible for it to match the old string?

Thanks Dustin

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-09-27 00:52

1: http://codex.gallery2.org/Gallery3:Modules:default_sort
2. Some rewite rules to your .htaccess should help. I'm no rerwite expert so I will leave that to the community to chime in.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Fri, 2012-10-05 00:51

I think I'm understanding that you want the old links to find the new photos in the new location. If that's correct, try:

RewriteRule ^/albums/(.*).sized.jpg$ http://yourwebsite.com/var/resizes/$1.jpg [L,R]

Which htaccess file you put it in depends on how your directories are structured.
(You don't need the part with the ?m.)

Moving forward (for G3), you may be interested in the embedlinks module.
http://codex.gallery2.org/Gallery3:Modules:embedlinks