Browsing in Lightbox continues to another Gallery

  • urosm
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 5 months ago - 12 years 5 months ago #12087 by urosm
Hi

This is changed code - just to be sure
Code:
$UniqueNo = rand(); // dodano echo '<script type="text/javascript" src="'.JURI :: base().'plugins/content/photogallery/js/jquery.lightbox-0.5.min.js"></script>'; ?> <script type="text/javascript"> jQuery(function() { if(jQuery('.hjtpgal<?php echo $UniqueNo;?> a')) // zamenjano jQuery('#gallery a').lightBox(); }); </script> <?php $output = '<!-- HOT Photo Gallery Plugin starts here -->'; $output.= '<div id="gallery">';

No change, lightbox continue to prev/next gallery when navigating with mouse, but some strange behavior when navigating with left/right cursor keys - jumps to first/last picture in prev/next gallery.

Please try yourself on my site, it's hard to explain in short, you'll see what I mean.
Last edit: 12 years 5 months ago by urosm.

Please Log in to join the conversation.

More
12 years 5 months ago #12095 by ivan.milic
forgot this:

change:

jQuery('#gallery a').lightBox();

to:

jQuery('.hjtpgal<?php echo $UniqueNo;?> a').lightBox();

Please Log in to join the conversation.

  • urosm
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 5 months ago #12105 by urosm
With tahis change it only display enlarged picture, in the same browser tab (no Lightbox pop-up), with no navigation controls, nor with mouse nor with arrow keys.

Please Log in to join the conversation.

More
12 years 5 months ago #12109 by ivan.milic
I just saw now , you did not do this as I told you:

$output.= '<div id="gallery">';

should be:

$output.= '<div id="gallery" class="photogallery_plg '.'hjtpgal'.$UniqueNo.'" >';
The following user(s) said Thank You: urosm

Please Log in to join the conversation.

  • urosm
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 5 months ago #12110 by urosm
Thanks, works great now.

I'm on my way learning HTML, CSS and PHP. Should become less problematic customer soon, I hope.

Please Log in to join the conversation.

More
12 years 4 months ago - 12 years 4 months ago #12740 by thespoon
Hi Ivan,
I read the topic but my file is a little bit different.
it is not in
plugins\content\photogallery\photogallery.php
but in
plugins\content\photogallery.php

and also the code is different
Code:
echo '<script type="text/javascript" src="'.JURI :: base().'plugins/content/plugin_photogallery/js/jquery.lightbox-0.5.min.js"></script>'; ?> <script type="text/javascript"> jQuery(function() { jQuery('#gallery a').lightBox(); }); </script> <?php $html = '<!-- HOT Photo Gallery Plugin starts here -->'; $html.= '<div id="gallery">';

If I modify how it's indicated the plugin doesn't work anymore and the images are opened in a white window.
Last edit: 12 years 4 months ago by thespoon.

Please Log in to join the conversation.

Time to create page: 0.417 seconds
Powered by Kunena Forum