MOD: Admin Note Pad

Ok, Iv got a small question here, I have installed this mod and it works fine, The trouble Im having is when doing a database backup it wont let me because the table is called 'note' instead of 'phpbb_note' I know how to create a new table called 'phpbb_note' and drop the other one etc etc but I need to know which other bits of code to change so that when I change the table name to phpbb_note it will know how to find it.
Heres the mod in its original form
Thanks in advance
SLY
Heres the mod in its original form
- Code: Select all
############################################################## ## 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 note (id int(8) not null,text text); INSERT INTO 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 note SET text = '" . addslashes($_POST['noteme']) . "' WHERE id = 1"); } $sql = mysql_query("SELECT text FROM 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
Thanks in advance
SLY