| ||||||||||||
![]() |
| Notices |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rating: | Display Modes |
(#1)
|
(#2)
|
| Member Posts: 168 Join Date: Oct 2007 Location: Jakarta, Indonesia |
01-04-2008, 02:24 PM
jenglish, I'm so glad you're working on this, and I wonder if you or someone else could help me out. Arggh! I'm frustrated by this! ![]() My issue is not so much getting the Outlook client replies into Kayako with all their pretty formatting. I just want three (simple?) things:
My settings are:
The Precision Group + Free: Ticket List & Ticket Search Mods + Free: (Almost) Perfect Outlook/HTML Tickets + Tutorials: SLA System Explained l Using Template Groups Kayako v3.20.02 & v3.30.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 Server |
| | |
(#3)
|
(#4)
|
| Member Posts: 168 Join Date: Oct 2007 Location: Jakarta, Indonesia |
03-10-2008, 10:28 AM
I'm still not sure this is the best way to handle Outlook's HTML. While I'm experimenting with this, here's a fix for the 'ugly hyperlink' issue I complained about earlier. Just use this code in place of that provided by jenglish. It does a little extra cleaning in the <style> tag supplied by Outlook: Code: $ContentsCopy = $dbCore->Record["contents"]; //make a copy of the contents
$OriginalLength = strlen($ContentsCopy); //get original length of the string
$NewLength = strlen(strip_tags($ContentsCopy)); //get length after HTML tags are stripped
if ($OriginalLength != $NewLength || $nobr == true)
{
$_posts[$dbCore->Record["ticketpostid"]]["contents"] = $dbCore->Record["contents"];
} else {
$search = array(
'@a:link,(?:.*?)}@si', // clean hyperlink
'@a:visited,(?:.*?)}@si', // clean visited hyperlink
'@<img(?:.*?)>@si', // clean IMG tags
);
$_posts[$dbCore->Record["ticketpostid"]]["contents"] = $this->returnProcessedContent(preg_replace($search, '', $dbCore->Record["contents"]));
}
The Precision Group + Free: Ticket List & Ticket Search Mods + Free: (Almost) Perfect Outlook/HTML Tickets + Tutorials: SLA System Explained l Using Template Groups Kayako v3.20.02 & v3.30.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 Server |
| | |
![]() |
| Tags |
| breaking, display, html, posts, properly, textonly, ticket |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML ticket posts from Outlook butchered | jenglish | SupportSuite, eSupport and LiveResponse | 10 | 26-03-2008 02:43 PM |
| Ticket text truncated because of HTML? | PeteV | How do I? | 1 | 25-07-2007 06:17 PM |
| New Build: 3.10.02 STABLE | Ryan Lederman | News and Announcements | 0 | 05-03-2007 08:53 PM |
| eSupport v2.2 RC1 Available in Members Area | Varun Shoor | Technical Chat | 1 | 17-05-2004 01:28 PM |