Hey everyone. I usually just sit back and watch, but I have hit a snag. I am trying to put a photogallery (already developed using simpleviewer script) into an already exitsing template. I have found that it works great under Mozilla Firefox, but IE will not display the gallery. Any help is appreciated. Here is the code for my page, if it helps:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body bgcolor="#000000" text="#FF0000" link="#CCCCCC">
<table width="1019" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="127" colspan="2" valign="top"><div align="center">
<p><img src="images/logo.jpg" width="725" height="127"></p>
</div></td>
<td width="1"></td>
</tr>
<tr>
<td width="307" rowspan="2" valign="top"><p><img src="images/scarlet4-black.jpg" width="307" height="599"></p></td>
<td width="711" height="44" valign="top"><table width="100%" border="1">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td rowspan="2" valign="top">
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
//
// SimpleViewer
// ---------------------------------------------------------------------
// Access your SimpleViewer gallery right through this page by getting
// a summary of your currently installed albums first. After your choice
// the requested album will be loaded from the according directory.
//
// Note:
// This file contains the summary, the albums and the installation link.
// This file is embedded in the index.php.
// ---------------------------------------------------------------------
// Copyright (c) 2004 Christian Machmeier
// ---------------------------------------------------------------------
//
// $Id: SimpleViewer.php,v 1.2 2004/06/06 20:52:35 grisu Exp $
//
// Load the SimpleViewer configuration.
require_once 'SimpleViewerConfig.php';
// Load the SimpleViewer functions library.
require_once 'SimpleViewerFunctions.php';
// An album name was specified.
if (!empty($_GET['album']) && is_dir($_GET['album'])) {
$albumConfig = getConfig('./' . $_GET['album'] . '/imageData.xml');
?>
<script language="javascript" type="text/javascript" src="flash_detect.js">
<!--
function getFlashVersion() { return null; };
//-->
</script> <script language="javascript" type="text/javascript">
<!--
var flashVersion = getFlashVersion();
if (flashVersion < 6) {
window.location.replace("upgrade.html");
}
//-->
// backup copy of line from below script - no mod.
// <param name="FlashVars" value="xmlDataPath=SimpleViewerImageData.php?album=<?php echo $_GET['album'];?>" />
</script> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="<?php echo $simpleViewer['galleryWidth']; ?>" height="<?php echo $simpleViewer['galleryHeight']; ?>" id="viewer" align="middle">
<param name="movie" value="viewer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="bgcolor" value="<?php echo str_replace('0x', '#', $albumConfig['backgroundColor']); ?>" />
<param name="FlashVars" value="xmlDataPath=SimpleViewerImageData.php?album=<?php echo $_GET['album'];?>" />
<embed src="viewer.swf" width="<?php echo $simpleViewer['galleryWidth']; ?>" height="<?php echo $simpleViewer['galleryHeight']; ?>" align="middle" quality="high" scale="noscale" bgcolor="<?php echo str_replace('0x', '#', $albumConfig['backgroundColor']); ?>" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="xmlDataPath=SimpleViewerImageData.php?album=<?php echo $_GET['album'];?>" />
</object>
<?php
// No album name was specified
} else {
?>
<table cellpadding="0" cellspacing="0" width="<?php echo $simpleViewer['galleryWidth']; ?>" height="<?php echo $simpleViewer['galleryHeight']; ?>" border="0">
<tr>
<td align="center" valign="middle"> <div id="overview">
<?php
// Get the current number of albums.
$dirList = getDirList('./', '', false, 'dirs');
// SimpleViewer is not installed yet.
if ($dirList['Number'] == 0) {
echo '
<h2>SimpleViewer is not installed!</h2>
Please log in: <a href="SimpleViewerAdmin.php" class="overview">' . $simpleViewer['adminTitle'] . '</a>
';
// SimpleViewer is installed, show the list of albums.
} else {
echo '
<h2>' . $simpleViewer['title'] . '</h2>
Please choose one of my albums:
<ul>
';
// sort and output the album list.
natsort($dirList['List']);
foreach ($dirList['List'] as $k => $v) {
$xmlData = getConfig('./' . $v . '/imageData.xml');
echo '<li><a href="?album=' . $v . '" class="overview">' . $xmlData['title'] . "</a></li>\n";
}
echo '
</ul>
Manage your gallery? <a href="SimpleViewerAdmin.php" class="overview">Login!</a>
';
}
?>
</div></td>
</tr>
</table>
<?php
}
?>
</td>
<td height="555"></td>
</tr>
<tr>
<td height="134"></td>
<td></td>
</tr>
</table>
</body>
</html>