4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: zaisk on March 13, 2006, 01:36:49 PM

Title: Is it possible to seperate category from subcategory
Post by: zaisk on March 13, 2006, 01:36:49 PM
I very need help :/

Is it possible to show some info in category and not to show in subcategory.

When I am trying to edit template file category.html I get the same info in category and subcategory. I need to hide info in subcategories.


Please help
Title: Re: Is it possible to seperate category from subcategory
Post by: mawenzi on March 13, 2006, 01:41:45 PM
It is possible ...  :wink: ... ! You can use different category templates ...
try this : http://www.4homepages.de/forum/index.php?topic=1847.msg7781#msg7781

mawenzi
Title: Re: Is it possible to seperate category from subcategory
Post by: V@no on March 13, 2006, 02:48:14 PM
Or replace in categories.php
Code: [Select]
$site_template->print_template($site_template->parse_template($main_template));with:
Code: [Select]
$site_template->print_template($site_template->parse_template($main_template.($cat_cache[$cat_id]['cat_parent_id'] ? "_sub" : "")));and then create new template for subcategories, name it as categories_sub.html
Title: Re: Is it possible to seperate category from subcategory
Post by: zaisk on March 13, 2006, 04:07:51 PM
Or replace in categories.php
Code: [Select]
$site_template->print_template($site_template->parse_template($main_template));with:
Code: [Select]
$site_template->print_template($site_template->parse_template($main_template($cat_cache[$cat_id]['cat_parent_id'] ? "_sub" : "")));and then create new template for subcategories, name it as categories_sub.html


Thank you, but after I replave the code I get the error when I am entering category or subcategory, the error is: Fatal error: Call to undefined function: categories() in /home/*****/public_html/4images/categories.php on line 175
Title: Re: Is it possible to seperate category from subcategory
Post by: V@no on March 14, 2006, 01:13:14 AM
oh...left out a dot after $main_template