-
AuthorPosts
-
Sherlock Friend
Sherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
April 1, 2010 at 3:42 am #150032When you select display images “From Image Folder”,by default ja slideshow2 module would not display description on navigation,in this case please take two follow steps:
Step 1) Open modules/mod_jaslideshow2/tmpl/deafult.php find this section of codes:
<div class=”ja-slide-thumbs”>
<?php for ($i=0;$i<count($images); $i++) {?>
<div class=”ja-slide-thumb”>
<?php if ($navigation==’thumbs’){?><img src=”<?php echo $thumbArray[$i]?>” alt=”Photo Thumb” />
<?php }else{?><span><?php echo ($i+1);?></span><?php } ?>
</div>
<?php }?>
</div>And replace it by this codes:
<div class=”ja-slide-thumbs”>
<?php for ($i=0;$i<count($images); $i++) {?>
<div class=”ja-slide-thumb”>
<?php if ($navigation==’thumbs’){?><div class=”ja-slide-thumb-inner”>
<img align=”left” src=”<?php echo $thumbArray[$i]?>” alt=”Photo Thumb” /><?php echo $helper->trimString( $captionsArray[$i], $navDescmaxlength ); ?>
</div>
<?php }else{?><span><?php echo ($i+1);?></span><?php } ?>
</div>
<?php }?>
</div>Step 2) Open modules/mod_jaslideshow2/mod_jaslideshow2.php
Find this code :
[PHP]
itemWidth: <?php echo $thumbWidth+$thumbSpaces[0]; ?>,
itemHeight: <?php echo $thumbHeight+$thumbSpaces[1]; ?>,
[/PHP]Change to
[PHP]
itemWidth: <?php echo $navWidth; ?>,
itemHeight: <?php echo $navHeight; ?>,
[/PHP]Then find this codes :
<script type=”text/javascript”>
window.addEvent(‘load’, function(){
new JASlideshow2(‘ja-slide-<?php echo $module->id;?>’, {
startItem: <?php echo $startItem; ?>,
showItem: <?php echo $showItem; ?>,
itemWidth: <?php echo $navWidth; ?>,
itemHeight: <?php echo $navHeight; ?>,
mainWidth: <?php echo $mainWidth; ?>,
mainHeight: <?php echo $mainHeight; ?>,
maskWidth: <?php echo $maskWidth; ?>,
maskHeigth:<?php echo $maskHeigth; ?>,
duration: <?php echo $duration; ?>,
transition: <?php echo $effect; ?>,
animation: ‘<?php echo $animation; ?>’,
animationRepeat: ‘<?php echo $animationRepeat; ?>’,
thumbOpacity:<?php echo $thumbOpacity; ?>,
maskOpacity: <?php echo $descOpacity; ?>,
buttonOpacity: <?php echo $overlapOpacity; ?>,
showDesc: ‘<?php echo $showDescription; ?>’,
descMode: ‘<?php echo $showdescwhen; ?>’,
readmoretext: ‘<?php echo $readmoretext; ?>’,
overlap: <?php echo $container; ?>,
navigation:'<?php echo $navigation; ?>’,
urls:[‘<?php echo implode(”,”, $urls); ?>’],
targets:[‘<?php echo implode(”,”, $targets); ?>’],
autoPlay: <?php echo $autoplay; ?>,
interval: <?php echo $interval; ?>,
maskAlignment:'<?php echo $maskAlignment; ?>’,
maskerTransStyle:'<?php echo $params->get(‘masker-transition-style’, ‘opacity’); ?>’,
maskerTrans:<?php echo $params->get(‘marker-transition’, ‘Fx.Transitions.linear’); ?>,
navePos:'<?php echo $navAlignment; ?>’
});
});</script>
Change to :
<script type=”text/javascript”>
window.addEvent(‘load’, function(){
new JASlideshow2(‘ja-slide-<?php echo $module->id;?>’, {
startItem: <?php echo $startItem; ?>,
showItem: <?php echo $showItem; ?>,
itemWidth: <?php echo $navWidth; ?>,
itemHeight: <?php echo $navHeight; ?>,
mainWidth: <?php echo $mainWidth; ?>,
mainHeight: <?php echo $mainHeight; ?>,
maskWidth: <?php echo $maskWidth; ?>,
maskHeigth:<?php echo $maskHeigth; ?>,
duration: <?php echo $duration; ?>,
transition: <?php echo $effect; ?>,
animation: ‘<?php echo $animation; ?>’,
animationRepeat: ‘<?php echo $animationRepeat; ?>’,
thumbOpacity:<?php echo $thumbOpacity; ?>,
maskOpacity: <?php echo $descOpacity; ?>,
buttonOpacity: <?php echo $overlapOpacity; ?>,
showDesc: ‘<?php echo $showDescription; ?>’,
descMode: ‘<?php echo $showdescwhen; ?>’,
readmoretext: ‘<?php echo $readmoretext; ?>’,
overlap: <?php echo $container; ?>,
navigation:'<?php echo $navigation; ?>’,
urls:[‘<?php echo implode(”,”, $urls); ?>’],
targets:[‘<?php echo implode(”,”, $targets); ?>’],
autoPlay: <?php echo $autoplay; ?>,
interval: <?php echo $interval; ?>,
maskAlignment:'<?php echo $maskAlignment; ?>’,
maskerTransStyle:'<?php echo $params->get(‘masker-transition-style’, ‘opacity’); ?>’,
maskerTrans:<?php echo $params->get(‘marker-transition’, ‘Fx.Transitions.linear’); ?>,
navePos:'<?php echo $navAlignment; ?>’
});
});
/* fix navigator on ie 6,7*/
$E(‘#ja-slide-<?php echo $module->id;?> .ja-slide-thumbs-handles’).setStyles( {‘opacity’:’0.001′, ‘background’:’#FFF’} );
</script>Also please add description for each item like this :
<h3>title</h3>your description
I hope this would help someone !
4 users say Thank You to Sherlock for this useful post
April 18, 2010 at 4:17 pm #340699Thank you very much… This proved to be very helpful indeed 🙂
May 30, 2010 at 8:25 pm #345307indeed. this solved my problem. thanks
August 1, 2010 at 3:55 pm #351388HELP
This thread works perfectly except for one problem. I have an image folder with the main image and the thumbnail version. When using image only mode, the navigation links and the main show window show the images with descriptions correctly but they also show then thumbnails without descriptions in the nav and the same in the main window. How do I stop this?
August 6, 2010 at 3:43 pm #351885CAn anyone help – like the JA Slideshow but it is showing the large version of the image and the thumbnail of the image. SO instead of showing 3 main images in the larger area of the slideshow, it is showing 6 images, 3 large and the three thumbnail versions. But only when source “From Image Folder”. Really need this to work as its a workaround to use K2 articles.
Help.
August 6, 2010 at 3:44 pm #351886CAn anyone help – like the JA Slideshow but it is showing the large version of the image and the thumbnail of the image. SO instead of showing 3 main images in the larger area of the slideshow, it is showing 6 images, 3 large and the three thumbnail versions. But only when source “From Image Folder”. Really need this to work as its a workaround to use K2 articles.
Help.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 7, 2010 at 1:38 am #351903Dear huski,
I would like to have a closer look at this issue so If possible you can submit a ticket then I will have a further checking on it.
August 24, 2010 at 7:02 pm #353559Hello,
I am also using “Images from folder” since it is very practical. Anyway, I would like to know how to modify the code so I can exclude displaying overlay and simply link big image to certain URL via link given out within code.
Please advice.
Tom
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 26, 2010 at 3:38 am #353704<em>@enigmatix 191472 wrote:</em><blockquote>Hello,
I am also using “Images from folder” since it is very practical. Anyway, I would like to know how to modify the code so I can exclude displaying overlay and simply link big image to certain URL via link given out within code.
Please advice.
Tom</blockquote>
Hello enigmatix,
You can try as follows for this issue
Go to the modulesmod_jaslideshow2assetsscript.js file,Look for this snap codes
if (this.options.urls) {
this.maskDesc.addEvent(‘click’, function () {
// URL
var url = this.options.urls;
if (url) {
var target = this.options.targets;
switch(target){
case “_blank”:{
window.open(url, “newWindow”);
break;
}
default:{
window.location.href = url;
break;
}
}
}
// Target of URL}.bind(this));
}
And replace to this
if (this.options.urls) {
this.els.each(function(ec,k){
ec.setStyle(‘cursor’,”pointer”);
ec.addEvent(‘click’,function(){var url = this.options.urls[k];
if (url) {var target = this.options.targets[k];
switch(target){
case “_blank”:{
window.open(url, “newWindow”);
break;
}
default:{
window.location.href = url;
break;
}
}
}
}.bind(this));}.bind(this));
this.maskDesc.addEvent(‘click’, function () {
// URL
var url = this.options.urls;
if (url) {
var target = this.options.targets;
switch(target){
case “_blank”:{
window.open(url, “newWindow”);
break;
}
default:{
window.location.href = url;
break;
}
}
}
// Target of URL}.bind(this));
}I hope it helps !
1 user says Thank You to Sherlock for this useful post
August 4, 2012 at 7:25 pm #463182SH,
This solution does not work in the newer version of slide show module in joomla 2.5.
Do you have a solution for this?
Vinod
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 6, 2012 at 3:14 am #463274<em>@taus 333045 wrote:</em><blockquote>SH,
This solution does not work in the newer version of slide show module in joomla 2.5.
Do you have a solution for this?
Vinod</blockquote>
Hi taus,
Could you please explain me exactly your wish for the module and what’s your template ?
August 6, 2012 at 11:45 am #463354Hi SH,
Well i am trying to do the same thing as what you’ve done here. That is to show description and title next to the thumbnail in navigation. But i assume this solution was made for joomla 1.5 and a older version of slide show module. So this does not work on the newer version of joomla (joomla 2.5) and slide show module.
I am using the ja_rave template on joomla 2.5 with slide show 2.5.4. The slideshow profile is rasite.
Vinod
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 7, 2012 at 2:34 am #463402Hi taus,
I think you can open the file of modulesmod_jaslideshowmod_jaslideshow.php look for this
[PHP]
<div class=”ja-slide-thumbs”>
<?php for ($i=0;$i<count($images); $i++) {?>
<div class=”ja-slide-thumb”>
<?php if ($navShowthumb == 1){
?><img src=”<?php echo $thumbArray[$i]?>” alt=”Photo Thumb” />
<?php
}?>
</div>
<?php }?>
</div>[/PHP]
Change it to
[PHP]
<div class=”ja-slide-thumbs”>
<?php for ($i=0;$i<count($images); $i++) {?>
<div class=”ja-slide-thumb”>
<?php if ($navigation==’thumbs’){?><div class=”ja-slide-thumb-inner”>
<img align=”left” src=”<?php echo $thumbArray[$i]?>” alt=”Photo Thumb” /><?php echo $helper->trimString( $captionsArray[$i], $navDescmaxlength ); ?>
</div>
<?php }else{?><span><?php echo ($i+1);?></span><?php } ?>
</div>
<?php }?>
</div>[/PHP]
1 user says Thank You to Sherlock for this useful post
-
AuthorPosts
This topic contains 13 replies, has 6 voices, and was last updated by Sherlock 12 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum