We use Helpscout to provide in-site documentation and an entry into our ticketing system. We use the code below to add the Helpscout beacon when users are logged in and have permission to access the admin navbar.
The beacon is hidden by default, but there is a line of jQuery javascript that opens the beacon when a user clicks on a specific link in the navbar. The beacon also collects the user's information so if they submit the form, the user information is in the ticket.
function cu_helpscout_preprocess_page(&$vars) {
if (user_access('access navbar')) {
We use Helpscout to provide in-site documentation and an entry into our ticketing system. We use the code below to add the Helpscout beacon when users are logged in and have permission to access the admin navbar.
The beacon is hidden by default, but there is a line of jQuery javascript that opens the beacon when a user clicks on a specific link in the navbar. The beacon also collects the user's information so if they submit the form, the user information is in the ticket.
function cu_helpscout_preprocess_page(&$vars) { if (user_access('access navbar')) {
}