Welcome to Geeklog, Anonymous Saturday, June 15 2024 @ 06:32 am EDT

Geeklog Forums

featured media per topic using Inmemoriam Media Gallery


Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
If you are using Inmemoriam Media Gallery and would like to display a different "featured" album per topic, then this post is for you.

Currently the plugin supports one featured album that will display on your index page on a particular topic (only one), or all topics, or on just the homepage. If you would like multiple albums, featured or not, to display on your choice of topics, one or many or all, then just create a PHP enabled staticpage centerblock, or as many as you want (one for each album that you want displayed), set it to display in what topic you choose, and add this code to the content editor:
Text Formatted Code
global $_CONF;
require_once($_CONF['path'].'/plugins/inmemoriam/functions.inc');
//the parameter passed to the following function indicates the ID of the album to be displayed.
print inm_showAlbumSummary('2');

 

If you wish to showcase an individual media item, you can use the same technique as above, but with the inm_showMediaSumm() function where the parameter passed is the ID of the individual media item.
 Quote

All times are EDT. The time is now 06:32 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content