Thanks for providing the new version so quickly!
I don't want to keep bugging you, but there were a couple of things that came up in the implementation. The
theme I'm using is narrow, so I had to adjust the width accordingly. That resulted in the images in the scroller shrinking significantly enough so that it's really hard to see. I don't know if there could be a solution to that but just wanted to bring it up just in case.
Another thing is since I put the scroller on my blog and gallery, I needed to place the .swf file in both locations. Is it possible to enter an address for the file so that only one copy of the .swf is needed?
For those who want an includable version of flow.htm, create a file in the include folder called flow.inc.php:
<?php
if (IN_COPPERMINE) {
$path=$CONFIG['site_url'];
} else {
$path = 'http://GALLERY_URL/';
}
?>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="<?php echo $path; ?>flow/AC_RunActiveContent.js" language="javascript"></script>
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=<?php echo $path; ?>flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>
Then use the include function to add the scroller on a gallery page.
When including the file in an external application, add this line before the inclusion line:
define('IN_COPPERMINE', false);
Edit GALLERY_URL accordingly.