Problem with javascript on some pages

Helpdesk for my helpdesk software

Moderator: mkoch227

m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

Thanks a lot Klemen and sorry for all this :oops:

But I'm not able to make it work again like in the old 2.1...

You will find an update here when I'll finish to set up the online version on my site.

Thanks again :wink:
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

Good evening Klemen,

I've finally uploaded the HESK on my site, with the same files I'm using locally, only some things are missing due to the fact I cannot copy the hesk_settings.php file.

So, if you wanna give it a try, this are what are looking for:

URL: http://just2learn.altervista.org/hesk/

USERNAME: klemen

PASSWORD: stirn

Default language is Italian, so you can see the strange problem happening in the admin settings page, but you can switch it to english.

I've just tried and switching to English seems to solve the problem... :?:

Maybe I've just made some mistakes in the Italian text.php file? Some sintax errors? I've controlled it more and more times, but I didn't recognized anything.

While waiting for your response, best regards and thanks for the help :wink:
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try using this file (I modified it to automatically add slashes to the Javascript code text):
http://www.phpjunkyard.com/extras/admin_settings.zip
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
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

Thanks Klemen, I'll try it ASAP to see it solves my problem.

Thanks for your help :wink:
basile
Posts: 7
Joined: Sun Jan 25, 2009 10:56 am

problem language

Post by basile »

The problem is in the language file text.php.
I found several errors in the section:
/ * ADDED IN VERSION 0.94 Heske * /
/ * Added or modified in version 2.1 * /
I fixed the errors and now everything seems to work well.
Text.php the file can be downloaded here:
http://www.superscuola.com/helpdesk/lan ... t/text.zip
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

@ BASILE

Grazie basile, ma il tuo file text.php è vuoto.

Comunque grazie delle info, ricontrollerò il mio ;)
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I assume everything works fine now?
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
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

Hi Klemen,

first of all, thanks for your file, it works ;)

I don't understand what you did, but it works fine.

There's another issue I'm facing: ticket search by user name with ' character.

When I try to search for some clients with the ' character (eg. D'), the search field displays D\' after I hit the Search button; plus after some more hits, the slash number increase (D\\\\\') and it doesn't find anything: why?
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I'll have a look at it, probably an issue with PHP's "magic quotes" (which will, thankfully, be removed in PHP 6 :roll: ).
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
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In admin/find_ticket.php change

Code: Select all

$q = isset($_GET['q']) ? hesk_input($_GET['q']) : '';
to

Code: Select all

$q = isset($_GET['q']) ? stripslashes(hesk_input($_GET['q'])) : '';
This should fix the problem.
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
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

Thanks a lot Klemen! It works ;)

You should correct it in the 2.2.1 release :roll: :wink:
Post Reply