hi Mammlouk
i am doing test now but i thing i did not have the code above in the right place
bellow is the full "album.php" file code could u pls re-write it for me according to your code above?
you may find lines like:
<!--Modified From Original Start-->
<!--Modified From Original End-->
i made this lines so i can work out the original from the modifications each time i upgrade.
here is the code:
<?php if (!defined('WEBPATH')) die(); $themeResult = getTheme($zenCSS, $themeColor, 'light'); $firstPageImages = normalizeColumns('2', '6');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php zenJavascript(); ?>
<title><?php printGalleryTitle(); ?> | <?php echo getAlbumTitle();?></title>
<link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
</head>
<body>
<div id="main">
<!--Modified From Original Start-->
<div id="gallerytitle">
<?php if (getOption('Allow_search')) { printSearchForm(''); } ?><br>
<h2><span><?php printHomeLink('', ' | '); ?><a>" title="<?php echo gettext('Albums Index'); ?>"><?php echo getGalleryTitle();?></a> | <?php printParentBreadcrumb(); ?></span> <?php printAlbumTitle(true);?></h2>
</div>
<!--Modified From Original End-->
<!--Modified From Original Start-->
<!--Google AdSense Start-->
<script type="text/javascript"><!--
google_ad_client = "pub-3990536319331218";
/* 468x15, created 5/29/08 */
google_ad_slot = "3140085176";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br><br>
<!--Google AdSense End-->
<!--Modified From Original End-->
<div id="padbox">
<?php printAlbumDesc(true); ?>
<div id="albums">
<?php while (next_album()): ?>
<div class="album">
<div class="thumb">
<a>" title="<?php echo gettext('View album:'); ?> <?php echo getAlbumTitle();?>"><?php printAlbumThumbImage(getAlbumTitle()); ?></a>
</div>
<div class="albumdesc">
<h3><a>" title="<?php echo gettext('View album:'); ?> <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<small><?php printAlbumDate(""); ?></small>
<!--Modified From Original Start-->
<br>
<span class="CustomData"><?php
if (getAlbumCustomData()) echo getAlbumCustomData();
if (getAlbumCustomData()) getAlbumCustomData();
getAlbumCustomData();
?> </span>
<?php
$number = getNumsubalbums();
if ($number > 0) {
if (!($number == 1)) { $number .= gettext(' albums'); } else { $number .= gettext(' album'); }
$counters = $number;
} else {
$counters = '';
}
$number = getNumImages();
if ($number > 0) {
if (!empty($counters)) { $counters .= ", "; }
if ($number != 1) $number .= gettext(' photos'); else $number .= gettext(' photo');
$counters .= $number;
}
if (!empty($counters)) {
echo "[i]($counters)[/i]<br/>";
}
$text = htmlspecialchars(getAlbumDesc());
if(strlen($text) > 200) {
$text = preg_replace("/[^ ]*$/", '', substr($text, 0, 200))."...";
}
echo $text;
?>
<!--Modified From Original End-->
</div>
<p style="clear: both; ">
</div>
<?php endwhile; ?>
</div>
<div id="images">
<?php while (next_image(false, $firstPageImages)): ?>
<div class="image">
<div class="imagethumb"><a>" title="<?php echo getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></a></div>
</div>
<?php endwhile; ?>
</div>
<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
<?php printTags('links', gettext('[b]Tags:[/b]').' ', 'taglist', ''); ?>
</div>
<?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('View Slideshow')); ?>
<?php if (function_exists('printAlbumRating')) { printAlbumRating(); }?>
<!--Modified From Original Start-->
<table border="0" width='100%'>
<tr><td><?php if (getOption('Allow_ratings')) { printAlbumRating(); }?></td>
<td valign='center' align='right'>Album Viewed: <?php echo hitcounter("album",false) ?> Times</td></tr>
</table>
<!--Modified From Original End-->
</div>
<div id="credit"><?php printRSSLink('Album', '', gettext('Album RSS'), ''); ?> | <a>?p=archive"><?php echo gettext("Archive View"); ?></a> | <?php echo gettext("Powered by"); ?> ">zenphoto</div>
<?php printAdminToolbox(); ?>
</body>
</html>