Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

How to limit thumbnails display to 3 and still view all in popup

  • cellardoor_ncx
  • cellardoor_ncx's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #41865 by cellardoor_ncx
Hello,
I have to make such a hack : limit display to 3 thumbnails in an article but when you click on image, you should still be able to view all of the elements from the gallery.

I attempted to change foreach in default.php, now it looks like :
<?php
thumb_index = 0;
$thumb_limit = 3;
foreach($gallery as $count=>$photo): 
if ($thumb_index < $thumb_limit): //display 3 containers
endif;
$thumb_index++; 
endforeach; ?>

it displays only 3 thumbnails but it also limits number of images in popups.

Please, provide me any tips on how to make such a hack.

Have a good day.

Please Log in or Create an account to join the conversation.

  • cellardoor_ncx
  • cellardoor_ncx's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #41866 by cellardoor_ncx
Ok I managed to do it with simple hacks :
in default.php :
line 20, replace if statement with : if($gal_singlethumbmode && $count>2)
lin 24, replace if statement with : if(($gal_singlethumbmode && $count<3) || !$gal_singlethumbmode)

You can close the topic.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum