From 1e18ecc9838fd1e932a029b75e34a0f3e5a20db3 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 8 Oct 2010 19:54:03 +0000 Subject: [PATCH] Added the ViciDial Web Dial Firefox web browser plugin, that allows right-click selection dialing of phone numbers on web pages to a logged-in ViciDial Agent session. git-svn-id: svn://192.168.202.10@1536 3d104415-ff17-0410-8863-d5cf3c621b8a --- UPGRADE | 4 + .../ViciDial_web_Dial_README.txt | 42 ++++ .../vicidial_webdial_plugin/chrome.manifest | 7 + .../chrome/content/about.xul | 19 ++ .../chrome/content/options.js | 3 + .../chrome/content/options.xul | 74 ++++++ .../chrome/content/overlay.js | 17 ++ .../chrome/content/vwd-overlay.js | 215 ++++++++++++++++++ .../chrome/content/vwd-overlay.xul | 53 +++++ .../chrome/locale/en-US/about.dtd | 4 + .../chrome/locale/en-US/options.dtd | 21 ++ .../chrome/locale/en-US/overlay.dtd | 26 +++ .../chrome/locale/en-US/overlay.properties | 7 + .../chrome/skin/connection_icon.jpg | Bin 0 -> 12469 bytes .../chrome/skin/dial_button.gif | Bin 0 -> 1347 bytes .../chrome/skin/overlay.css | 22 ++ .../chrome/skin/phone_icon.jpg | Bin 0 -> 13102 bytes .../chrome/skin/toolbar-button.png | Bin 0 -> 1806 bytes .../chrome/skin/vicidial_logo.png | Bin 0 -> 1438 bytes .../defaults/preferences/prefs.js | 6 + .../src/vicidial_webdial_plugin/install.rdf | 21 ++ .../vicidial_webdial_plugin.xpi | Bin 0 -> 30321 bytes 22 files changed, 541 insertions(+) create mode 100644 extras/firefox_plugin/ViciDial_web_Dial_README.txt create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome.manifest create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/about.xul create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/options.js create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/options.xul create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/overlay.js create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/vwd-overlay.js create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/vwd-overlay.xul create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/locale/en-US/about.dtd create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/locale/en-US/options.dtd create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/locale/en-US/overlay.dtd create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/locale/en-US/overlay.properties create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/skin/connection_icon.jpg create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/skin/dial_button.gif create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/skin/overlay.css create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/skin/phone_icon.jpg create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/skin/toolbar-button.png create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/skin/vicidial_logo.png create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/defaults/preferences/prefs.js create mode 100644 extras/firefox_plugin/src/vicidial_webdial_plugin/install.rdf create mode 100644 extras/firefox_plugin/vicidial_webdial_plugin.xpi diff --git a/UPGRADE b/UPGRADE index 8d8c9c4c..cd834612 100644 --- a/UPGRADE +++ b/UPGRADE @@ -366,6 +366,10 @@ OTHER CHANGES: 80. Added two new recording filename variable options: VENDORLEADCODE, LEADID +81. Added the ViciDial Web Dial Firefox web browser plugin, that allows right- + click selection dialing of phone numbers on web pages to a logged-in + ViciDial Agent session. See "extras/firefox_plugin" for more info. + diff --git a/extras/firefox_plugin/ViciDial_web_Dial_README.txt b/extras/firefox_plugin/ViciDial_web_Dial_README.txt new file mode 100644 index 00000000..f71e8e1c --- /dev/null +++ b/extras/firefox_plugin/ViciDial_web_Dial_README.txt @@ -0,0 +1,42 @@ +ViciDial Web Dial Firefox Plugin 2010-10-08 + +This is an XPI-type plugin for Firefox web browsers that allows you to highlight +on a phone number on a web page and right-click to dial that phone number +through an agent session in ViciDial. + +The right-click menu also allows you to login to the ViciDial agent interface. + +There is also an input form in the bottom right corner of your Firefox web +browser that you can put a phone number into and click to dial. + +This has been tested on Firefox version 3.0 and higher only. + +To install this plugin, just open the vicidial_webdial_plugin.xpi file with +Firefox and it will ask you if you want to install ViciDial Web Dial. Click OK +and then you will be prompted to restart Firefox. The plugin will not function +until you restart Firefox. + +For Configuration, you need to fill in the following fields: + +Web Connection Info: + ViciDial API URL: example- http://server/agc/api.php + (The agent API url) + ViciDial AGC URL: example- http://server/agc/vicidial.php + (The agent web interface) + +User Connection Info: (what the agent would use to login to ViciDial) + Campaign: + Phone Login: + Phone Password: + User: + Passwd: + +Your System Settings must have Agent API enabled. +Your user must have API enabled. + + +NOTE: If for any reason you want to wipe all traces of this plugin from your +system, first uninstall the plugin, then close Firefox, then erase the +associated preferences in the prefs.js file for that Firefox profile (This is +in different places depending on the version of Firefox and your Operating +System). diff --git a/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome.manifest b/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome.manifest new file mode 100644 index 00000000..760cff3a --- /dev/null +++ b/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome.manifest @@ -0,0 +1,7 @@ +content viciwebdial chrome/content/ +skin viciwebdial classic/1.0 chrome/skin/ +locale viciwebdial en-US chrome/locale/en-US/ + + +overlay chrome://browser/content/browser.xul chrome://viciwebdial/content/vwd-overlay.xul +style chrome://global/content/customizeToolbar.xul chrome://viciwebdial/skin/overlay.css diff --git a/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/about.xul b/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/about.xul new file mode 100644 index 00000000..322e68cf --- /dev/null +++ b/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/about.xul @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/options.js b/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/options.js new file mode 100644 index 00000000..f85d7061 --- /dev/null +++ b/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/options.js @@ -0,0 +1,3 @@ +function ShowWarning() { + var VWDalert=window.arguments[1]; +} \ No newline at end of file diff --git a/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/options.xul b/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/options.xul new file mode 100644 index 00000000..f3651a2b --- /dev/null +++ b/extras/firefox_plugin/src/vicidial_webdial_plugin/chrome/content/options.xul @@ -0,0 +1,74 @@ + + + + +