Mod Slideshow

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
abhimithun4u
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Oct 25, 2010 7:29 am

Mod Slideshow

Postby abhimithun4u » Tue Apr 05, 2011 6:17 am

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>
You do not have the required permissions to view the files attached to this post.

Return to “Extensions for Joomla! 1.5”

Who is online

Users browsing this forum: No registered users and 7 guests