HESK Text Wrap Issue
Moderator: mkoch227
-
- Posts: 6
- Joined: Thu Apr 19, 2012 8:44 pm
HESK Text Wrap Issue
We are using HESK for our knowledgebase. We added $txt=nl2br($txt); to line 589 of the knowledgebase.php page. We did this because text was wrapping when we wrote step-by-step instructions. It fixed the wrapping where the list of KB articles are on the search page, but the text is still wrapped on other pages. Anyone know how to fix this wrapping?
Re: HESK Text Wrap Issue
Not exactly sure what you mean, could you create a screenshot of your wrapping problem?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 6
- Joined: Thu Apr 19, 2012 8:44 pm
Re: HESK Text Wrap Issue
http://photobucket.com/aztpatterson has three screenshots. One of them is the correct version.
Re: HESK Text Wrap Issue
If your lines are not wrapping not even in the article itself (image 3/3), then the article is not written correctly.
Could you let me know what version of HESK you are using?
If version 2.3 - did you write the article in WYSIWYG editor? Or did you write it as HTML code or as plain text?
Could you let me know what version of HESK you are using?
If version 2.3 - did you write the article in WYSIWYG editor? Or did you write it as HTML code or as plain text?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 6
- Joined: Thu Apr 19, 2012 8:44 pm
Re: HESK Text Wrap Issue
We are using HESK version 2.3.
In the helpdesk portion of HESK, it's a "what you see what you get" when submitting information. In the knowledgebase, this isn't the case. We are using the manage_knowledgebase.php?a=add_article&catid=1 link to add the data, but when we type it in with multiple lines, the text is wrapping to one line.
In the helpdesk portion of HESK, it's a "what you see what you get" when submitting information. In the knowledgebase, this isn't the case. We are using the manage_knowledgebase.php?a=add_article&catid=1 link to add the data, but when we type it in with multiple lines, the text is wrapping to one line.
-
- Posts: 6
- Joined: Thu Apr 19, 2012 8:44 pm
Re: HESK Text Wrap Issue
Also, the WYSIWYG Editor setting is enabled. Since we made the mod to line 589 of the knowledgebase page it seems to me that the issue is somehow related to the code that is displaying the data, not the code that is allowing the input of data.
Re: HESK Text Wrap Issue
The problem is your article isn't being saved to the database correctly - if it looks fine in the WYSIWYG editor when you write it but not in the knowledgebase, this means that newlines probably aren't being change into <br /> when saved.
This is not the expected behavior and shouldn't happen - it also doesn't in my tests. I'm not sure why it does on your server though.
1. Have you been modifying the manage_knowledgebase.php file? Could you try uploading the original one?
2. What browser and operating system are you using?
3. What server software and PHP version are you using?
4. Let me know if you could you give me access to your help desk to run some tests.
This is not the expected behavior and shouldn't happen - it also doesn't in my tests. I'm not sure why it does on your server though.
1. Have you been modifying the manage_knowledgebase.php file? Could you try uploading the original one?
2. What browser and operating system are you using?
3. What server software and PHP version are you using?
4. Let me know if you could you give me access to your help desk to run some tests.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 6
- Joined: Thu Apr 19, 2012 8:44 pm
Re: HESK Text Wrap Issue
Question #2 in your response helped me find some more info. IE8 is my browser. Most of our department uses IE8. I tested with Chrome and the WYSIWYG does actually work. It appears that the issue is browser-related.
Any idea what settings should be configured for IE8 to work properly with the page?
http://s1166.photobucket.com/albums/q60 ... chrome.jpg shows the difference between Chrome and IE8.
http://s1166.photobucket.com/albums/q60 ... string.jpg shows the error message that comes up in IE8. IE says the page is done loading but with errors.
Any idea what settings should be configured for IE8 to work properly with the page?
http://s1166.photobucket.com/albums/q60 ... chrome.jpg shows the difference between Chrome and IE8.
http://s1166.photobucket.com/albums/q60 ... string.jpg shows the error message that comes up in IE8. IE says the page is done loading but with errors.
Re: HESK Text Wrap Issue
I don't have IE8 by hand to test right now, but could you try this:
1. open "manage_knowledgebase.php" in Notepad
2. twice in the file replace this code with
3. save changes, upload and test.
Did that help?
1. open "manage_knowledgebase.php" in Notepad
2. twice in the file replace this code
Code: Select all
true,
Code: Select all
true
Did that help?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: HESK Text Wrap Issue
OK, I was able to test using IE8 and found out this:
1. the problem occurs if you turn "Compatibility mode" ON, but disappears if you turn Compatibility mode OFF.
2. if you make the change mentioned in my previous post it should work fine with Compatibility mode ON
1. the problem occurs if you turn "Compatibility mode" ON, but disappears if you turn Compatibility mode OFF.
2. if you make the change mentioned in my previous post it should work fine with Compatibility mode ON
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 6
- Joined: Thu Apr 19, 2012 8:44 pm
Re: HESK Text Wrap Issue
I replaced both instances of "true," and replaced with "true". We are in business! Thanks