Browsing in Lightbox continues to another Gallery

  • urosm
    Inactive member
  • Topic Author
  • Member
  • Member
More
13 years 1 month ago #12037 by urosm
When using two or more Galleries in one article, browsing pictures in Lightbox (or whatever you call that pop-up window with big picture) continues from one gallery to another. Could be annoying from time to time, depending on the content of gallery.

Is there any way to prevent this? To disable prev/next function when on the beginning/end of the particualr PhotoGallery.

Thanks.

Please Log in to join the conversation.

More
13 years 1 month ago #12047 by ivan.milic
Try to wrap plugin calls with divs.

Please Log in to join the conversation.

  • urosm
    Inactive member
  • Topic Author
  • Member
  • Member
More
13 years 1 month ago #12050 by urosm
If you think something like this

<div>
<p>{photogallery}images/fotoknjige/porocni{/photogallery}</p>
</div>

or this

<div>{photogallery}images/fotoknjige/druzinski{/photogallery}</div>

don't work.

Please Log in to join the conversation.

More
13 years 1 month ago #12053 by ivan.milic
Can we see your link?

Please Log in to join the conversation.

  • urosm
    Inactive member
  • Topic Author
  • Member
  • Member
More
13 years 1 month ago #12066 by urosm
Sorry for delay, was away whole day.


Here's the link www.fotomlakar.si/index.php/porocni-album


When looking my site, please take a look at the top in Newsflash module also - links not working, diplaying some "#fragment-1# at the end of the link. Or should I start new post in Newsflash thread about this?


Thanks in advance.

Please Log in to join the conversation.

More
13 years 1 month ago #12077 by ivan.milic
Try this :

Find this file plugins\content\photogallery\photogallery.php

Bekap if first then find this code around line 167:
Code:
echo '<script type="text/javascript" src="'.JURI :: base().'plugins/content/photogallery/js/jquery.lightbox-0.5.min.js"></script>'; ?> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery(function() { if(jQuery('.photogallery_plg a')) jQuery('.photogallery_plg a').lightBox(); }); }); </script> <?php } $output = '<!-- HOT Photo Gallery Plugin starts here -->'; $output.= '<div id="gallery" class="photogallery_plg">';


change it to:
Code:
$UniqueNo = rand(); echo '<script type="text/javascript" src="'.JURI :: base().'plugins/content/photogallery/js/jquery.lightbox-0.5.min.js"></script>'; ?> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery(function() { if(jQuery('.hjtpgal<?php echo $UniqueNo;?> a')) jQuery('.photogallery_plg a').lightBox(); }); }); </script> <?php } $output = '<!-- HOT Photo Gallery Plugin starts here -->'; $output.= '<div id="gallery" class="photogallery_plg '.'hjtpgal'.$UniqueNo.'" >';

Please Log in to join the conversation.

Time to create page: 0.147 seconds
Powered by Kunena Forum