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>
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?
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]
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now