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,
|
||||
Posts: 8601
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)
Posts: 3236
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.
Posts: 32509
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
Posts: 27
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
Posts: 8601
Auto-Highlight By Filename ?
Posts: 32509
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).
Posts: 27
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
Posts: 9
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!