The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Mod Slideshow
PostPosted: Tue Apr 05, 2011 6:17 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Oct 25, 2010 7:29 am
Posts: 6
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
Attachment:
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 */
Attachment:
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 



Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group