Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php on line 560

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/auth.php on line 495

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/actions.php on line 210
plugin_development - TextStorm Wiki

The Wiki is still in development, please bare with us while we add and update content.

This is an old revision of the document!



Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/sfoyston/public_html/TextStorm/Wiki/inc/parser/handler.php on line 1458

Warning: preg_match(): Compilation failed: invalid range in character class at offset 3093 in /home/sfoyston/public_html/TextStorm/Wiki/inc/parser/lexer.php on line 118
A PCRE internal error occured. This might be caused by a faulty plugin

====== TextStorm Plugin Development ====== ===== Plugin Structure ===== 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: <?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!!! 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(); function **YourFunctionName**($db, $user) { //This simple block below means users can modify your plugin, rather than using a specific term such as "Pirate" //You can use $subtitle1 instead so the user can change it to what they would like in the Plugin Administration $pluginused = $_GET["page"]; $getcustinfo = $db->query("SELECT * FROM menu WHERE pagename = '$pluginused'"); foreach($getcustinfo as $row) { $pagetitle = $row["ptitle"]; $subtitle1 = $row["subtitle1"]; $subtitle2 = $row["subtitle2"]; $custatt1 = $row["custatt1"]; $custatt2 = $row["custatt2"]; } } ?>


QR Code
QR Code plugin_development (generated for current page)