Page 1 of 1

Knowledgebase Question

Posted: Sat Jan 24, 2009 7:54 pm
by Lee
Loving the new update of this script!

Just one thing, is there a way to turn off the knowledgebase articles from the parent knowledgebase directory so I'm not left with a message saying no articles in this category? (see screenshot)

All my articles are in sub categories (see screenshot) so having this message saying no articles in this category looks out of place.


Image

URL to script: http://apple.me.uk/hesk

Thanks :D

Posted: Sat Jan 24, 2009 8:24 pm
by Klemen
That page will show only articles in that exact category, so articles placed in "Knowledgebase" category and not in any subcategories.

Posted: Sat Jan 24, 2009 8:29 pm
by Lee
Yes that's why I want to remove what is outlined in the red circle.

Posted: Sun Jan 25, 2009 10:26 am
by Klemen
Change line 475 in knowledgebase.php from

Code: Select all

} // END if NumRows > 0
to

Code: Select all

} // END if NumRows > 0
if ($catid != 1)
{
and line 552 from

Code: Select all

if ($hesk_settings['kb_popart'] && $catid==1)
to

Code: Select all

}
if ($hesk_settings['kb_popart'] && $catid==1)
and see if that works.

Posted: Sun Jan 25, 2009 11:34 pm
by Lee
That worked, Thanks for that! :D

Posted: Wed Oct 28, 2009 2:52 am
by Raven
An old post I know but I have just used this little hack on my installation of HESK 2.1 which worked fine :)

Thank you

Re: Knowledgebase Question

Posted: Sun Jan 03, 2016 2:36 am
by rebeloda
Hi.

Believe this is not working for 2.6.5.

Code: Select all

if ($hesk_settings['kb_popart'] && $catid==1)
is not in the knowledgebase.php.

Any help, pls?

Tks

Re: Knowledgebase Question

Posted: Sun Jan 03, 2016 9:23 am
by Klemen
The second line has changed to just

Code: Select all

if ($catid == 1)

Re: Knowledgebase Question

Posted: Sun Jan 03, 2016 12:02 pm
by rebeloda
Ok, tks.

Mind to give the hack to hide the message saying no articles in this category?

Tks
Rebelo

Re: Knowledgebase Question

Posted: Thu Jan 07, 2016 7:13 pm
by rebeloda
Hi, enjoying a lot this help desk script but woul really like to hide the message saying no articles in this category.

Any help pls...

Tks
Rebelo

Re: Knowledgebase Question

Posted: Thu Jan 07, 2016 7:52 pm
by Klemen
The instructions are in this topic, just the second line you need to search for has changed.

Re: Knowledgebase Question

Posted: Thu Jan 07, 2016 8:27 pm
by rebeloda
Yeap, just what the doctor ordered :D
Situation solved, my mistake, sorry.

Keep up the good work
Rebelo