Knowledgebase Question

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Lee
Posts: 8
Joined: Thu Feb 02, 2006 1:22 pm

Knowledgebase Question

Post 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
Last edited by Lee on Sun Jan 25, 2009 1:05 am, edited 2 times in total.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

That page will show only articles in that exact category, so articles placed in "Knowledgebase" category and not in any subcategories.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lee
Posts: 8
Joined: Thu Feb 02, 2006 1:22 pm

Post by Lee »

Yes that's why I want to remove what is outlined in the red circle.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lee
Posts: 8
Joined: Thu Feb 02, 2006 1:22 pm

Post by Lee »

That worked, Thanks for that! :D
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post 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
rebeloda
Posts: 9
Joined: Sun Jan 03, 2016 2:31 am

Re: Knowledgebase Question

Post 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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Knowledgebase Question

Post by Klemen »

The second line has changed to just

Code: Select all

if ($catid == 1)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
rebeloda
Posts: 9
Joined: Sun Jan 03, 2016 2:31 am

Re: Knowledgebase Question

Post by rebeloda »

Ok, tks.

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

Tks
Rebelo
rebeloda
Posts: 9
Joined: Sun Jan 03, 2016 2:31 am

Re: Knowledgebase Question

Post 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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Knowledgebase Question

Post by Klemen »

The instructions are in this topic, just the second line you need to search for has changed.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
rebeloda
Posts: 9
Joined: Sun Jan 03, 2016 2:31 am

Re: Knowledgebase Question

Post by rebeloda »

Yeap, just what the doctor ordered :D
Situation solved, my mistake, sorry.

Keep up the good work
Rebelo
Post Reply