Script URL:
Version of script: 2.1
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:
When a client opend his/hers ticket next standing the ticketnummer there is a link to open or close the ticket. When the helpdesk closed a ticket a client can open it again to click on that link.
Is it possible that after 3 months the open link will diappear and that it not possible is anymore to open an exicting ticket at any way? And that it will be showd on the screen that the time limit is over.
Thnx!
Auto close after 3 mnths
Moderator: mkoch227
You can try changing this code in ticket.php file: to something like
Didn't test it, but it should hide the open links from tickets older than 90 days.
Code: Select all
if ($hesk_settings['custopen'] == 1)
Code: Select all
if ($hesk_settings['custopen'] == 1 && ((time()-strtotime($ticket['dt']))/86400) < 90)
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
Thnx Klemen that works but....
They can still put a responce in the block and press the post reply button so the message will be send.
Is there also a possibility that the 'Post Reply' button will dissapear after 90 day's and that there then is a text 'Post Reply is not possible after 90 day's anymore'. ?
Thnx for now!
They can still put a responce in the block and press the post reply button so the message will be send.
Is there also a possibility that the 'Post Reply' button will dissapear after 90 day's and that there then is a text 'Post Reply is not possible after 90 day's anymore'. ?
Thnx for now!
Also change to
Code: Select all
($ticket['status'] != 3 || $hesk_settings['custopen']==1)
Code: Select all
($ticket['status'] != 3 || ($hesk_settings['custopen'] == 1 && ((time()-strtotime($ticket['dt']))/86400) < 90) )
Last edited by Klemen on Fri Feb 26, 2010 6:51 pm, edited 1 time in total.
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: Auto close after 3 mnths
Hi,
This is a fantastic idea and I will add these lines into my code.
I have a question about this subject.
- Will this apply to file attachments I have attached to tickets as well, as I do not want the attachments to be available after the ticket is closed?
UPDATE
I could not locate the line: if ($hesk_settings['custopen'] == 1) in the ticket.php file. I found this line instead: if ($hesk_settings['custopen'] != 1) in 3 other locations. The locations are: change_status.php, admin\admin_reply_ticket.php and admin\ change_status.php.
Also, I could not locate this line: ($ticket['status'] != 3 || $hesk_settings['custopen']==1) in any folder or file to block the “post reply” button?? What am I missing here?
Larry
This is a fantastic idea and I will add these lines into my code.
I have a question about this subject.
- Will this apply to file attachments I have attached to tickets as well, as I do not want the attachments to be available after the ticket is closed?
UPDATE
I could not locate the line: if ($hesk_settings['custopen'] == 1) in the ticket.php file. I found this line instead: if ($hesk_settings['custopen'] != 1) in 3 other locations. The locations are: change_status.php, admin\admin_reply_ticket.php and admin\ change_status.php.
Also, I could not locate this line: ($ticket['status'] != 3 || $hesk_settings['custopen']==1) in any folder or file to block the “post reply” button?? What am I missing here?

Larry