Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
plugin_development [2016/12/05 21:29] textstorm |
plugin_development [2016/12/05 21:30] textstorm |
||
---|---|---|---|
Line 8: | Line 8: | ||
<code> | <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!!! | ||
INSERT INTO menu (file, activated, function, pagename, menuname, position, heading) VALUES ('plugins/blackjack.php', '1', 'BlackJack', 'BlackJack', 'BlackJack', '8', 'Financial') | INSERT INTO menu (file, activated, function, pagename, menuname, position, heading) VALUES ('plugins/blackjack.php', '1', 'BlackJack', 'BlackJack', 'BlackJack', '8', 'Financial') | ||
*/ | */ | ||
//$db = database object, $user = user class to access functions - $user->ModCoins(); | //$db = database object, $user = user class to access functions - $user->ModCoins(); | ||
- | function **YourFunctionName**($db, $user) { | + | function YourFunctionName($db, $user) { |
//This simple block below means users can modify your plugin, rather than using a specific term such as "Pirate" | //This simple block below means users can modify your plugin, rather than using a specific term such as "Pirate" |