1. marvin
  2. Commercial Templates
  3. Thursday, 25 August 2016
  4.  Subscribe via email
Hello

I configure several thumbs gallery. put them in different modules. When i click the last picture then the next, i go to the next thumbsgallery.

regards
Accepted Answer Pending Moderation
0
Votes
Undo
additional:
Every thumbsgally looks fine. When i klick next (right arrow) in the last picture. I switch to an other thumbs gallery. The are connect with each other.

regards
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Marvin

To resolve try replacing the contents of your thumbgallerys default.php (../modules/mod_j51thumbsgallery/tmpl/default.php) with the following...


<?php
/**
* @title J51 Thumbs Gallery
* @version 1.0
* @website http://www.joomla51.com
* @copyright Copyright (C) 2012 Joomla51.com. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$document = JFactory::getDocument();
$baseurl = JURI::base();
$fade_opacity = $params->get('fade_opacity');
$bordersize = $params->get('bordersize');
$bordercolor = $params->get('bordercolor');
$outlinecolor = $params->get('outlinecolor');
$width = $params->get('thumbwidth');
$height = $params->get('thumbheight');
$margin = $params->get('margin');
$show_jquery = $params->get('show_jquery');
$document->addCustomTag("<script src='".$baseurl."modules/mod_j51thumbsgallery/js/jquery.noconflict.js' type='text/javascript'></script>");
$document->addCustomTag("<script src='".$baseurl."modules/mod_j51thumbsgallery/js/script.js' type='text/javascript'></script>");
$document->addCustomTag("<script src='".$baseurl."modules/mod_j51thumbsgallery/js/jquery.fancybox.js' type='text/javascript'></script>");
$document->addStyleSheet('modules/mod_j51thumbsgallery/css/thumbs_style.css');
$list = GalleryHelper::getimgList($params);
$j51_moduleid = $module->id
?>
<div class="j51thumbs<?php echo $j51_moduleid; ?>" style="margin-left:-<?php echo $margin;?>px;">
<div class="j51thumbs">
<div class="gallery">
<?php foreach($list as $item) { ?>
<a class="j51Box fancybox<?php echo $j51_moduleid; ?>" style="margin:<?php echo $margin;?>px;" data-fancybox-group="gallery" href="/<?php echo $item['image'] ?>">
<img src="/<?php echo $item['thumb'] ?>"
style="padding:<?php echo $bordersize;?>px;
background-color:<?php echo $bordercolor;?>;
border:1px solid <?php echo $outlinecolor;?>;"
alt="<?php echo $item['image'] ?>" />
<i style="left: <?php echo ($bordersize + 1);?>px;
top: <?php echo ($bordersize + 1);?>px;
height: <?php echo $height;?>px;
width: <?php echo $width;?>px;"></i></a>
<?php } ?>
</div></div></div>
<div class="clear"></div>
<script type="text/javascript">
(function($) {"use strict";
$(document).ready(function() {
$('.fancybox<?php echo $j51_moduleid; ?>').fancybox();
});
})(jQuery);
</script>


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán

Great job! I can reproduce it. With the new file ist works. Copy back the old file and the issue came back.

Thanks a lot.

regards
  1. more than a month ago
  2. Commercial Templates
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok