This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /********************************************************************************* | |
| ** This waits for the Zendesk Schedule report call and then downloads the ** | |
| ** file your Local server for you to act on with other functions or programs ** | |
| *********************************************************************************/ | |
| $xmlDoc = new DOMDocument(); | |
| //Reads the POST from Zendesk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| </script> | |
| <script type="text/javascript" src="//asset0.zendesk.com/external/zenbox/v2.1/zenbox.js"></script> | |
| <style type="text/css" media="screen, projection"> | |
| @import url(//asset0.zendesk.com/external/zenbox/v2.1/zenbox.css); | |
| </style> | |
| <script type="text/javascript"> | |
| if (typeof(Zenbox) !== "undefined") { | |
| Zenbox.init({ | |
| dropboxID: "43", | |
| url: "http://your.zendesk.com", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="userCnt"> | |
| </div> | |
| <script type="javascript"> | |
| $j(document).ready(function() { | |
| $j.get('/people.xml', function(d) { | |
| var countopen = $j(d).find('record').parent().attr('count'); | |
| if(!countopen){countopen = 0;} | |
| $j('#userCnt').append("<p>"+countopen + " users in your help desk.<\/p>") ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="userCnt"> | |
| </div> | |
| <script type="javascript"> | |
| $j(document).ready(function() { | |
| $j.get('/people.xml', function(d) { | |
| var countopen = $j(d).find('record').parent().attr('count'); | |
| if(!countopen){countopen = 0;} | |
| $j('#userCnt').append("<p>"+countopen + " users in your help desk.<\/p>") ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(function() { | |
| jQuery(document).unbind('.zendesk.keyboard-shortcut'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| div.deflect {display: none;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (window.location.href.indexOf('satisfaction') >= 0) { | |
| $j('#top-right').hide(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Replaces the Zendesk system ticket type with a custom field. | |
| $j(document).ready(function() { | |
| //the custom field ID | |
| var customfield = "20111118"; | |
| //check to see if you are on the agent ticket page | |
| if(window.location.href.indexOf('tickets') >= 0) { | |
| //hide the custom field label and the system ticket type | |
| $j('select#ticket_fields_'+ customfield).prev().toggle(); | |
| $j('select#ticket_ticket_type_id').toggle(); |