Question about external page

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> <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

Comments

  • acrylian Administrator, Developer
    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>

    Just a note: You should decide what charset you are actually using...

    flickrish is not a offical theme so we can't support it. Part of your code is unreadable because not properly escaped (backticks or html CODE tag). However, you have probably to set up the right context to get the pagination to work. But note that Zenphoto with all its feature is not meant to be used externally. It's a system of its own.

    Regarding extra pages I suggest to read the theming tutorial.
  • acrylian, lets say I don't want to use pagination. I just want to limit the latest albums to 5. can I do this within those codes?

    `

    <?php<br />
    setOption("albums_per_page",1,false); normalizeColumns(5, 4);

    while (next_album()):

    * ?>





    " title="<?php echo getAlbumTitle();?>" target="_blank" >

    image" />

    " title="<?php echo getAlbumTitle();?>"><?php echo getAlbumTitle();?>



    <?php<br />
    $subalbumcnt = getNumAlbums();

    $photocnt = getNumImages();

    ?>



    <?php if($subalbumcnt > 0) { ?>

    <?php echo $subalbumcnt?> albums

    <?php } ?>

    <?php if($photocnt >0){ ?>

    <?php echo $photocnt ?> foto

    <?php } ?>

    `
  • acrylian Administrator, Developer
    Sure, count within the loop and stop it when you reached the 5.
Sign In or Register to comment.