Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2017-02-17 16:52:16

DuttyRock
Member
Registered: 2011-11-05
Posts: 740

Photo Slideshow

I added the photo slideshow button to the "photo_view.tpl.php" but when i click it nothing happens.... How can i make it clickable.

I want this because if someone looking at pictures and want to switch to slideshow they can do it at anytime.

Offline

#2 2017-02-20 14:32:54

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Photo Slideshow

This feature is only available on the photo album page. If you want to add this to the photo view page, you need to copy the exact code for the slideshow button and the javascript code.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2017-02-20 17:00:24

DuttyRock
Member
Registered: 2011-11-05
Posts: 740

Re: Photo Slideshow

I tired that.. i copied these but the slide didn't work.

<script type="text/javascript">
    $(document).ready(function() {
        $("button[id='share']").click(function(e) {
            $("#share-container").slideToggle();
        });
       
        $("button[id='slideshow']").click(function(e) {
            $.get(base_url + '/ajax.php?s=photo_album_slideshow&id=<?php echo $this->album['album_id']; ?>', function(response) {
                  $("#slider-container").html(response);
                  $("#slider-container").show();
                  $("#slideshow-modal").modal();
                 
                $(".carousel").carousel({interval: 2000});
              });
        });
    });
    </script>
    <div id="slider-container" style="display:none;"></div>
    <div id="album" class="row">

and

<div class="btn-group">
                            <button id="slideshow" class="btn btn-default btn-mb" data-toggle="tooltip" data-placement="top" title="<?= __('slideshow-help'); ?>"><i class="fa fa-slideshare"></i> <?php echo __('slideshow'); ?></button>
                        </div>

Offline

#4 2017-02-21 15:37:41

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Photo Slideshow

What error do you get when calling ajax? You can see this with firebug.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB