Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
lee.black Offline
New Member
 
Posts: 18
Join Date: Jan 2007
Exclamation Knowledge Base insert into ticket - 03-07-2007, 04:18 PM

Has anyone else had this problem.

If you have a knowledge base article which has text on multiply lines for example

Line1
Line2

then when you try and insert this into a ticket reply it appears as

Line1Line2

Making the reponse unreadilbe and the staff users having to correct the layout. when they could type the answer quicker.
   
Reply With Quote
  (#2) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
03-07-2007, 04:23 PM

Quote:
Originally Posted by lee.black View Post
Has anyone else had this problem.

If you have a knowledge base article which has text on multiply lines for example

Line1
Line2

then when you try and insert this into a ticket reply it appears as

Line1Line2

Making the reponse unreadilbe and the staff users having to correct the layout. when they could type the answer quicker.
Yup, see my thread as well, it explains the same problem.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#3) Old
Chris Boulton Offline
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
03-07-2007, 04:39 PM

Rather interesting.

Can you open up modules/knowledgebase/staff_ajax.php.

Find:
Code:
		echo strip_tags($_kb["contents"]);
Replace with:
Code:
		echo strip_tags(str_replace(array("<br />", "<br>"), "\r\n", $_kb["contents"]));
Reported to bug tracker too - http://bugs.kayako.com/index.php?cmd=view&id=151

Last edited by Chris Boulton; 04-07-2007 at 02:21 AM..
   
Reply With Quote
  (#4) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
03-07-2007, 05:10 PM

Nice Chris! Thanks for that!

Also, your code tag for the fix has a typo and might cause confusion for some.
The opening tag is: [coed] should be (as I'm sure you know) [code]

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#5) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
03-07-2007, 05:19 PM

In looking at this, I'm wondering if there is some way to improve upon inserting KB articles in tickets...

Here is the scenario: If you insert a KB article that has images, the images don't currently get inserted (unless It's my particular configuaration that's wrong)

Could the insertion code have a check that if you are trying to insert an article that has images in it, it inserts a link to the article and a message that says "Please click on this link and review in our KnowledgeBase"

Or, it goes ahead and inserts the article as it currently does, but prefixes it with a shortl message "To view the images in this article, please go to http://yourdomain/pathtokbarticle"

Or, with no checking at all for images, automatically inserts the above message plus the link to the article in the KB, at the top.


Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#6) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
03-07-2007, 07:10 PM

Thanks Chris, I actually submitted this bug a while ago as well.
http://bugs.kayako.com/index.php?cmd=view&id=43
But they said that it couldn't not be reproduced. Seeing how many are having this issue the status needs to be changed.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#7) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
03-07-2007, 10:12 PM

That fix did not resolve my issue. The text is all over the place, looks like one big paragraph instead of the nicely formatted article that I created.

Did it work for anyone else?

What is the point of using the WYSIWYG editor when creating articles if you can't even insert the article correctly. Stupid if you ask me.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#8) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
03-07-2007, 11:08 PM

I spoke too soon also. It helped with some articles, not so much with others.

I'm getting stuff like this: (which I'm guessing is getting trashed by the code tags in the article):


Error message when attempting to print via GreatDocs: Error Communicating with the serverIf you run PacketExtractor against this transaction you will see:
Request:

&lt;?xml
version=&quot;1.0&quot;?&gt;&lt;PRINTERSLIST /&gt;
&nbsp;
Response:
&lt;html&gt;&lt;body&gt;&lt;p&gt;Error
Communicating with the
server&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;

Solution: Check the GreatDocs services to ensure they are started
There are 3 GreaDocs services:
GreatDocs Communication Server
GreatDocs Print Server
GreatDocs Server Administration Interface

&nbsp;

I've attached a screenshot of what it should look like.

Hopefully the community or kayako can come up with a way to make this workable, as the deeper I dig, the more frustration over a tool that should be a huge asset to my organization is becoming a pita.

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#9) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
03-07-2007, 11:10 PM

Screenshot would have helped.
Attached Images
File Type: jpg 0008.JPG (41.3 KB, 12 views)


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#10) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
03-07-2007, 11:45 PM

Exactly...I get things like this as well as stuff where the line breaks don't work...it just becomes one big paragraph.

Such a retarded problem that needs to be addressed.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#11) Old
Chris Boulton Offline
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
04-07-2007, 02:30 AM

OK, I forgot to take in to account paragraphs.

Looking at the example which was pasted above, replace my fix with the following and let me know how it is then:
Quote:
$_kb["contents"] = str_replace(array("<br />", "<br>"), "\r\n", $_kb["contents"]); // New lines
$_kb["contents"] = str_replace("</p>", "\r\n\r\n", $_kb["contents"]); // Paragraphs
$_kb["contents"] = strip_tags($_kb["contents"]); // Strip HTML
echo html_entity_decode($_kb["contents"]); // Convert any HTML entities such as &lt; to <
   
Reply With Quote
  (#12) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
04-07-2007, 02:34 AM

Quote:
Originally Posted by Chris Boulton View Post
OK, I forgot to take in to account paragraphs.

Looking at the example which was pasted above, replace my fix with the following and let me know how it is then:
Chris, can you incorporate bullets and numbers and bolds? If not bullets how bout numbers and bolds cause I formatted a lot of articles using the WYSIWYG numbers and would love if those could translate over. Right now even with your fix, the numbers disappear and all the points become one paragraph. I know this is asking for a lot but would help me greatly if this could be done.


Siora Solutions Inc.
www.sioraIT.com

Last edited by Siora; 04-07-2007 at 02:42 AM..
   
Reply With Quote
  (#13) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
04-07-2007, 07:09 AM

Chris, just tried your latest and it's much better with the example i posted earlier! Thank you!

Best regards,

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!

Last edited by richm; 04-07-2007 at 07:12 AM..
   
Reply With Quote
  (#14) Old
lee.black Offline
New Member
 
Posts: 18
Join Date: Jan 2007
13-07-2007, 11:33 AM

thanks very much for the code chris, have put this into my kayako and it works great.

just a shame kayajo canrt fix their own app or even send a reply to a ticket that has been open for 3 months.
   
Reply With Quote
  (#15) Old
craigbrass Offline
Senior Member
 
Posts: 5,922
Join Date: Jun 2005
Location: Cumbria, UK
13-07-2007, 11:36 AM

Got a ticket ID for the ticket you are refering to? Jamie should be able to chase why it never got a reply if not to fix the issue but to find out why this happened.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
Reply

Tags
base, insert, knowledge, ticket

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Staff Insert Phone Ticket vs. Email Ticket caitlyntw SupportSuite, eSupport and LiveResponse 1 17-05-2007 01:32 PM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 09:53 PM
New Ticket - Not linking to Knowledge base ps2 Presales Questions 3 06-01-2007 08:42 PM
Knowledge Base Statistics netarus SupportSuite, eSupport and LiveResponse 1 14-09-2006 11:30 PM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48