Preventing People From Entering Multiple Replies Before Resp

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
SupportCenter
Posts: 65
Joined: Sat Aug 15, 2009 9:38 pm

Preventing People From Entering Multiple Replies Before Resp

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

Re: Preventing People From Entering Multiple Replies Before

Post 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.
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
SupportCenter
Posts: 65
Joined: Sat Aug 15, 2009 9:38 pm

Re: Preventing People From Entering Multiple Replies Before

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

Re: Preventing People From Entering Multiple Replies Before

Post by Klemen »

What version of Hesk are you using?
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
SupportCenter
Posts: 65
Joined: Sat Aug 15, 2009 9:38 pm

Re: Preventing People From Entering Multiple Replies Before

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

Re: Preventing People From Entering Multiple Replies Before

Post 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
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
SupportCenter
Posts: 65
Joined: Sat Aug 15, 2009 9:38 pm

Re: Preventing People From Entering Multiple Replies Before

Post by SupportCenter »

The code doesnt work I was able to reply 4 times in a row just after opening a ticket.
SupportCenter
Posts: 65
Joined: Sat Aug 15, 2009 9:38 pm

Re: Preventing People From Entering Multiple Replies Before

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