Member
Member
photoshopsp   27-01-2013, 15:37
#1

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.

Administrator
Administrator
fretzl   27-01-2013, 15:55
#2

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

Member
Member
photoshopsp   27-01-2013, 15:56
#3

Many thanks.

Member
Member
photoshopsp   27-01-2013, 16:09
#4

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

This is the code I added:

Administrator
Administrator
fretzl   27-01-2013, 16:10
#5

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

Member
Member
photoshopsp   27-01-2013, 16:15
#6

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

Administrator
Administrator
fretzl   27-01-2013, 16:25
#7

Try

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

Member
Member
photoshopsp   27-01-2013, 16:32
#8

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

Administrator
Administrator
fretzl   27-01-2013, 16:42
#9

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.

Member
Member
photoshopsp   27-01-2013, 16:46
#10

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.

Administrator
Administrator
fretzl   27-01-2013, 16:50
#11

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;
}
`

Member
Member
photoshopsp   27-01-2013, 16:55
#12

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;

}

Member
Member
photoshopsp   27-01-2013, 17:22
#13

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

Best Regards.

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