HESK version 2.3 BETA (test version)

Helpdesk for my helpdesk software

Moderator: mkoch227

Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK version 2.3 BETA (test version)

Post by Klemen »

Sending emails are now handled by the "hesk_mail" function, located in the inc/email_functions.inc.php file.

You can simply add something like this to the top of the function to disable all emails:

Code: Select all

function hesk_mail($to,$subject,$message) {
return false;

/* the rest of the code may be left intact... */
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
SS113
Posts: 27
Joined: Mon Aug 15, 2011 1:27 pm

Re: HESK version 2.3 BETA (test version)

Post by SS113 »

perfect! Thank you! :D So far this is great! no bugs found yet
SS113
Posts: 27
Joined: Mon Aug 15, 2011 1:27 pm

Re: HESK version 2.3 BETA (test version)

Post by SS113 »

Quick question about 2.3.

I see that it has a "lastchange" that calculates how long it has been since the ticket was last changed. While it works great, it shows up as: 1d22h instead of 1d 22h. Is it possible to add a space between them?

Thanks
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK version 2.3 BETA (test version)

Post by Klemen »

That was done on purpose to save space for other information.

But you can still add space by modifying the text used in language/en/text.php:

1. find

Code: Select all

$hesklang['abbr']['year']
a space after y, so it looks like:

Code: Select all

$hesklang['abbr']['year']='y ';
2. Do the same for other abberivations below this line
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
SS113
Posts: 27
Joined: Mon Aug 15, 2011 1:27 pm

Re: HESK version 2.3 BETA (test version)

Post by SS113 »

Thanks! That looks much better.

To combat the space issue (since I modified what columns shows up in admin_main.php, I changed the width in hesk_style_v23.css from 770px to 970px and it's much wider and everything fits very nicely!

Thanks again 8)
SS113
Posts: 27
Joined: Mon Aug 15, 2011 1:27 pm

Re: HESK version 2.3 BETA (test version)

Post by SS113 »

I *may* have found a bug!

when you go to the settings, under the Help Desk tab, there's an option to auto close tickets after x days.
It shows up as:
Autoclose tickets: [?] [7] days after last staff reply
but if I try to disable that to 0, it saves it successfully but it goes back to 7 days right after that :?

Is this a bug or?
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK version 2.3 BETA (test version)

Post by Klemen »

Indeed a bug. Good catch, thanks for reporting it :wink:
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
SS113
Posts: 27
Joined: Mon Aug 15, 2011 1:27 pm

Re: HESK version 2.3 BETA (test version)

Post by SS113 »

Klemen wrote:Indeed a bug. Good catch, thanks for reporting it :wink:

Yesss!! I feel important! haha just kidding!

anyway, I guess a workaround for now would be to set it to 365 days or so and don't worry about it :lol:
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK version 2.3 BETA (test version)

Post by Klemen »

You should feel important, every even smallest bug report is very important :D

You can modify file admin/admin_settings_save.php lines 100 and 101 to say

Code: Select all

$set['autoclose'] = ! isset($_POST['s_autoclose']) ? 7 : intval($_POST['s_autoclose']);
$set['autoclose'] = hesk_checkMinMax($set['autoclose'],0,999,7);
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
SS113
Posts: 27
Joined: Mon Aug 15, 2011 1:27 pm

Re: HESK version 2.3 BETA (test version)

Post by SS113 »

Klemen wrote:You should feel important, every even smallest bug report is very important :D

You can modify file admin/admin_settings_save.php lines 100 and 101 to say

Code: Select all

$set['autoclose'] = ! isset($_POST['s_autoclose']) ? 7 : intval($_POST['s_autoclose']);
$set['autoclose'] = hesk_checkMinMax($set['autoclose'],0,999,7);
Are you sure it's that file name/line?

my admin/admin_settings.php at line 100 and 101 say:

Code: Select all

if (d.s_site_title.value=='') {alert('<?php echo addslashes($hesklang['err_sname']); ?>'); return false;}
if (d.s_site_url.value=='') {alert('<?php echo addslashes($hesklang['err_surl']); ?>'); return false;}
I tried changing them to that and adding them above it and it still has the bug...
devcoder1
Posts: 10
Joined: Tue Apr 26, 2011 1:04 pm

Re: HESK version 2.3 BETA (test version)

Post by devcoder1 »

Klemen wrote:One possible reason that comes to mind is your DB structure is not 100% compatible with 2.3. Check structure of table "hesk_tickets" and see if "trackid" is varchar(10) or varchar(13)? Should be varchar(13), if it's not the ticket ID is getting truncated when it enteres the DB.

In this case, you would have a ticket with trackind ID "5YE-LNJ-6R" ("NX" missing) in the database instead of a ticket with the correct ID "5YE-LNJ-6RNX".

Hi Klemen
This seems like it could be the issue will check and let you know.

No all the files are from 2.3 - the database is from 2.2 - but EVERYTHING works - except when you go to open a new ticket from inside the admin control panel - but will check the varchar etc and get back to you.

Thanks,
Thomas
devcoder1
Posts: 10
Joined: Tue Apr 26, 2011 1:04 pm

Re: HESK version 2.3 BETA (test version)

Post by devcoder1 »

Klemen wrote:This happens when you click "+ New ticket" link or when you enter info and submit the form?

Do you get the same error if you Unselect "Show the ticket after submission"?

Does the ticket get entered in the database?

Are you sure the database structure is from 2.3 and not from 2.2?

Double-check that admin_ticket.php and other files are the ones from version 2.3 and not 2.2.
Yes the ticket gets entered into the database, it just does not show it through the webpage after you have submitted ticket and instead gives the error (which is the screenshot I uploaded)
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK version 2.3 BETA (test version)

Post by Klemen »

@SS113: you should edit file "admin_settings_save.php", not "admin_settings.php" :wink:

@devcoder1: could you post a sample ticket tracking ID (one of the new format with the "-") that you see from the admin panel main page?
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
SS113
Posts: 27
Joined: Mon Aug 15, 2011 1:27 pm

Re: HESK version 2.3 BETA (test version)

Post by SS113 »

Klemen wrote:@SS113: you should edit file "admin_settings_save.php", not "admin_settings.php" :wink:
I swear you went back and added the _save.php part! :lol:

anyway, it works great now! Thanks again! I'll keep hunting for more bugs but it looks pretty stable to me!
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK version 2.3 BETA (test version)

Post by Klemen »

No, you are just getting old :lol:

Anyway, I found and fixed few other minor problems and will probably release 2.3 officially in a week. If you find anything else do let me know.
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
Locked