Hey There,
I'm trying to show latest images and albums on my homepage (outside of zenphoto)
my template is flickrish and I use it's index page on my external page. The page looks but normally zenphoto index shows just 14 pictures and 7 albums. On external page the image number is ok but instead of 7 latest albums, it shows all the albums added to the system. it doesnt use pagination on that page.
codes are here `<HEAD>
<META http-equiv=content-type content=text/html;charset=iso-8859-9>
<META http-equiv=content-type content=text/html;charset=windows-1254>
<META http-equiv=content-type content=text/html;charset=x-mac-turkish>
<link rel="stylesheet" type="text/css" href="style.css">
<TITLE></TITLE>
<base target="main">
</HEAD></p>
<p><BODY BGCOLOR="WHITE">
<? define('WEBPATH', 'fotogaleri');
require_once(WEBPATH . "/zp-core/template-functions.php");
require_once(WEBPATH . "/zp-core/zp-extensions/image_album_statistics.php"); ?>
<div id="content">
<div class="welcome"></p>
<p> </div>
<h1>� Son Eklenen Fotoğraflar</h1>
<div class="siteInfo">
<div id="recentPhotos">
<?php printLatestImages(14)?>
</div>
</div>
<div id="content">
<div class="welcome"></p>
<p> </div></p>
<p> <h1>� Son Eklenen Galeriler</h1>
<div class="albums"></p>
[list]
<?php
setOption("albums_per_page",1,false); normalizeColumns(5, 4);
while (next_album()):
?></p>
[*]<div class="album">
<div class="albumPic">
<a>" title="<?php echo getAlbumTitle();?>" target="_blank" >
<img class="albumThumb" height="75" width="75" src="<?php echo getAlbumThumb()?>" />
</a>
</div>
<h4><a>" title="<?php echo getAlbumTitle();?>"><?php echo getAlbumTitle();?></a></h4>
<p>
<?php
$subalbumcnt = getNumAlbums();
$photocnt = getNumImages();
?>
<span class="albumInfo">
<?php if($subalbumcnt > 0) { ?>
[b]<?php echo $subalbumcnt?>[/b] albums
<?php } ?>
<?php if($photocnt >0){ ?>
[b]<?php echo $photocnt ?>[/b] foto</span>
<?php } ?>
</p>
</div>
<p> <?php endwhile ?>
[/list]
<p></body> `
and another question. how can I make a static page like index2.php ? a simple solution and tutorial for this?
Thanks in advance