Author Topic: How to remove sub-category from mainpage?  (Read 4695 times)

0 Members and 1 Guest are viewing this topic.

Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
How to remove sub-category from mainpage?
« on: August 26, 2006, 04:49:13 PM »
I searched in the forum but couldn't find. I want to remove it so that my mainpage will look more neater. I tried editing home.html but was unsuccessfull. Does anyone know how? Thanks. Apreciate your help!
« Last Edit: August 28, 2006, 06:17:02 PM by darkcurves »

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: How to remove sub-category from mainpage?
« Reply #1 on: August 26, 2006, 07:00:20 PM »
try category_bit.html, but it will affect also categories page.
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 darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: How to remove sub-category from mainpage?
« Reply #2 on: August 26, 2006, 07:27:14 PM »
Oh ic, that case i dont think it's possible. Anyway, thanks for your help.  :D

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: How to remove sub-category from mainpage?
« Reply #3 on: August 26, 2006, 07:52:39 PM »
try this: in includes/functions.php find:
Code: [Select]
      "sub_cats" => get_subcategories($category_id),
Replace with:
Code: [Select]
      "sub_cats" => ($cat_id) ? get_subcategories($category_id) : "",
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 darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: How to remove sub-category from mainpage?
« Reply #4 on: August 28, 2006, 06:09:11 PM »
It works! Thanks Vano!  :mrgreen: :mrgreen: