You have a lot of things going on on your site.
Now you have this (remove the extra -->)
<!--eof-optional categories tabs navigation display-->-->
Did you turn on a new sidebox? Something (it seems like a sidebox) is stopping the site from finishing loading. Turn off sideboxes one by one until the site comes back.
To find what file this is in:
<!--// bof: search //-->
You can search for it in your admin, under "Tools", "Developers Tool Kit", use the bottom search box, and choose "Search Catalog".
Yes thats the problem i installed "click show hide category" mod and if i switch the sidebox on site goes like how u can see it now. I turned off all sideboxes except the mode sidebox, site still the same
Tried searching <!--// bof: search //--> using the developer kit before and again just now... the very last search box and selected catalog .. it cant find the file
Ok, I just downloaded the click show hide. The issue is it also uses a file named includes/classes/categories_ul_generator.php
Change the one for "click show hide" to categories_ul_generator2.php
Then in includes/modules/sideboxes/YOUR_TEMPLATE/categories_css.php, change categories_ul_generator.php to categories_ul_generator2.php
I think you'll have to change the name of the function inside categories_ul_generator1.php (add a 1 after every function - but I think you can skip buildBranch and buildTree?), like so:
class zen_categories_ul_generator1 {
var $root_category_id = 0,
$max_level = 0,
$data = array(),
$parent_group_start_string = '<ul%s>',
$parent_group_end_string = '</ul>',
$child_start_string = '<li%s>',
$child_end_string = '</li>',
$spacer_string = '
',
$spacer_multiplier = 1;
var $document_types_list = ' (3) ';
// acceptable format example: ' (3, 4, 9, 22, 18) '
function zen_categories_ul_generator1($load_from_database = true)
{
global $languages_id, $db;
$this->data = array();
$categories_query = "select c.categories_id, cd.categories_name, c.parent_id
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id = cd.categories_id
and c.categories_status=1 " .
" and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
" order by c.parent_id, c.sort_order, cd.categories_name";
$categories = $db->Execute($categories_query);
while (!$categories->EOF) {
$this->data[$categories->fields['parent_id']][$categories->fields['categories_id']] = array('name' => $categories->fields['categories_name'], 'count' => 0);
$categories->MoveNext();
}
}
function buildBranch($parent_id, $level, $submenu=true, $parent_link='')
{
$result = sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ($level+1) . '"' : '' );
if (($this->data[$parent_id])) {
foreach($this->data[$parent_id] as $category_id => $category) {
$category_link = $parent_link . $category_id;
if (($this->data[$category_id])) {
$result .= sprintf($this->child_start_string, ($submenu==true) ? ' class="submenu"' : '');
} else {
$result .= sprintf($this->child_start_string, '');
}
$result .= str_repeat($this->spacer_string, $this->spacer_multiplier * 1) . '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">';
$result .= $category['name'];
$result .= '</a>';
if (($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) {
$result .= $this->buildBranch($category_id, $level+1, $submenu, $category_link . '_');
}
$result .= $this->child_end_string;
}
}
$result .= $this->parent_group_end_string;
return $result;
}
function buildTree($submenu=false)
{
return $this->buildBranch($this->root_category_id, '', $submenu);
}
}
?>
no didnt work, made it worse i think. i havent corrected it so you can see the result.
Thanks for your help.
Last edited by Lectronix; 21 Apr 2009 at 11:24 PM.