sorry for my wrong contain.
now i made hacks in template functions.
with the old code i'm continuing to dipslay only a video that doesn't change when i add others
<p id="player">
<?php
$images = getImageStatistic($_zp_gallery->getNumImages(), "date");$x = 1;
$x = 1;
foreach ($images as $image) {
if (is_null($image->getVideoThumb())){$x=$x-1;}else{
$imageURL = getURL($image);
$imageURL = str_replace("video",'/video/albums',$imageURL);
echo "<script type=\"text/javascript\">";
echo "var so = new SWFObject(\"/video/zp-core/flvplayer.swf\",\"player\",\"320\",\"240\",\"7\");";
echo "so.addParam(\"allowfullscreen\",\"true\");";
echo "so.addVariable(\"file\",\"".$imageURL ."\");";
echo "so.addVariable(\"displayheight\",\"310\");";
echo "so.write(\"player\");";
echo "</script>";
}
if ($x++ >=1) {
break;
}
}
?>
With the new
<?php
$images = getImageStatistic($_zp_gallery->getNumImages(), "latest-date");
$x = 1;
foreach ($images as $image) {
if (is_null($image->getVideoThumb())){$x=$x-1;}else{
$imageURL = getURL($image);
$imageURL = str_replace("video",'video/albums',$imageURL);
echo "<div id=\"player\">";
echo "<script type=\"text/javascript\">";
echo "var so = new SWFObject(\"/video/zp-core/flvplayer.swf\",\"player\",\"320\",\"240\",\"7\");";
echo "so.addParam(\"allowfullscreen\",\"true\");";
echo "so.addVariable(\"file\",\"\".$imageURL .\"\");";
echo "so.addVariable(\"displayheight\",\"310\");";
echo "so.write(\"player\");";
echo "</script>";
echo "</div>";
}
if ($x++ >=2) {
break;
}
}?>
i get this error
MySQL Query ( SELECT images.albumid, images.filename AS filename, images.title AS title, albums.folder AS folder, images.show, albums.show, albums.password FROM `zp_images` AS images, `zp_albums` AS albums WHERE images.albumid = albums.id AND images.show=1 AND albums.show=1 AND albums.folder != '' ORDER BY DESC LIMIT 4 ) Failed. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC LIMIT 4' at line 1
Bert, i saw your page and now know it's working.
I think it is the mysql server version (..error in your SQL syntax...your MySQL server version for the right...).
I will try on the server and inform you as soon as possible.
Thanks a lot for yours gold help!!!!