new_reply_by_staff.txt, wont work
Moderator: mkoch227
new_reply_by_staff.txt, wont work
Wenn I reply to a ticket the customer will get a blank email, with only in the subject "New reply to your support ticket" This is also not dutch, where can i look for this failure? So that the customer will get the content of "new_reply_by_staff.txt" ?
Thank you!
Thank you!
Re: new_reply_by_staff.txt, wont work
I have chached, that the customer also get a reply wenn a ticked is closed.lupolo wrote:Wenn I reply to a ticket the customer will get a blank email, with only in the subject "New reply to your support ticket" This is also not dutch, where can i look for this failure? So that the customer will get the content of "new_reply_by_staff.txt" ?
Thank you!
But cannot trace the failure!
This is because you are probably replying to the ticket in English mode and the English language is missing the required file:
http://www.ace-europe.nl/helpdesk/en/em ... _staff.txt
Try this:
- make sure Dutch is default language
- delete the "en" folder from the "languages"
- clear your cookies
- close all browser windows
- open your help desk
- go to settings
- click "Test language folder" (or translated link)
- Save settings
Then try replying again.
http://www.ace-europe.nl/helpdesk/en/em ... _staff.txt
Try this:
- make sure Dutch is default language
- delete the "en" folder from the "languages"
- clear your cookies
- close all browser windows
- open your help desk
- go to settings
- click "Test language folder" (or translated link)
- Save settings
Then try replying again.
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
Hello Klemen ..Klemen wrote:This is because you are probably replying to the ticket in English mode and the English language is missing the required file:
http://www.ace-europe.nl/helpdesk/en/em ... _staff.txt
Try this:
- make sure Dutch is default language
- delete the "en" folder from the "languages"
- clear your cookies
- close all browser windows
- open your help desk
- go to settings
- click "Test language folder" (or translated link)
- Save settings
Then try replying again.
it's
http://www.ace-europe.nl/helpdesk/langu ... _staff.txt
But i have fixed a reply wenn i closed a ticket, maybe there is failure inthere, but cannot find it, bacasue its emailing but weith no content
I just posted a test ticket, can you reply to it so I see what kind of a message I get?
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
Not sure what's wrong, I also noticed some other problem (ticket subject is not shown in the "Your ticket received" e-mail.
Try downloading Hesk 2.1 again and upload ALL files to the server except:
- hesk_settings.inc.php
- header.txt
- footer.txt
- /install/ folder
Does that help?
Did you make any changes to the code?
You seem to have a lot of strange problems with your HESK, could you also post your phpinfo.php file (get it here: viewtopic.php?t=138 )?
Try downloading Hesk 2.1 again and upload ALL files to the server except:
- hesk_settings.inc.php
- header.txt
- footer.txt
- /install/ folder
Does that help?
Did you make any changes to the code?
You seem to have a lot of strange problems with your HESK, could you also post your phpinfo.php file (get it here: viewtopic.php?t=138 )?
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
Klemen wrote:Not sure what's wrong, I also noticed some other problem (ticket subject is not shown in the "Your ticket received" e-mail.
Try downloading Hesk 2.1 again and upload ALL files to the server except:
- hesk_settings.inc.php
- header.txt
- footer.txt
- /install/ folder
Does that help?
Did you make any changes to the code?
Yes, I already said that in my post, i have changed that customers also be noticed about closing a ticket. I have maild our script zipped to your email (link) ...
You seem to have a lot of strange problems with your HESK, could you also post your phpinfo.php file (get it here: viewtopic.php?t=138 )?
Got your e-mail - you have a modified admin_reply_ticket.php file. Use the original one and it will work OK.
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
Here the adjustment for add a reply wenn en ticket is closed:
viewtopic.php?t=1926&highlight=
How can i fix this now and let ik work?
viewtopic.php?t=1926&highlight=
How can i fix this now and let ik work?
Have edit the code:
----->
/* Update the original ticket */
if (!empty($_POST['close']))
{
$sql = "UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` SET `status`='3',`lastreplier`='1',`lastchange`=NOW() $priority_sql WHERE `id`=".hesk_dbEscape($replyto)." LIMIT 1";
$efile = 'admin_reply_close_ticket.txt';
$esubject = $hesklang['ticket_closed_staff'];
}
else
{
$sql = "UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` SET `status`='2',`lastreplier`='1',`lastchange`=NOW() $priority_sql WHERE `id`=".hesk_dbEscape($replyto)." LIMIT 1";
$efile = 'new_reply_by_staff.txt';
$esubject = $hesklang['new_reply_staff'];
}
hesk_dbQuery($sql);
/* Update number of replies in the users table */
$sql = "UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` SET `replies`=`replies`+1 WHERE `id`=".hesk_dbEscape($_SESSION['id'])." LIMIT 1";
hesk_dbQuery($sql);
/*** Send "New reply added" e-mail ***/
/* Get e-mail message */
$msg=file_get_contents(HESK_PATH.('language/nl/emails/'.$efile)) ;
$msg = str_replace('%%NAME%%',stripslashes($orig_name),$msg);
$msg = str_replace('%%SUBJECT%%',stripslashes($orig_subject),$msg);
$msg = str_replace('%%TRACK_ID%%',$trackingID,$msg);
$msg = str_replace('%%TRACK_URL%%',$trackingURL,$msg);
$msg = str_replace('%%SITE_TITLE%%',$hesk_settings['site_title'],$msg);
$msg = str_replace('%%SITE_URL%%',$hesk_settings['site_url'],$msg);
$msg = str_replace('%%MESSAGE%%',$message,$msg);
/* Send the e-mail */
$headers="From: $hesk_settings[noreply_mail]\n";
$headers.="Reply-to: $hesk_settings[noreply_mail]\n";
$headers.="Return-Path: $hesk_settings[webmaster_mail]\n";
@mail($orig_email,$esubject,$msg,$headers);
<-----
The only problem is the following:
$msg=file_get_contents(HESK_PATH.('language/nl/emails/'.$efile)) ;
How can i autoselect the language into the code?
----->
/* Update the original ticket */
if (!empty($_POST['close']))
{
$sql = "UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` SET `status`='3',`lastreplier`='1',`lastchange`=NOW() $priority_sql WHERE `id`=".hesk_dbEscape($replyto)." LIMIT 1";
$efile = 'admin_reply_close_ticket.txt';
$esubject = $hesklang['ticket_closed_staff'];
}
else
{
$sql = "UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` SET `status`='2',`lastreplier`='1',`lastchange`=NOW() $priority_sql WHERE `id`=".hesk_dbEscape($replyto)." LIMIT 1";
$efile = 'new_reply_by_staff.txt';
$esubject = $hesklang['new_reply_staff'];
}
hesk_dbQuery($sql);
/* Update number of replies in the users table */
$sql = "UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` SET `replies`=`replies`+1 WHERE `id`=".hesk_dbEscape($_SESSION['id'])." LIMIT 1";
hesk_dbQuery($sql);
/*** Send "New reply added" e-mail ***/
/* Get e-mail message */
$msg=file_get_contents(HESK_PATH.('language/nl/emails/'.$efile)) ;
$msg = str_replace('%%NAME%%',stripslashes($orig_name),$msg);
$msg = str_replace('%%SUBJECT%%',stripslashes($orig_subject),$msg);
$msg = str_replace('%%TRACK_ID%%',$trackingID,$msg);
$msg = str_replace('%%TRACK_URL%%',$trackingURL,$msg);
$msg = str_replace('%%SITE_TITLE%%',$hesk_settings['site_title'],$msg);
$msg = str_replace('%%SITE_URL%%',$hesk_settings['site_url'],$msg);
$msg = str_replace('%%MESSAGE%%',$message,$msg);
/* Send the e-mail */
$headers="From: $hesk_settings[noreply_mail]\n";
$headers.="Reply-to: $hesk_settings[noreply_mail]\n";
$headers.="Return-Path: $hesk_settings[webmaster_mail]\n";
@mail($orig_email,$esubject,$msg,$headers);
<-----
The only problem is the following:
$msg=file_get_contents(HESK_PATH.('language/nl/emails/'.$efile)) ;
How can i autoselect the language into the code?
I don't have a solution at the moment, but will include it in the next HESK version.
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