Page 1 of 1

Preventing People From Entering Multiple Replies Before Resp

Posted: Tue Aug 17, 2010 2:30 am
by SupportCenter
Preventing People From Entering Multiple Replies Before Responding Back.

Need to know if there's a way to prevent people from posting multiple replies to a ticket before we get a chance to reply back.

We want it to be in such a way that a person cant post more than one reply at a time. I've gotten people that keep on adding comments to the ticket, there's like 10 enteries back to back before we get to even reply back. So I want to know if there's a way if we can set it up, so that when a person opens a ticket, they cannot add another section to it until we reply back.

So its

Person - Opens First Ticket
We Reply Back
Person - Replies Back
We Reply Back

Not like :

Person - Opens First Ticket
Person - Adds comments
We reply back.
Person - Adds comments
Person - Adds comments
Person - Adds comments

We want to prevent the person from entering non sense comments to the ticket or prevent them from adding additional sections until we reply back. Thanks again.

Re: Preventing People From Entering Multiple Replies Before

Posted: Tue Aug 17, 2010 2:50 pm
by Klemen
In ticket.php try changing

Code: Select all

($ticket['locked'] != 1 && $ticket['status'] != 3)
to

Code: Select all

($ticket['locked'] != 1 && $ticket['status'] != 3 && $ticket['status'] != 1)
and see if that works for you.

Re: Preventing People From Entering Multiple Replies Before

Posted: Wed Aug 18, 2010 4:52 am
by SupportCenter
The original code you suggested is not in the ticket.php file.
When I add the code it gives us an an error in line 66.

Re: Preventing People From Entering Multiple Replies Before

Posted: Wed Aug 18, 2010 8:49 am
by Klemen
What version of Hesk are you using?

Re: Preventing People From Entering Multiple Replies Before

Posted: Thu Aug 19, 2010 6:04 am
by SupportCenter
We're using version 2.1

Somehow the new update kinda messed up our support site big time. So we went back to 2.1

Re: Preventing People From Entering Multiple Replies Before

Posted: Thu Aug 19, 2010 7:11 am
by Klemen
In 2.1 you have

Code: Select all

$ticket['status'] != 3 || $hesk_settings['custopen']==1
try

Code: Select all

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

Re: Preventing People From Entering Multiple Replies Before

Posted: Sat Aug 21, 2010 1:34 am
by SupportCenter
The code doesnt work I was able to reply 4 times in a row just after opening a ticket.

Re: Preventing People From Entering Multiple Replies Before

Posted: Sat Aug 21, 2010 1:46 am
by SupportCenter
I changed the code to this and it allowed only one reply after they opened the ticket but after the first reply they were not able to respond back until we replied back.

if ($ticket['locked'] != 1 && $ticket['status'] != 1 && $ticket['status'] != 1)

Only having one reply back after the ticket is fine it works. Thanks again. Appriciate it.