|
#1
|
|||
|
|||
|
I had already added the Age of Tickets mod and this mod piggybacks on the work that Scottro did in this thread: http://osticket.com/forums/showthread.php?t=2619 In tickets.include.php find: PHP Code:
PHP Code:
Basically, what this does is looks to see if a ticket has an age of zero minutes when the age of the ticket is calculated. If it does, it will play the sound. Keep in mind that if more than one ticket has an age of zero after the page refreshes multiple sounds will play. This is fine for my situation, but may not work for you if you have a high volume of tickets. Here is a link to the sound I use, which is only 1K. (found via google) http://buggerluggs.tripod.com/wavs/blip1.wav |
|
#2
|
|||
|
|||
|
Now if I could just get the other mod to work while keeping my "Date" field on my tickets.php.
|
|
#3
|
|||
|
|||
|
There's no reason you cant have the date field in there. I know the mod takes it out, but you should be able to add it back in without too much trouble.
|
|
#4
|
|||
|
|||
|
I tried for a while yesterday....and it kept moving my fields all around and screwing everything up..... I'm by no means a PHP expert....I've built sites with it before....but never modified someone elses code to make things work the right way....the way other people write code baffles me sometimes! :T
|
|
#5
|
|||
|
|||
|
To add the back in, you 1st have to be more concerned with the HTML that lays out the table. You are dealing with 2 different rows and have to add a set of TD tags in the same position on each row. Once you have the TD tags in the right place it is just a matter of figuring out the data lookup php, which you can probably cut and paste from the base install files.
I will take a look at it later tonight and see if I can figure out a more detailed guide to adding that date field back in. ![]() Pete Last edited by sternen; 08-03-2010 at 08:11 AM. |
|
#6
|
|||
|
|||
|
As promised, I dug back through my code to figure out how to add the opened date back into the mix. Hopefully you will find what I found. I am not sure what the instructions in the original MOD that Scottro did that adds ticket age were (or if it was his MOD that removed the date column), but my date columns were simply commented out. I took the comment tags out and the date column reappeared. The sorting function is still intact and still works.
![]() Just in case, I will paste the snippets of code that I have in hopes that you will be able to find the corresponding code in yours to work with. I apologize that I can't give line numbers as my system has been heavily modded and line numbers would probably confuse the issue more. This is all in includes/staff/tickets.inc.php For the header row, here is the date in between the ticket number and Age columns. PHP Code:
PHP Code:
I hope this all makes sense and it helps you get the date column back into your ticket system like you wanted! Now that I have it back in, I think I am going to keep it. |
|
#7
|
|||
|
|||
|
Hi
Hope I am just being thick here. I was hoping to include this mod. But fell at the first hurdle as it says: In tickets.include.php find: However I don't have a file called tickets.include.php Have I just missed something here? any help appreciated. Thanks Yogiman! |
|
#8
|
|||
|
|||
|
how to play sound for new reply ticket
|
|
#9
|
|||
|
|||
|
Hi there,
I have implemented this MOD and set it if the ticket is younger than 5 min to play a wav file, however if i go to my closed tickets and there i have some tickets usually that have been closed within five minutes and since they are closed the minutes don't change there, it happens that everytime i enter closed tickets i hear multiple wav sounds informing for new ticket at the already closed tickets. please anyone advice if its possible to exclude the wav play from closed tickets section. Thank you ***DISREGARD the message*** found the solution just changed the code to "( $diff < 5 && $status=='open') Last edited by kremori; 09-06-2012 at 05:15 AM. Reason: Found solution |
|
#10
|
|||
|
|||
|
Quote:
Thanks I appreciate you pointing this out. I might not of caught it prior to looking at implementing it. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|