staticpage.txt Media Gallery supports the ability to create an album list using glFusion's Static Page. In order to use this, you must have PHP enabled for static pages. See the glFusion documentation for information about enabling PHP for static pages. Create a static page Make the following 2 lines the contents of the static page global $MG_albums; echo $MG_albums[0]->showTree(0); The showTree(##) is the depth. 0 prints all albums in Media Gallery, 1 prints the first level of albums, 2 - print 2 levels deep... Make sure you select the following for the static page: Check Wrap Static Page in a block PHP: execute PHP Save the file and it should now display a full list of your albums when the page is loaded. *** Splash Slide show for Static Page *** Add the following to your lib-custom.php function phpblock_mg_fsplash($aid, $width, $height, $delay, $transition, $enable_link=0){ global $MG_albums, $_MG_CONF, $_CONF, $LANG_MG03, $swfjsinclude; if ( $MG_albums[$aid]->access == 0 ) { return 'No access'; } if ( $MG_albums[$aid]->hidden || $enable_link == 0 ) { $nolink = 'true'; } else { $nolink = 'false'; } $swfobject = '' . LB; $swfobject .= '
' . LB;
$swfobject .= ' ' . LB;
$swfobject .= '