![]() |
|
how to get a "top rated" block with 5x3 images dimension - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: how to get a "top rated" block with 5x3 images dimension (/thread-6566.html) |
how to get a "top rated" block with 5x3 images dimension - esplinter - 2010-02-06 Hi, I am using zenphoto 1.2.8 with zpFocus theme and I am trying to show a "top rated images" in the left sidebar. I have managed to show 5 top rated images by adding this code to the sidebar.php file: `` The problem is that I would like to show a 5filesx3colums images table but I can only get 1x5 dimension. When I show top 15 rated images (first parameter in the function) I get a 15 images with 15x1 dimension. I couldn´t manage to get more than one colum. I am really poor php programer so maybe I am not seeing something obvious. ¿can anyone help me about wich functions should I use or pointing me to an example code doing something similar? many thanks in advance for any help. how to get a "top rated" block with 5x3 images dimension - gjr - 2010-02-06 This is a matter of css, not the php function. Seems like you have what you want, you just need to style it now with css. I could help if you provide a link, otherwise it is just guessing...(try floating the images....) how to get a "top rated" block with 5x3 images dimension - esplinter - 2010-02-06 hi gjr, many thanks for your help. Finally I got what I want in a "dirty" way. I have seen printTopRatedImages function calls printImageStatistic function so I copied this function to "printImageStatistic2" in order to keep original function without modification and changed it to this:
many thanks again. how to get a "top rated" block with 5x3 images dimension - acrylian - 2010-02-06 Probably that should also be possible with the original function by using a wrapper |