HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Gallery Problem

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#37976 (In Topic #8545)
Avatar

Fan in action

 In my gallery the images goes from 1 per row to 2 per row. See Attachment. Or check out out HERE.

290 views (88 Kb)
Back to the top
 
Posted
Rating:
#37977
Avatar

Community saint

Maybe your fixed-widht template give problems…
That is: your thumbnail have 200 pixel width, and template say: 3 thumbail per row..

So, you don't have enought pixel width to show 3 thumbnail per row.

You can:
go in admin zone > click on SetUp > Configuration > Features Options > Images; Thumbnails Width and set to 160 pixel (or, lower..)
then, admin zone > tools > Cleaning instruments > and chick "Thumbnail Images" to let OcPortal redo the thumbnail to the news width.

Let me know if this solve your problems!
Back to the top
 
Posted
Rating:
#37978
Avatar

Fan in action

Is there a way to show 2 pics per row. This is my first site built with ocPortal, so sorry if it is a dumb question. Thanks!
Back to the top
 
Posted
Rating:
#37979
Avatar

Community saint

Modify site/pages/modules/galleries.php

Line 505-506

Code

      $row_length=intval(get_value('thumbs_per_row')); // Change this according to how many images are wanted in a row
      if ($row_length<=0) $row_length=3;

to

Code

      $row_length=intval(get_value('thumbs_per_row')); // Change this according to how many images are wanted in a row
      if ($row_length<=0) $row_length=2;

ps: save your new galleries.php files to site/pages/modules_custom directory, so you don't overwrite original files!  :thumbs:
Back to the top
 
Posted
Rating:
#37980
Avatar

Fan in action

Thanks! It worked. You ROCK!! :rockon:
Back to the top
 
Posted
Rating:
#37981
Avatar

Well-settled

For some space between the thumbnail look for a solution this threat :)

ocPortal - View topic: How many of you would like this in the gallery?
Back to the top
 
Posted
Rating:
#37989
Avatar

Community saint

RogueDOC said

 Thanks! It worked. You ROCK!! :rockon:

I'm happy it worked fine!

After nearly 2 years working with OcPortal, I'm happy to help new member!

Bye
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: