PHP CODE EXAMPLE
This code will load the VocalEyes Widget.
This is meant as an example of how the code maybe used to embed the VocalEyes Widget to a page on a CMS.
The php code maybe downloaded here: phpcode.zip
1. Download phpcode.zip and unzip.
2. If Installing Widget to CMS install php plugins to allow your CMS page to parse php to the browser.
3. Copy and paste the code to your page editor.
4. Set up variable $username according to your system
$username = $USER->username;
5. Set up variable $widgetcode by replacing WXXXX with your VocalEyes Widget Code.
In order to control access to the correct VocalEyes Group you must control user access permission to the page.
i.e. Only Staff should have access to the page where the VocalEyes Widget Code for the Staff Group in present.