Dropkick JS adds a JavaScript snippet at the bottom of every page load.
We used it specifically to add a warning before somebody attempts to use the REPLY button if they were trying to contact one of our other support agents.
In this picture, a popup is added over the reply button that you can't miss.
- Add warnings/notices to parts of the UI that are specific to your company
- Prototype new features to add into FreeScout
- Quick productivity hacks
These instructions assume you installed FreeScout using the recommended process, the "one-click install" or the "interactive installation bash-script", and you are viewing this page using a macOS or Ubuntu system.
Other installations are possible, but not supported here.
-
Download the latest release of FreeScout Dropkick JS.
-
Unzip the file locally.
-
Open DropkickJSServiceProvider.php using a code editor and change between the
<<<JS
andJS
lines to remove my hack use case and add your own. -
Copy the folder into your server using SFTP.
scp -r ~/Desktop/[email protected]:/var/www/html/Modules/DropkickJS/
-
SSH into the server and update permissions on that folder.
chown -r www-data:www-data /var/www/html/Modules/DropkickJS/
-
Access your admin modules page like https://freescout.example.com/modules/list.
-
Find Dropkick JS and click ACTIVATE.
-
Purchase a license code by sending USD 10 at https://www.paypal.com/paypalme/fulldecent/10usd
Our goal is to have a very simple module to allow vast extensibility in FreeScout.
Anything that makes it simpler (removes unneded code) or more extensible for most people will be a welcome improvement.
At this point, it is a non-goal to add friendly configuration of <<<JS
or other configuration options.
If something is not working, please try these steps so we can see what's wrong.
- Update FreeScout to the latest version (even if the new version doesn't have any relevant changes, the process of updating can sometimes fix problems that would prevent freescout-sidebar-webhook from running).
- Use
chown -r
to ensure the module has the same owner/permissions as other files in your FreeScout installation. - Try to disable and reenable freescout-sidebare-webhook from your system/modules page.
- To confirm the module file is actually activated and readable you might add a line like this above the
private const MODULE_NAME
line. The code to add is:file_put_contents("/tmp/sidebartmp", "is running");
And then you can confirm it is running by seeing if that file is created when you load the page. - Next check for system logs. It will be helpful to note any warnings, errors or notices as they may instruct where the problem is coming from.
- Check your PHP version, is it a version supported by FreeScout?
After you have checked all these things, please create an issue and detail how you tried each of these steps.
- This project was inspired by Sidebar API.