HTML5 Slideshow Support Product Page

Answered

Slideshow not showing when displayed in lightbox.

Asked 28 Feb 2013 22:26:13
1
has this question
28 Feb 2013 22:26:13 Phil Boyle posted:
I have a slideshow here under the image link Boxer Project on this website sweetstreet.co.nz/ and until just recently it was working perfectly, opening and displaying in a lightbox. It has the most current photo and description showing first. Today the client informed me it wasn't working. It isn't displaying any images apart from the first one in the lightbox.

But if you go here sweetstreet.co.nz/boxerproject.php and view it without the lightbox it works with images.

I have stripped everything out and started again .

Here is a copy of the basic page code:

<?php require_once('Connections/dbConn.php'); ?>
<?php
if (!function_exists("GetSQLValueString") {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string" ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "" ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "" ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "" ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_dbConn, $dbConn);
$query_rsBoxerProject = "SELECT * FROM cusphotos WHERE cCategory = 'Boxer' ORDER BY cKey ASC";
$rsBoxerProject = mysql_query($query_rsBoxerProject, $dbConn) or die(mysql_error());
$row_rsBoxerProject = mysql_fetch_assoc($rsBoxerProject);
$totalRows_rsBoxerProject = mysql_num_rows($rsBoxerProject);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="Styles/dmxHTML5Slideshow.css" />
<link rel="stylesheet" type="text/css" href="Styles/dmxHTML5Slideshow/glass_look/glass_look.css" />
<script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="ScriptLibrary/dmxHTML5Slideshow.js"></script>
</head>

<body>



<div class="dmxSlideshow glass_look" id="slideshow1" style="width:666px;height:500px;">
<?php do {?>
<div class="dmxSlide" id="<?php echo $row_rsBoxerProject['cKey']; ?>">
<img src="cms/cusphotos/<?php echo $row_rsBoxerProject['cBlogImage']; ?>" border="0" alt="<?php echo $row_rsBoxerProject['cSnippet']; ?>" />
<div class="dmxDescription">
<h4><?php echo $row_rsBoxerProject['cSnippet']; ?></h4>
<p><?php echo $row_rsBoxerProject['cBlog']; ?></p>
</div>
</div>
<?php } while ($row_rsBoxerProject = mysql_fetch_assoc($rsBoxerProject));?>

<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(
function()
{
jQuery("#slideshow1".dmxHTML5Slideshow(
{"width": 666, "height": 500, "autoPlay": false, "slide": {"duration": 6000}, "description": {"position": "bottom"}, "kenburns": {"enabled": false}}
);
}
);
// ]]>
</script>
</body>
</html>
<?php
mysql_free_result($rsBoxerProject);
?>

<?php require_once('Connections/dbConn.php'); ?>
<?php
if (!function_exists("GetSQLValueString") {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string" ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "" ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "" ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "" ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_dbConn, $dbConn);
$query_rsBoxerProject = "SELECT * FROM cusphotos WHERE cCategory = 'Boxer' ORDER BY cKey ASC";
$rsBoxerProject = mysql_query($query_rsBoxerProject, $dbConn) or die(mysql_error());
$row_rsBoxerProject = mysql_fetch_assoc($rsBoxerProject);
$totalRows_rsBoxerProject = mysql_num_rows($rsBoxerProject);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="Styles/dmxHTML5Slideshow.css" />
<link rel="stylesheet" type="text/css" href="Styles/dmxHTML5Slideshow/glass_look/glass_look.css" />
<script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="ScriptLibrary/dmxHTML5Slideshow.js"></script>
</head>

<body>



<div class="dmxSlideshow glass_look" id="slideshow1" style="width:666px;height:500px;">
<?php do {?>
<div class="dmxSlide" id="<?php echo $row_rsBoxerProject['cKey']; ?>">
<img src="cms/cusphotos/<?php echo $row_rsBoxerProject['cBlogImage']; ?>" border="0" alt="<?php echo $row_rsBoxerProject['cSnippet']; ?>" />
<div class="dmxDescription">
<h4><?php echo $row_rsBoxerProject['cSnippet']; ?></h4>
<p><?php echo $row_rsBoxerProject['cBlog']; ?></p>
</div>
</div>
<?php } while ($row_rsBoxerProject = mysql_fetch_assoc($rsBoxerProject));?>

<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(
function()
{
jQuery("#slideshow1".dmxHTML5Slideshow(
{"width": 666, "height": 500, "autoPlay": false, "slide": {"duration": 6000}, "description": {"position": "bottom"}, "kenburns": {"enabled": false}}
);
}
);
// ]]>
</script>
</body>
</html>
<?php
mysql_free_result($rsBoxerProject);
?>
It can be seen here not displayed in a lightbox sweetstreet.co.nz/TESTboxerproject.php

I have not changed anything. Any suggestions?

Replies

Replied 01 Mar 2013 01:01:01
01 Mar 2013 01:01:01 Phil Boyle replied:
Resolved. Some where a long I must have unknowingly upated the slideshow when doing some other work and it needed the latest updates of certain scriptlibrary files.

Sometimes when you update an extension and then open an older project to do some other work it would be nice to have the choice to update that project's extension because I don't always have the time to check to see if the extension update has caused any problems.

Today is a good example I've spent the day chasing this problem instead of getting other work done. Is this possible?

Reply to this topic