I don't have use for the news section where "No news is good news." is displayed.  Where can I remove this?
Thanks
			
			
									
						
										
						Removing NEWS
Moderator: Thorsten
Hi,
you can remove it in template/main.tpl.
bye
Thorsten
			
			
									
						
							you can remove it in template/main.tpl.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
			
						amazon.de Wishlist
Hi,
you mean the "show all categories" page on the main page?
bye
Thorsten
			
			
									
						
							you mean the "show all categories" page on the main page?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
			
						amazon.de Wishlist
Hi,
first, you have to add the following in the main.tpl template:
Then you have to copy this code from show.php:
into main.php. Maybe you have to change some things in the template stuff...
bye
Thorsten
			
			
									
						
							first, you have to add the following in the main.tpl template:
Code: Select all
	{writeThemes}
	{writeOneThemeBack}Code: Select all
if (isset($_REQUEST['cat']) && is_numeric($_REQUEST['cat'])) {
	$category = (int)$_REQUEST['cat'];
}
if (isset($category) && $category != 0 && isset($tree->categoryName[$category])) {
	Tracking('show_category', $category);
    $parent = $tree->categoryName[$category]['parent_id'];
    $name = $tree->categoryName[$category]['name'];
    $records = printThemes($category);
    if (!$records) {
        $cats = new Category($LANGCODE);
    	$cats->transform($category);
    	$cats->collapseAll();
    	$records = $cats->viewTree();
    }
	if ($parent != 0) {
		$up = '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=show&cat='.$parent.'">'.$PMF_LANG['msgCategoryUp'].'</a>';
    } else {
        $up = '';
    }
    $tpl->processTemplate('writeContent', array(
				          'writeCategory' => $PMF_LANG['msgEntriesIn'].$name,
				          'writeThemes' => $records,
				          'writeOneThemeBack' => $up));
	$tpl->includeTemplate('writeContent', 'index');
} else {
	Tracking('show_all_categories', 0);
	$tpl->processTemplate('writeContent', array(
				          'writeCategory' => $PMF_LANG['msgFullCategories'],
				          'writeThemes' => $tree->viewTree(),
				          'writeOneThemeBack' => ''));
	$tpl->includeTemplate('writeContent', 'index');
}bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
			
						amazon.de Wishlist