the article link are not clickable in admin ticket message

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
deserteagle369
Posts: 94
Joined: Wed Feb 29, 2012 2:00 am

the article link are not clickable in admin ticket message

Post by deserteagle369 »

Script URL:
Version of script: 2.41
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
after upgrade from 2.3 to 2.41, I found the link (refer to an article in kb) are not clickable in the message body of ticket for admin in IE6, FF13.01,chrome 11, but the link clickable in FF13.

I compared the message contents with old ticket which submit from 2.3, there is no href html tag.

but the link in signature is clickable which do not has href tag.

I'd like the link be clickable for easy reference, how to change it?

thanks.
Eagle
Life is a journey.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: the article link are not clickable in admin ticket messa

Post by Klemen »

Not sure what is wrong, all links should be clickable.

Try downloading HESK again and just upload the "inc/common.inc.php" file again to the server, then submit a test ticket. Does that fix it?
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
deserteagle369
Posts: 94
Joined: Wed Feb 29, 2012 2:00 am

Re: the article link are not clickable in admin ticket messa

Post by deserteagle369 »

I located the problem, the function changed in common.inc.php in 2.41.

v2.3
function hesk_makeURL($strUrl)

v2.41
function hesk_makeURL($text)

then in submit_ticket.php and admin_submit_ticket.php below php can't work well as before.

$tmpvar['message']=hesk_makeURL($tmpvar['message']);
Eagle
Life is a journey.
deserteagle369
Posts: 94
Joined: Wed Feb 29, 2012 2:00 am

Re: the article link are not clickable in admin ticket messa

Post by deserteagle369 »

But the link work in the reply message.
Eagle
Life is a journey.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: the article link are not clickable in admin ticket messa

Post by Klemen »

It works fine in my test setup. My guess is you have some old code somewhere in your modified files?

Try downloading and installing a clean copy of HESK into a test folder and see if you can duplicate the issue there. If you can, please let me know exact steps of what you did, what happens and what you expect to happen.
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
deserteagle369
Posts: 94
Joined: Wed Feb 29, 2012 2:00 am

Re: the article link are not clickable in admin ticket messa

Post by deserteagle369 »

After tried many times I located the problem, if I insert the link of article from knowledgebase, the text will not convert to html hyperlink, because the text start like this:
http://chnshaxxxx/hesk/knowledgebase.php?article=4594

The other text like below can convert to html hyperlink correctly:
http://www.google.com.hk
http://intranet.google.com
http://192.168.0.100/hesk/knowledgebase ... ticle=4594

I study the function hesk_makeURL($text) but can not figure out how to fix it, BTW, the new function hide parameter detail in the link text,such as

http://192.168.0.100/hesk/knowledgebase ... ticle=4594

In hesk2.3, it shows like:
http://192.168.0.100/hesk/knowledgebase ... ticle=4594

In hesk2.41, it shows like:
http://192.168.0.100/hesk/knowledgebase.php

Is it okay I replace the function hesk_makeURL($text) in 2.41 with that in 2.3?
Eagle
Life is a journey.
Post Reply