Show all images without respect to album

wildguy
wildguy's picture

Joined: 2007-09-04
Posts: 42
Posted: Tue, 2011-01-18 16:27

I want to modify my theme so that the each album (including the root album) shows all images within the album, ordered by recency, as well as all images in the sub-albums. The sub-albums themselves will not be visible, but their descendants will be. I will then write my own logic to filter the results. I have gallery embedded into drupal 6.2.

Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.4 cgi-fcgi
Webserver = Apache
Database = mysqli 5.1.39-log, lock.system=flock
Toolkits = Gd, ImageMagick, NetPBM, Ffmpeg
Acceleration = none/21600, none/3600
Operating system = Linux ps41821 2.6.33.7-vs2.3.0.36.30.4 #23 SMP Tue Sep 28 05:47:35 PDT 2010 x86_64
Default theme = ws3
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5
Rows in GalleryAccessMap table = 837
Rows in GalleryAccessSubscriberMap table = 3556
Rows in GalleryUser table = 5857
Rows in GalleryItem table = 3544
Rows in GalleryAlbumItem table = 72
Rows in GalleryCacheMap table = 0

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-01-18 19:09

So you want a theme that's guaranteed to make browsing slow and if you have more than a few visitors quite possibly crash the server?

Yeah, you should be able to do that, have fun though.
____________________________________________
Like Gallery? Like the support? Donate now!

 
wildguy
wildguy's picture

Joined: 2007-09-04
Posts: 42
Posted: Tue, 2011-01-18 19:24

Only specific albums will have public access and I will paginate the results. Plus I'd utilize JavaScript image loading to ensure that images are only loaded when necessary. I suspect that would keep the server load from getting too outrageous. No?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-01-18 21:24

No would be correct, IMO. You're still making the theme/Gallery/server do a TON of work to gather all of that information and the more permissions you have, the more work too. Dayo or suprsidr may have some other ideas, but honestly I can't see how this could function other than slow and the more content you add, the slower it'll be.

G3 might be a better beast for something like this, but I still think all that work of digging down to grab all the descendants to get all of that info at once will still be pretty heavy and costly. I'm only thinking G3 might be a better beast for this because it at least has a file structure you could drill down instead of making tons of DB calls.
____________________________________________
Like Gallery? Like the support? Donate now!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-01-18 21:35
 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2011-01-18 22:09

Is this not sort of what dynamicalbum does?

Maybe you can take a look at that and modify it for your needs.

Depending on your gallery size, it could place some strain on your server as mentioned though.

--
dakanji.com

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-01-18 22:16
 
wildguy
wildguy's picture

Joined: 2007-09-04
Posts: 42
Posted: Tue, 2011-01-18 22:30

Yea, mediaBlock seems like it might cover all the bases. It's either that or write a script to import all of the images and their respective data directly into Drupal (which is likely much more of an undertaking and not something I could complete reasonably quickly on my own). I will give mediaBlock a try. Thanks you for the help!

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2011-01-18 22:36

Need to take some time to look at mediablock and the other tools on your site at some point.

--
dakanji.com

 
wildguy
wildguy's picture

Joined: 2007-09-04
Posts: 42
Posted: Tue, 2011-01-18 22:52

Ideally, I'd like to have access to other data as well, particularly custom fields. What I ultimately want is to have my gallery media display inline with other drupal nodes (use taxonomy url structure to display both drupal content and galley items on the same page). Maybe I could accomplish this by making gallery's albums/tags coincide with my drupal taxonomy/tags and then building gallery search into my drupal theme. So if a user access products > animals > cats, the drupal content will display and a gallery search result for all items tagged 'cats' within the animals album could be displayed as well. I hope that makes sense.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-01-18 23:03

mediaBlock handles tags already

if you're interested in the pagination of the jQuery version, I'll have to send it to you.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
wildguy
wildguy's picture

Joined: 2007-09-04
Posts: 42
Posted: Tue, 2011-01-18 23:16
suprsidr wrote:

if you're interested in the pagination of the jQuery version, I'll have to send it to you.

-s

Yes, that would be very helpful. I noticed that mediaBlock handles tags, im going to try it out tonight. Looks very promising for what I'm trying to do. I sent you a pm with my email addy.

Thanks again everyone, I feel like I will find success.