Status Badge System Installer Instructions
- Unzip and upload the StatusInstall folder to the root of your phpVMS installation.
- (This should be the same folder on your server that contains the /core /lib and /admin folders)
- Log into your site (You must be an administrator and logged in to run the installer)
- Go to www.yoursite.com/StatusInstall and follow the instructions.
- All files and original status badges will be created for you automatically.
- Remember to delete the StatusInstall folder from your site when done installing the system.
Status Badge System Auto Update Instructions (Cronjob)
- Create a Cronjob on your server to run the script located at core/modules/Status/updatestatus.php
This is an example of a Cronjob to update the badges every 10 minutes.
*/10 * * * * /usr/bin/php -f /home/yourdomain/public_html/core/modules/Status/updatestatus.php /dev/null 2>&1
- The paths for the script and php may vary for your server and will need to be corrected to function properly.
- To manually update your va's status badges goto www.yoursite.com/core/modules/status/updatestatus.php in your browser. There will be no screen output, but your badges will be updated to current data.
Status Badge System Image Link Instructions
- You can link to your status badge from anywhere just as you would any other image.
- All status badges are placed in the lib/signatures/status folder of your phpVMS install.
- All badges are named as - pilot callsign - status.png (ex: ABC1001status.png)
- example link: www.yoursite.com/lib/signatures/status/ABC1001status.png
- There is also a default status badge screen that shows all the status badges for the active pilots of the VA
- example link: www.yoursite.com/index.php/Status
Status Badge System Image Customization
- You can change the Online/Offline background images by replacing two files in the lib/signatures/status folder
online.png & offline.png
- The font can be changed by changing the path to the font located in core/modules/Status/updatestatus.php on line 21.
$font = '../../../lib/fonts/tahoma.ttf';
- The color of the font can be changed by changing the color RGB code located in core/modules/Status/updatestatus.php on lines 41 & 59.
$color = imagecolorallocate($status_img, 0, 45, 98);