Module: Album Auto-Highlight By Filename

ralphch

Joined: 2005-06-18
Posts: 27
Posted: Thu, 2005-06-30 01:17

Hi,

This is a new G2 Beta3 module that automatically detects and highlights an album thumbnail as specified within the module's configuration.

Album Auto-Highlight By Filename can be useful for people who upload many albums and want a custom thumbnail automatically set for each. It requires that you create in your PC a custom thumbnail for each album and place it with the other album items. So, for example, you can create a _category_image.jpg for each of your albums and then, when uploading the items, Album Auto-Highlight By Filename will check for _category_image.jpg and set it as the album's thumbnail and also remove all permissions so that it can only be viewed as an item by the administrator group.

I want to thank valiant for his enormous help during the development.

Regards,
Ralph

AttachmentSize
albumthumb.zip5.12 KB
 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-06-30 03:27

Thanks for this contribution, ralphch.. I am curious how this differs from the custom thumbnail option of the thumbnail module? (activate thumbnail module, do edit album / General tab and see custom thumbnail section)

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2005-06-30 05:03

I think this is an automatic way for a certain image to become the album's thumbnail. Like, if you upload 100 images and *one* of them is named frog_category_image.jpg that image will be used instead of simply the first one uploaded.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-06-30 09:14

yup, fryfrog is right. congratulations ralphch. G2 has a steep learning curve and you've mastered it :)

perhaps you could clarify what your module does in your first post of this thread. and you need a module name that is more descriptive.
i've added it to the user contributions page: http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=G2%20-%20User%20Contributions

 
ralphch

Joined: 2005-06-18
Posts: 27
Posted: Thu, 2005-06-30 11:54

I've changed my first post. Let me know if the module's purpose is still not clear. Also, if you think of a better name, please let me know. I'll try finding a more descriptive yet brief name for Album Thumbnail. Maybe 'Automatic-Custom Album Thumbnail'??

Regards,
Ralph

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-06-30 16:32

Auto-Highlight By Filename ?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-06-30 16:44

yeah, that's a good name :)
so this could be the module name. and either keep the id or choose autohighlightbyfilename (or something shorter, just don't have any hyphens in the module id = module directory name).

 
ralphch

Joined: 2005-06-18
Posts: 27
Posted: Thu, 2005-06-30 21:41

mindless thanks for the suggestion! I've changed the module's name to "Album Auto-Highlight By Filename", but kept the same id 'albumthumb'.

Regards,
Ralph

 
rup3rt

Joined: 2005-10-26
Posts: 9
Posted: Thu, 2005-11-03 12:09

I´d love to try this out but got these version errors. Is there a quick fix?

Core API Required: 5.8 (available: 6.8)
Module API Required: 0.9 (available: 2.0)

---------
I edited module.inc and it installed...

More news soon
---------

Thx!