Page 1 of 1

Mod Slideshow

Posted: Tue Apr 05, 2011 6:17 am
by abhimithun4u
Hi i am using The slide show module in my joomla site.the problem is that there is a option to provide and display titles in the admin pannel. now the title given is shown as image alt title. i want to show the title below each image. i however abled to disply the title by the side of the each individual image. but when evr i tried to display that title below an image everything gets messed up.
i am new to joomla and really need ur assistance to solve this problem. i will be greatfull if u kindly help me to cope with this problem

Thanking You
Abhishek
slideshow module.JPG
i am also providing the following code for it below


<div style="margin-top:-20px;">
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');

// Loading images, urls, and titles
$image = explode ( "\n", trim ($params->get( 'images' ) ) );
$url = explode ( "\n", trim ($params->get( 'urls' ) ) );
$title = explode ( "\n", trim ($params->get( 'titles' ) ) );
// If adding "http" automatically is YES
$addhttp = trim($params->get( 'addhttp' ));

if ($addhttp) {
for ( $i=0 ; $i < count($image) ; $i++ ) {
$url[$i]="http://".$url[$i];

}
}

// Spaces ( Characters )
$space=trim($params->get( 'space' ));
$spacetext = "&nbsp;";

if ($i >= 1) {
for( $i=1 ; $i<$space ; $i++ ) {
$spacetext .= "&nbsp;";
}
}
else
$spacetext .= "";
?>

<!-- JAVASCRIPT - INITIALS -->
<script language="JavaScript1.2">
var leftrightslide = new Array()
var title = new Array();
var finalslide = ''
var slidesspace = parseInt ('<?php echo trim ( $params->get ( "slidesspace" ) ); ?>')
var sliderwidth = "<?php echo trim ( $params->get ( 'width' ) ); ?>px"
var sliderheight = "<?php echo trim ( $params->get ( 'height' ) ); ?>px"
var slidebgcolor = "<?php echo trim ( $params->get ( 'bgcolor' ) ); ?>"
var stopslide = "<?php echo trim ( $params->get ( 'stopslide' ) ); ?>"
var imagegap = "<?php echo $spacetext; ?>"
var slidespeed = <?php echo trim ( $params->get ( 'speed' ) ); ?>
<?php

for ( $i=0 ; $i < count($image) ; $i++ ) {
$alt = $title[$i] ? ' alt="'. $title[$i] .'"' : '';
$alttitle = $title[$i] ? ' title="'. $title[$i] .'"' : '';
$templink = $link . '<img style=" width:65px; height:50px;" src="'.JURI::root() . trim ( $params->get ( 'folder' ) ) . "/" . $image[$i] . '" border="2" ' . $alttitle .">"; ?>


title[<?php echo $i; ?>] = '<?php echo $title[$i];?>'
leftrightslide[<?php echo $i; ?>]='<?php echo $templink .'&nbsp;'; echo $title[$i];?>' /* HERE THE TITLE GETS DISPLAYED BY THE SIDE OF PIC */
slideshow module.JPG

<?php } ?>

</script>

<!-- JAVASCRIPT -->
<script src = "<?php echo JURI::root(); ?>modules/mod_slideshow/scripts/hscript.js" language="JavaScript1.2"></script>
</div>