Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
plugin_development [2016/12/05 21:31] textstorm |
plugin_development [2016/12/05 21:33] (current) textstorm |
||
---|---|---|---|
Line 4: | Line 4: | ||
If you are developing a plugin, please start with the following structure to ensure compatibility. | If you are developing a plugin, please start with the following structure to ensure compatibility. | ||
- | Create a new PHP file - YourPlugin.php - and insert the following code: | + | Download the PHP file, rename it, and put your code beneath the foreach block! Be sure to change the plugin installation SQL too! |
<file php PluginStructure.php> | <file php PluginStructure.php> | ||
- | <code> | ||
<?php | <?php | ||
/* Block used for the SQL for plugin installation !!!!!!!! IT IS IMPORTANT THE INSERT STATEMENT IS ON LINE 3 FOR THE PLUGIN INSTALLER TO WORK!!! MODIFY THE BELOW TO YOUR DEFAULT VALUES!!! | /* Block used for the SQL for plugin installation !!!!!!!! IT IS IMPORTANT THE INSERT STATEMENT IS ON LINE 3 FOR THE PLUGIN INSTALLER TO WORK!!! MODIFY THE BELOW TO YOUR DEFAULT VALUES!!! | ||
Line 28: | Line 27: | ||
} | } | ||
?> | ?> | ||
- | </code> | ||
</file> | </file> |