Page 1 of 1

Have Service Messages appear on Knowledge Base page

Posted: Wed Dec 19, 2018 5:10 pm
by sp119
Script URL: http://www.grad.gatech.edu/helpdesk/
Version of script: 2.8.2
Hosting company: local
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Display Service Messages

Write your message below:
I would like for the Service messages to be displayed on the Knowledgebase.php page. They show up on the index.php page but not on the knowledgebase.php page.

I found the code that has them display on the index.php page and that same code is in the knowledgebase.php page but for some reason the service messages don't appear.

Does anyone know what I can change to have them appear on the knowledgebase page? We drive our folks to that page so they can see the categories of our FAQ's. If you go to our site right now you can see an announcement on the index.php page but I would like for these to also appear on the knowledgebase page. (I wonder if I can say knowledgebase a few more times!!!)

We use Hesk for both knowledge base and helpdesk.

Any suggestions would be greatly appreciated!

Thanks

Re: Have Service Messages appear on Knowledge Base page

Posted: Wed Dec 19, 2018 7:34 pm
by Klemen
Pasting this code just below

Code: Select all

hesk_kbSearchLarge();
inside your knowledgebase.php should do the trick:

Code: Select all

	// Service messages
	$res = hesk_dbQuery('SELECT `title`, `message`, `style` FROM `'.hesk_dbEscape($hesk_settings['db_pfix'])."service_messages` WHERE `type`='0' AND (`language` IS NULL OR `language` LIKE '".hesk_dbEscape($hesk_settings['language'])."') ORDER BY `order` ASC");
	while ($sm=hesk_dbFetchAssoc($res))
	{
		hesk_service_message($sm);
	}

Re: Have Service Messages appear on Knowledge Base page

Posted: Wed Apr 17, 2019 5:50 pm
by sp119
Klemen,

Took me a while to circle back around to this but it works like a charm!! Thanks for the quick response, even if I didn't get to it right away.