Auto close after 3 mnths

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
mvraven
Posts: 32
Joined: Mon Nov 30, 2009 3:34 pm

Auto close after 3 mnths

Post by mvraven »

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!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You can try changing this code in ticket.php file:

Code: Select all

if ($hesk_settings['custopen'] == 1)
to something like

Code: Select all

if ($hesk_settings['custopen'] == 1 && ((time()-strtotime($ticket['dt']))/86400) < 90)
Didn't test it, but it should hide the open links from tickets older than 90 days.
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
mvraven
Posts: 32
Joined: Mon Nov 30, 2009 3:34 pm

Post by mvraven »

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!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Also change

Code: Select all

($ticket['status'] != 3 || $hesk_settings['custopen']==1)
to

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 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
mvraven
Posts: 32
Joined: Mon Nov 30, 2009 3:34 pm

Post by mvraven »

Thnx Klemen. Works fine!
Lurking
Posts: 32
Joined: Sun Nov 28, 2010 4:57 am

Re: Auto close after 3 mnths

Post by Lurking »

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
Post Reply