- Posts: 32
- Thank you received: 0
Browsing in Lightbox continues to another Gallery
-
urosm
Inactive member - Topic Author
- Member
Less
More
13 years 1 month ago #12037
by urosm
Browsing in Lightbox continues to another Gallery was created 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.
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 month ago #12047
by ivan.milic
Replied by ivan.milic on topic Re: Browsing in Lightbox continues to another Gallery
Try to wrap plugin calls with divs.
Please Log in to join the conversation.
-
urosm
Inactive member - Topic Author
- Member
Less
More
- Posts: 32
- Thank you received: 0
13 years 1 month ago #12050
by urosm
Replied by urosm on topic Re: Browsing in Lightbox continues to another Gallery
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.
<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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 month ago #12053
by ivan.milic
Replied by ivan.milic on topic Re: Browsing in Lightbox continues to another Gallery
Can we see your link?
Please Log in to join the conversation.
-
urosm
Inactive member - Topic Author
- Member
Less
More
- Posts: 32
- Thank you received: 0
13 years 1 month ago #12066
by urosm
Replied by urosm on topic Re: Browsing in Lightbox continues to another Gallery
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.
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 month ago #12077
by ivan.milic
Replied by ivan.milic on topic Re: Browsing in Lightbox continues to another Gallery
Try this :
Find this file plugins\content\photogallery\photogallery.php
Bekap if first then find this code around line 167:
change it to:
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