how linked lastimage to album

Hello,

I 'm used image_album_statistics plugins to show most recent image on the index page of my website, like this `

<?php define('WEBPATH', 'zenphoto');<br />
require_once(WEBPATH . "/zp-core/template-functions.php");

require_once(WEBPATH . "/zp-core/zp-extensions/image_album_statistics.php"); ?>

<?php printLatestImagesByMtime(5, "", false, false,false,40,"", 120, 120, false);?> `

It's work well, but I 'd like linked thumbnail to the album and not to the image.
I'm a newbie and i search since a few hours

Comments

  • Thank you, But would not you more information? I really begins in php and I do not always understand English well in the documentation. I try $getimagelink replaced by $getalbumlink, but it does not work.
    I try search how to do in forum and in documentation, but i have nothing found.

    Thanks
  • acrylian Administrator, Developer
    I am sorry, it is really not avoidable that you learn a few php basics first if you would like to modify standard behaviour.
  • Je suis désolé, mais jusqu'a présent j'avais les connaissances suffisantes pour utiliser et apporter quelques modifications à des scripts php.. Ici je demandais simplement si il n'était pas possible de me mettre un peu plus sur la voie. Cela a deja été fait pour d'autres sur le forum. Cela fait plusieurs heures que j'essaie d'adapter zenphoto à mon website.
  • acrylian Administrator, Developer
    Please only post in English. Otherwise we won't be able to help you any further.
  • Sorry, i used a translater a I've copy/past the wrong texte.

    I'm sorry, but until now had sufficient knowledge to use and make some changes to php scripts .. Here I just wondered if it was not possible to put me on the track. This has already been done for others on the forum. For several hours trying to adjust my website to zenphoto.
  • acrylian Administrator, Developer
    You will probably agree that your problems for hours with your website because of "insufficent knowledge or understanding English" is not exactly our problem. But here are some short steps to help:

    1. Duplicate `image_album_statistics.php` and rename it.
    2. Find `printImageStatistic()` and look at line 418.
    3. Before the line add `$album = $image->getAlbum(); Then change where it says`$image->getImageLink()`to`$album->getAlbumLink()`.
  • Thank you very much. I try many things in this way there after the message of Sbillard, but this did not work.
    Again thank you.
Sign In or Register to comment.