I've seen that one. Not sure it does exactly what I want but Thanks.
Sean
jnash
Joined: 2004-08-02
Posts: 814
Posted: Mon, 2012-05-07 01:43
As much as this module would be nice to have. From my attempts thus far, it would be quite an undertaking to do it.
I looked at the functions in modules/gallery/models/item.php and there are three that handle the thumbnails.
Two of these three require extensive replacement to function correctly.
This is just the framework, to actually do the randomization would be on top of that.
Couple of problems making it harder than I want:
1) The thumb code is generic for ALL thumbs, whether they are albums/photos/movies, and although there are hooks for these, the thumb dimensions are a pain, cause they rely on the database record for the item, and in the case of an album, the generated dimensions when the current (real) thumbnail is generated. This requires a bit of coding to fix.
2) I'm not sure if this is a kohana bug or what, but when another module is 'replacing' these functions (such as 'stop owner counts' or 'aws_s3') then only the first module 'works' with these replacements (using MY_whatever.php's)
[ Although everything I've read says you can't extend models with MY_ - even though both aws and stopownercounts work - but only when they are activated alone... ie: you can't have both activated...]
#2 may be my stupidity, although I can't figure it out why...
3) I'm not smart enough I suppose to tackle this.
EDIT: This is a lost cause for me, as you can't have two MY_files.php for the same class...
Posts: 27300
Not that I know but this has been done:
http://codex.gallery2.org/Gallery3:Modules:album_cover_browser
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 76
Thanks Dave,
I've seen that one. Not sure it does exactly what I want but Thanks.
Sean
Posts: 814
As much as this module would be nice to have. From my attempts thus far, it would be quite an undertaking to do it.
I looked at the functions in modules/gallery/models/item.php and there are three that handle the thumbnails.
Two of these three require extensive replacement to function correctly.
This is just the framework, to actually do the randomization would be on top of that.
Couple of problems making it harder than I want:
1) The thumb code is generic for ALL thumbs, whether they are albums/photos/movies, and although there are hooks for these, the thumb dimensions are a pain, cause they rely on the database record for the item, and in the case of an album, the generated dimensions when the current (real) thumbnail is generated. This requires a bit of coding to fix.
2) I'm not sure if this is a kohana bug or what, but when another module is 'replacing' these functions (such as 'stop owner counts' or 'aws_s3') then only the first module 'works' with these replacements (using MY_whatever.php's)
[ Although everything I've read says you can't extend models with MY_ - even though both aws and stopownercounts work - but only when they are activated alone... ie: you can't have both activated...]
#2 may be my stupidity, although I can't figure it out why...
3) I'm not smart enough I suppose to tackle this.
EDIT: This is a lost cause for me, as you can't have two MY_files.php for the same class...
Posts: 76
That is a shame as we had this in Gallery 2.
Thanks jnash for trying.
Posts: 64
Is there any update about this?