Hi SA Anh,
the website is
www.dynamiccasemanagement.co.uk
the site is just a default installation with the default module installed from the smartaddons site. No modifications have been made so you should just need to repair the original module from your download.
You may find it difficult to navigate to the module directory on our site as we are using a joomla multi-sites plugin and this is just a test sub slave site we are playing with for now.
I have tried to attach the module to this post but for some reason it will not let me
our mod_carousel.php code is below
<?php
/**
* @package Sj Carousel
* @version 2.5
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (c) 2012 YouTech Company. All Rights Reserved.
* @author YouTech Company https://www.smartaddons.com
*
*/
defined('_JEXEC') or die;
// Include the helper functions only once
require_once __DIR__ . '/helper.php';
$input = JFactory::getApplication()->input;
// Prep for Normal or Dynamic Modes
$mode = $params->get('mode', 'normal');
$idbase = null;
switch($mode)
{
case 'dynamic':
$option = $input->get('option');
$view = $input->get('view');
if ($option === 'com_content') {
switch($view)
{
case 'category':
$idbase = $input->getInt('id');
break;
case 'categories':
$idbase = $input->getInt('id');
break;
case 'article':
if ($params->get('show_on_article_page', 1)) {
$idbase = $input->getInt('catid');
}
break;
}
}
break;
case 'normal':
default:
$idbase = $params->get('catid');
break;
}
$cacheid = md5(serialize(array ($idbase, $module->module)));
$cacheparams = new stdClass;
$cacheparams->cachemode = 'id';
$cacheparams->class = 'modCarouselHelper';
$cacheparams->method = 'getList';
$cacheparams->methodparams = $params;
$cacheparams->modeparams = $cacheid;
$list = JModuleHelper::moduleCache($module, $params, $cacheparams);
//var_dump($list); die("ancnc");
if (!empty($list)) {
$grouped = false;
$article_grouping = $params->get('article_grouping', 'none');
$article_grouping_direction = $params->get('article_grouping_direction', 'ksort');
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
$item_heading = $params->get('item_heading');
if ($article_grouping !== 'none') {
$grouped = true;
switch($article_grouping)
{
case 'year':
case 'month_year':
$list = modArticlesCategoryHelper::groupByDate($list, $article_grouping, $article_grouping_direction, $params->get('month_year_format', 'F Y'));
break;
case 'author':
case 'category_title':
$list = modArticlesCategoryHelper::groupBy($list, $article_grouping, $article_grouping_direction);
break;
default:
break;
}
}
require JModuleHelper::getLayoutPath('mod_carousel', $params->get('layout', 'default'));
}
Our default.php code is here
<?php
/**
* @package Sj Carousel
* @version 2.5
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (c) 2012 YouTech Company. All Rights Reserved.
* @author YouTech Company https://www.smartaddons.com
*
*/
defined('_JEXEC') or die;
if(!empty($list)){?>
<div id="yt_carousel" class="yt-carousel carousel slide"><!-- Carousel items -->
<div class="carousel-inner">
<?php $i=0; foreach($list as $item){$i++;?>
<div class="<?php if($i==1){echo "active";}?> item">
<img src="<?php echo modCarouselHelper::html_image($item->images, array('image_intro', 'image_fulltext'), false);?>" alt="<?php echo $item->title;?>" style="height:405px;" />
<div class="carousel-caption">
<h4><?php echo $item->title;?></h4>
<p><?php echo $item->displayIntrotext;?></p>
</div>
</div>
<?php }?>
</div><!-- Carousel nav -->
<a class="carousel-control left" href="#yt_carousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#yt_carousel" data-slide="next">›</a>
</div>
<?php }else{ echo JText::_('Has no content to show!');}?>
I really hope to hear from you soon , regards Nick