ZenphotoCMS Forum
how linked lastimage to album - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: how linked lastimage to album (/thread-6634.html)



how linked lastimage to album - phil_photo - 22-02-2010

Hello,

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

         `

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




how linked lastimage to album - sbillard - 23-02-2010

You would have to create a modified version of the plugin and change the line reading
echo "getImageLink())."\" title=\"" . html_encode($image->getTitle()) . "\">\n";

to output the album link rather than the image link. Please see the user guide for more details. Specially the object model tutorial and the functions guide.




how linked lastimage to album - phil_photo - 23-02-2010

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




how linked lastimage to album - acrylian - 23-02-2010

I am sorry, it is really not avoidable that you learn a few php basics first if you would like to modify standard behaviour.




how linked lastimage to album - phil_photo - 23-02-2010

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.




how linked lastimage to album - acrylian - 23-02-2010

Please only post in English. Otherwise we won't be able to help you any further.




how linked lastimage to album - phil_photo - 23-02-2010

Sorry, i used a translater a I've copy/past the wrong texte.

[i]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. [/i]




how linked lastimage to album - acrylian - 23-02-2010

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()`.



how linked lastimage to album - phil_photo - 23-02-2010

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.