ZenphotoCMS Forum
Latest Images on Gallery Index ( How To ). - 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: Latest Images on Gallery Index ( How To ). (/thread-10780.html)



Latest Images on Gallery Index ( How To ). - photoshopsp - 2013-01-27

Hello, anybody knows the code I have to use to show the latest images in the gallery index using zenpage theme as it's shown in other themes.

Best Regards.




Latest Images on Gallery Index ( How To ). - fretzl - 2013-01-27

Use the function printLatestImages() where you want your image(s) to show.
http://www.zenphoto.org/documentation/plugins/_zp-extensions---image_album_statistics.php.html#functionprintLatestImages




Latest Images on Gallery Index ( How To ). - photoshopsp - 2013-01-27

Many thanks.




Latest Images on Gallery Index ( How To ). - photoshopsp - 2013-01-27

I got it but the images are shown vertically, do you know how to show the images horizontally ?

This is the code I added:




Latest Images on Gallery Index ( How To ). - fretzl - 2013-01-27

Oh, and don't forget to enable the image_album_statistics plugin.




Latest Images on Gallery Index ( How To ). - photoshopsp - 2013-01-27

Many thanks fretzl, I had it enabled, my problem now is how to show the images horizontally ?




Latest Images on Gallery Index ( How To ). - fretzl - 2013-01-27

Try

printLatestImages(4,'',false,false,false,40,'',79,79,false,false,false);




Latest Images on Gallery Index ( How To ). - photoshopsp - 2013-01-27

Not working.

Could be my problem related with where I added the code ?.

I added it before -->

I can see like little dots before the images, maybe the format there is some kind of list, I don't know.

This is the link : http://photoshopsp.nixiweb.com




Latest Images on Gallery Index ( How To ). - fretzl - 2013-01-27

Ah, you mean show the images next to each other?

The output of the function is a div with a list.
You will have to use CSS to style the list to get rid of the dots and show the images next to each other.




Latest Images on Gallery Index ( How To ). - photoshopsp - 2013-01-27

Ok, I will look for the way to do it, maybe having a look to how it works on zpmobile theme.

Many thanks for your support.




Latest Images on Gallery Index ( How To ). - fretzl - 2013-01-27

It's not that difficult.
Start with putting this in style.css (in your theme folder)

`
div#latest ul {
list-style: none;
}

div#latest ul li {
display: inline;
}
`




Latest Images on Gallery Index ( How To ). - photoshopsp - 2013-01-27

Yiipppp.. It Works.

Many thanks again.

I added this:

latest {


margin: 0;
padding: 0;
}

latest img,


.image {
width: 79px;
height: 79px;
border: 1px solid gray;
margin: 5px 5px 0px 0px;
float: left;
}
div#latest ul {
display: inline;

}

div#latest ul li {
float: left;
list-style: none;

}




Latest Images on Gallery Index ( How To ). - photoshopsp - 2013-01-27

Better to add only the code you said. Adding the rest of my code the gallery images are not shown good.

Best Regards.