Have Service Messages appear on Knowledge Base page

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
sp119
Posts: 23
Joined: Wed Feb 13, 2013 1:55 pm

Have Service Messages appear on Knowledge Base page

Post 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
Sean Porter
Web Developer/Business Analyst
Georgia Tech
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: Have Service Messages appear on Knowledge Base page

Post 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);
	}
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
sp119
Posts: 23
Joined: Wed Feb 13, 2013 1:55 pm

Re: Have Service Messages appear on Knowledge Base page

Post 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.
Sean Porter
Web Developer/Business Analyst
Georgia Tech
Post Reply