Plugin Manager 1.0
Developed by:
simpilot - David Clark
Developed using phpVMS ver 2.1.934-164
Released under the following license:
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
Features
Creates admin interface for uploading, installing, un-installing, and deleting phpVMS Plugin’s.
Installation
1 - Download the zip package
2 - Unzip the package and upload all the contents of the admin folder to the admin folder of your site.
3 - Goto your admin panel and there will be a link for the Plugin Manager under Addon’s.
Code hosted on Github - Link In Signature.
Note: As of 3/4/2012 - AirMail 3.0 and PopUpNews on Github are the only compatiable modules for the plugin manager. I am updating all the code this week for my modules to be usable within the plugin manager.
Plugin Structure for developers
config.txt
A plugin must have a config.txt file with the basic structure from below;
plugin=Your Plugin Name
author=Your Name
email=Your Email
version=1.0
published=3/1/2012
license=Your License Type
link=Link To Your Site
sql file
Any sql database file must be included in the root of the plugin folder.
readme file
A readme.txt file can be structured something similar to below and is placed in the root of the folder.
AirMail 3.0
phpVMS module to create a messaging system your phpVMS based virtual airline.
Released under the following license:
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
A visible link to http://www.simpilotgroup.com must be provided on any site utilizing this script for the license to be valid.
Developed by:
simpilot - David Clark
Developed on:
phpVMS v2.1.934-158
php 5.3.4
mysql 5.0.7
apache 2.2.17
This system is not compatible with any earlier versions of AirMail
New Features:
-Delete All function in inbox and all message folders
-Individual pilot setting to have email sent to pilot when new message is received
-Threaded messages
Install Using Simpilotgroup Plugin Manager
-Download the package
-Upload the package to your site using the plugin manager
-Use the auto-install from the plugin manager
Install Manually:
-Download the package.
-Unzip the package and place the files as structured in your root phpVMS install.
-Use the airmail.sql file to create the tables needed in your sql database using phpmyadmin or similar.
Options:
To Use the “You Have Mail” function place the following code where you would like the notice to appear, it will only appear if the pilot is logged in.
<?php MainController::Run(‘Mail’, ‘checkmail’); ?>
-Create a link on your site for your pilots to access their AIRMail
<a href=“<?php echo url(‘/Mail’); ?>”>AIRMail</a>
phpVMS files
All the module files for the plugin must be in a file tree just as the system is structured
If you have assets that need to be used by the module - ie images, js files, etc.. create an assets folder within your module folder. (an example is included in the detail below)
an example:
My_New_module
-my_new_module.sql
-readme.txt
-config.txt
-license.txt
-core
–common
----My_New_ModuleData.class.php
–modules
----My_New_Module
------assets
--------my_module.js
--------my_module.png
------My_New_Module.php
–templates
----my_modules_templates
------index.tpl
------example.tpl
zip this structure into one one folder ie - My_new_module. Be sure not to create a folder within a folder.