Add Sub-Category without showing "0 Entries"

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Shlomo
Posts: 15
Joined: Sun May 17, 2009 6:45 am

Add Sub-Category without showing "0 Entries"

Post by Shlomo »

Hi Thorsten,

I am using - phpMyFAQ 2.0.17

It is possible to add "Sub-Category" to my FAQ system without showing "0 Entries " beside ?

- See what I mean at the attached file:

Thanks
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Add Sub-Category without showing "0 Entries"

Post by Thorsten »

Hi,

open inc/Category.php, goto line 628 and change

Code: Select all

if (0 == $number[$parent] && 0 == $level) {
to

Code: Select all

if (0 == $number[$parent]) {
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Shlomo
Posts: 15
Joined: Sun May 17, 2009 6:45 am

Re: Add Sub-Category without showing "0 Entries"

Post by Shlomo »

Thank You ! :D
Post Reply