an
groups-icon

Slider in listing

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Peppe Roni
    0 points
    Beginner

    Hi,

    I had a slider working inside every listing. The slider would show all images in the gallery of the post. The code got it from the forum and used to work perfectly until the latest upgrade. The code for the slider is the following:

    <div class=”imgScroller left”>
    <?php
    // IMAGE DISPLAY // V7 – with slider integration
    if(strlen(get_post_meta($post->ID,”images”, true)) > 1) {
    $srcimages = get_post_meta($post->ID,”images”, true);
    $galimages = explode(“,”, $srcimages);
    echo ‘<div id=”singleslider”>’;
    echo ‘<ul id=”singlesliderContent”>’;
    $num=0;
    foreach($galimages as $galimage)
    if ( $num <=4 ) {
    // check to see if the filename is long enough
    if ( strlen($galimage) > “3” ) {
    // check if url is included in image name
    if (strpos($galimage,”/themes/directorypress/thumbs/”) !== false) {
    $imgPath = “”;
    } else {
    $imgPath = get_bloginfo(‘template_directory’) .’/thumbs/’;
    }
    echo ‘<li class=”singlesliderImage”>’;
    echo ‘‘;
    echo ‘<div style=”display: none; visibility: none;”><span>’.$galimage.'</span></div>’;
    echo ”;
    $num++;
    }
    }
    echo ‘<div class=”clear singlesliderImage”></div>’;
    echo ”;
    echo ‘</div>’;
    } else {
    echo premiumpress_image($post->ID,””,array(‘alt’ => $post->post_title, ‘link’ => ‘self’, ‘link_class’ => ‘lightbox’, ‘width’ => ‘364’, ‘height’ => ‘414’, ‘style’ => ‘max-width:364px; max-height:414px;’ ));
    }
    // end of Image Slider integration
    ?>
    </div>

    and then in css there is also some code:

    #singleslider {height:414px; overflow:hidden; position:relative;width:364px;background:#fff;margin-bottom:5px;}
    #singlesliderContent {margin-left:0;position:absolute;top:0;width:364px;height:414px;}
    .singlesliderImage {display:none;text-align: center;position:relative;height:414px;}

    After the upgrade, the slider is blank. I know there has been many problems with sliders and the new version, so I uploaded the fix, but this is still happening.

    Any idea why the slider would not work as before? Is there any other way to do it?

    Many thanks. [code title=””][/code]

    September 16, 2013 at 5:56 pm
  • Peppe Roni
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 16, 2013 at 6:03 pm
  • Peppe Roni
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 17, 2013 at 11:53 am
  • Richard Bonk
    -1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 17, 2013 at 1:13 pm
  • Peppe Roni
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 17, 2013 at 1:50 pm
  • Richard Bonk
    -1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 17, 2013 at 3:51 pm
  • 0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    October 9, 2013 at 4:12 pm

509

Views

6

Replies