RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 22, 2008, 02:03:34 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  slideshow function
Advanced search
  « previous next »
Pages 1
Author
Topic: slideshow function  (Read 1472 times)
« on: April 22, 2008, 05:33:01 am »
luciffere Offline
Newbie
*
Posts: 4

View Profile Email

Hello. I have rsgallery the latest installed and the semantic theme default. In back end i have the show slideshow option enabled with slideshow_parth.
The problem is in firefox. When i select a category from gallery, and i use slideshow button, i see the lightbox effect, but not images (the background page is ok -black, the background image is ok white, the button clos, next is ok) but image not.
In ie7 all are ok.

I think, the code who make the slide efect with lightbox is in /com_rsgallery2/templates/semantic/display.class.php with the code:

//Check if items need to be shown
      if ( ($slideshow + $owner + $size + $date) > 0 ) {
         ?>
         <div class="rsg_gallery_details">
         <div class="rsg2_details">
         <?php
         if ($slideshow) {
            ?>
            <a href="#" onclick="slideshow_<?php echo $kid->get('id'); ?>();return false;"><?php echo _RSGALLERY_SLIDESHOW; ?></a><br />
            <script type="text/javascript">
            function slideshow_<?php echo $kid->get('id'); ?>(){
               var images = [];
               <?php
               foreach( $kid->items() as $item ):
                  if( $item->type != 'image' )
                     continue;  // we only handle images
                  $display = $item->display();
               ?>
               images.push(["<?php echo $display->url(); ?>", "<?php echo htmlspecialchars(stripslashes($item->descr), ENT_QUOTES); ?>"]);
               <?php endforeach; ?>
               Lightbox.open(images, 0);
            }
            </script>
Please help me with this.
Logged
 
Print  Pages 1
« previous next »
Jump to: