09-21-2010
|
#2
|
Join Date: Mar 2009
Posts: 47
|
finally got the reply from the support...
Quote:
1. Open includes\classes\DirCategory.php file
In getAllByParent function
Find this code:
PHP Code:
if($aSubcategories > 0)
{
foreach ($categories as $key => $value)
{
if (!$value['crossed'])
{
if ($i > 0)
{
$sql .= 'UNION ALL ';
}
$sql .= "(SELECT `id_parent`,`id`,`title`, `path` ";
$sql .= "FROM `".$this->mTable."`";
$sql .= "WHERE `id_parent` = ".$value['id'];
$sql .= " AND `status` = 'active' ";
$sql .= "ORDER BY `title` ASC ";
$sql .= "LIMIT ".$aSubcategories.") ";
}
$i++;
}
}
Replace with:
PHP Code:
if($aSubcategories > 0)
{
foreach ($categories as $key => $value)
{
if (!$value['crossed'])
{
if ($i > 0)
{
$sql .= 'UNION ALL ';
}
$sql .= "(SELECT `id_parent`,`id`,`title`, `path`,`description` ";
$sql .= "FROM `".$this->mTable."`";
$sql .= "WHERE `id_parent` = ".$value['id'];
$sql .= " AND `status` = 'active' ";
$sql .= "ORDER BY `title` ASC ";
$sql .= "LIMIT ".$aSubcategories.") ";
}
$i++;
}
}
2. Open templates/your_template/Layout.php file
Find this code:
PHP Code:
$subcats .= "<a href=\"".$base.$url2."\" id=\"c{$value2['id']}\"{$nofollow2}>{$value2['title']}</a>{$divid}";
Replace with:
PHP Code:
$value2['description'] = strip_tags($value2['description'], '');
$subcats .= "<a href=\"".$base.$url2."\" title=\"{$value2['description']}\" id=\"c{$value2['id']}\"{$nofollow2}>{$value2['title']}</a>{$divid}";
|
|
|
|