Author Topic: Is it possible to seperate category from subcategory  (Read 4734 times)

0 Members and 1 Guest are viewing this topic.

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Is it possible to seperate category from subcategory
« 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

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Is it possible to seperate category from subcategory
« Reply #1 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
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Is it possible to seperate category from subcategory
« Reply #2 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
« Last Edit: March 14, 2006, 01:12:45 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Is it possible to seperate category from subcategory
« Reply #3 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Is it possible to seperate category from subcategory
« Reply #4 on: March 14, 2006, 01:13:14 AM »
oh...left out a dot after $main_template
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)