############################################################## ## MOD Title]http://www.phpbb.com/mods/[/url] for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: [url=http://www.phpbb.com/mods/]http://www.phpbb.com/mods/[/url] ############################################################## ## Author Notes: You must have MySQL ############################################################## ## MOD History: Add on that add the stripslashes in the reading table ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ SQL ]------------------------------------------ # CREATE TABLE phpbb_note ( id int(8) not null, text text); INSERT INTO phpbb_note (id,text) VALUES ('1','Text'); # # #-----[ OPEN ]------------------------------------------ # templates/subSilver/admin/index_body.tpl # #-----[ FIND ]------------------------------------------ # </table> <br> # #-----[ BEFORE ADD ]------------------------------------------ # </table> <h1>NOTE IT!</h1> <table> <tr> <td> <form> <textarea>{U_NOTEIT}</textarea> <input> </form> </td> </tr> # #-----[ OPEN ]------------------------------------------ # admin/index.php # #-----[ FIND ]------------------------------------------ # } elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' ) { # #-----[ AFTER ADD ]------------------------------------------ # // Begin of Note It if(isset($_POST['post'])){ $tnote = addslashes($_POST['noteme']); $query = mysql_query("UPDATE phpbb_note SET text = '" . addslashes($_POST['noteme']) . "' WHERE id = 1"); } $sql = mysql_query("SELECT text FROM phpbb_note"); if(!$sql) { echo mysql_error(); }; $note = mysql_fetch_array($sql); // End of Note It # #-----[ FIND ]------------------------------------------ # "L_GZIP_COMPRESSION" => $lang['Gzip_compression'], # #-----[ AFTER ADD ]------------------------------------------ # "U_NOTEIT" => $note['text'] # #-----[ SEARCH ]--------------------------------------------- # $template->pparse("body"); include('./page_footer_admin.'.$phpEx); } else { // // Generate frameset # #-----[ BEFORE ADD ]------------------------------------------ # // Thanks again for the developpers of this MOD // Begin Add On by Nellsy for the Notes $template->assign_vars(array( "U_NOTEPAD" => stripslashes($note['text'])) ); // End Add On by Nellsy for the Notes # # # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM