Member
Member
phil_photo   22-02-2010, 23:46
#1

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

Member
Member
sbillard   23-02-2010, 01:34
#2

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.

Member
Member
phil_photo   23-02-2010, 12:42
#3

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

Administrator
Administrator
acrylian   23-02-2010, 13:40
#4

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

Member
Member
phil_photo   23-02-2010, 18:09
#5

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.

Administrator
Administrator
acrylian   23-02-2010, 18:22
#6

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

Member
Member
phil_photo   23-02-2010, 18:34
#7

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]

Administrator
Administrator
acrylian   23-02-2010, 18:49
#8

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()`.
Member
Member
phil_photo   23-02-2010, 20:36
#9

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.