Author Topic: one category not to show number of images in it! how???  (Read 3438 times)

0 Members and 1 Guest are viewing this topic.

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
one category not to show number of images in it! how???
« on: May 03, 2003, 05:14:39 AM »
Hi,

I have one category, which I do not want it to show how many images it has inside it on the index.php page.

anyone know if this is possible??

thanks in advance.

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
one category not to show number of images in it! how???
« Reply #1 on: May 03, 2003, 06:34:27 AM »
in /includes/functions.php find:
Code: [Select]
"num_images" => $num_images
replace it with:
Code: [Select]
"num_images" => ($category_id == XXXX) ? 0 : $num_images
change XXXX to number of your category
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 HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
one category not to show number of images in it! how???
« Reply #2 on: May 03, 2003, 04:13:53 PM »
Thank you!