ZenphotoCMS Forum
zpArdoise - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: zpArdoise (/thread-11364.html)



zpArdoise - Bober - 2013-09-19

Hi All

Could you tell me how can I make 5 or more columns in this theme?

  1. I change Options->Theme->Albums->thumbnails per row No result;
  2. I change themeoptions.php setThemeOption('albums_per_row', '5', NULL, 'zpArdoise'); No result
  3. I change inc_print_album_thumb.php ; No result

Please help me Obi-Wan Kenobi!




zpArdoise - fretzl - 2013-09-21

This is an example for 4 columns and thumbnails with a width of 194px and a height of 100px.

In file inc_header.php
find
setOption('personnal_thumb_width', '267', false); setOption('personnal_thumb_height', '133', false);
change '267' to '194'
change '133' to '100'

#####################

In file inc_print_album_thumb.php
find
if ($x == 3) {$lastcol=' class="lastcol"'; $x = 0;}
change $x == 3 to $x == 4

#####################

In file css/screen.css
find
div#album-wrap ul li { width: 273px; ... ... }
change the width to 200px (= 194px + padding of 3px)




zpArdoise - vincent3569 - 2013-09-21

[quote]Please help me Obi-Wan Kenobi!

[/quote]
Edit inc_header.php, you should
All your answers, you will find
With fretzl's anwsers, close to your needs, you will be

thanks fretzl ;-)




zpArdoise - fretzl - 2013-09-21

You're welcome Master Yoda ;-)




zpArdoise - vincent3569 - 2013-09-21

I edit my previous post, but fretzl did the same.

for an album thumbnail's width of 200px, in screen.css, you should set :
div#album-wrap ul li { width: 206px; display: block; float: left; margin: 10px 12px 10px 0; padding: 0; list-style-type: none; background: none; }




zpArdoise - fretzl - 2013-09-21

Yeah, I forgot the padding ;-)




zpArdoise - Bober - 2013-10-01

Thanks for your answers. But it's not working... :( http://dekornia.bober71.pl/index.php?album=oferta/dekory/

The force isn't with me... :(




zpArdoise - fretzl - 2013-10-01

@vincent3569 and me had different solutions.
Apparently you mixed them.

div#album-wrap ul li { width: 206px; ... ... }
Try changing the width to 200px




zpArdoise - Bober - 2013-10-01

YOU MASTER! :D THX. When U come to Warsaw U have a beer!