|
From: Jon O. <jon...@us...> - 2005-04-02 22:03:30
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12059/modules/mx_kb Modified Files: db_install.php db_upgrade.php mx_install_readme.htm Log Message: final fix before release Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_kb/mx_install_readme.htm,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** mx_install_readme.htm 16 Jan 2005 01:02:41 -0000 1.9 --- mx_install_readme.htm 2 Apr 2005 22:03:20 -0000 1.10 *************** *** 219,232 **** <table> <tr> ! <td colspan="2"><p><b><font size="5">MX Module - Knowledge Base <br> ! <font size="2">v. 1.08</font></font></b></p> <p><span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Module</span></span> <br /> ! - for Mx Portal v. 2.7.5+</p> <p><strong>Author</strong><br /> Haplo<br /> <br /> <span style="font-weight: bold">Description</span> <br /> ! The MX Module is an addon product for the MX-portal.</p> <p><strong>Features</strong> <br /> Easy to use and install/uninstall module.</p> --- 219,233 ---- <table> <tr> ! <td colspan="2"><p><b><font size="5">mxBB</font><font size="5"> Module - ! Knowledge Base <br> ! <font size="2">v. 2.0.1</font></font></b></p> <p><span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Module</span></span> <br /> ! - for Mx Portal v. 2.7.5+ (with some notes, see below)</p> <p><strong>Author</strong><br /> Haplo<br /> <br /> <span style="font-weight: bold">Description</span> <br /> ! The mxBB Module is an addon product for the mxBB Portal.</p> <p><strong>Features</strong> <br /> Easy to use and install/uninstall module.</p> *************** *** 251,263 **** <p>All install notes are maintained at www.mx-system.com, <a href="http://www.mx-system.com/forum/viewforum.php?f=11">here</a>.<br> <br> ! To summarize:<br> ! If installing from scratch, use import module in the AdminCP.<br> ! If upgrading, use the upgrade option in the AdminCP<br> ! If uninstalling, use the delete feature in the AdminCP</p> ! <p>Note: If upgrading, do NOT delete module prior to upgrading, or else ! you'll lose all module data!<br /> ! <br /> <a href="#top"> Back to Top</a> <br /> ! <br /><a name="themes"> <br /> <span style="font-weight: bold">II. Additional Styles</span> <br /> --- 252,298 ---- <p>All install notes are maintained at www.mx-system.com, <a href="http://www.mx-system.com/forum/viewforum.php?f=11">here</a>.<br> <br> ! <i>To summarize:</i></p> ! <ul> ! <li> If installing from scratch, use the "install module" option in the ! AdminCP - Modules</li> ! <li> If upgrading, use the "upgrade module" option in the ! AdminCP - Modules</li> ! <li> If uninstalling, use the "delete module" feature in the AdminCP ! - Modules</li> ! </ul> <p><i>Note:</i> If upgrading, do NOT delete module prior to upgrading, or else ! you'll lose all module data!</p> ! <p><i>Note also:</i> Since this module is developed for next generation ! mxBB core, you have to patch your core 2.7.5 portal if downloaded prior ! to this module release. If using latest core this patch is already included.</p> ! <p>OPEN admin/admin_mx_module.php</p> ! <p>FIND</p> ! <table width="100%" border="1" cellpadding="2"> ! <tr> ! <td><font size="1">// <br> ! // Generate safe object identifiers for the target DB<br> ! // where this module pack is going to be imported...<br> ! // </font></td> ! </tr> ! </table> <p>BEFORE ADD</p> ! <table width="100%" border="1" cellpadding="2"> ! <tr> ! <td><font size="1">// Start - For compatibility with mxBB modules 2.x<br> ! $fcontents_temp = array();<br> ! for($i = 0; $i < count($fcontents); $i++) {<br> ! $module_data = explode($delimeter, trim($fcontents[$i]));<br> ! <br> ! if ( $module_data[0] != 'New_function' && $module_data[4] != 'endoflist' ! )<br> ! {<br> ! $fcontents_temp[] = implode($delimeter, $module_data);<br> ! }<br> ! }<br> ! $fcontents = $fcontents_temp;<br> ! // End - mxBB modules 2.x code patch</font></td> ! </tr> ! </table> <p><br /> <a href="#top"> Back to Top</a> <br /> ! <br /> ! <a name="themes"> <br /> <span style="font-weight: bold">II. Additional Styles</span> <br /> *************** *** 265,269 **** <br /> <a href="#top"> Back to Top</a> <br /> ! <br /><a name="languages"> <br /> <span style="font-weight: bold">III. Additional Languages</span> <br /> --- 300,305 ---- <br /> <a href="#top"> Back to Top</a> <br /> ! <br /> ! <a name="languages"> <br /> <span style="font-weight: bold">III. Additional Languages</span> <br /> *************** *** 273,286 **** here</a>. <br /> <br /> ! If exists, download and install in the modules/mx_modulename/language ! folder. If not, duplicate (copy and paste) any included language file, ! rename to match your language, translate using any texteditor, save and ! upload. <br /> <br /> ! <a href="#top"> Back to Top</a> </p> ! ! <p> /Mx Team</p> ! </td> ! </tr> </table> </body> --- 309,323 ---- here</a>. <br /> <br /> ! If exists, download and install in the modules/mx_modulename/language ! folder. If not, duplicate (copy and paste) any included language ! file, rename to match your language, translate using any texteditor, ! save ! and ! upload. <br /> <br /> ! <a href="#top"> Back to Top</a> </p> ! <p> /mxBB Team</p> ! </td> ! </tr> </table> </body> Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/db_install.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** db_install.php 1 Apr 2005 23:33:52 -0000 1.25 --- db_install.php 2 Apr 2005 22:03:20 -0000 1.26 *************** *** 202,208 **** --- 202,211 ---- // kb 2.0 "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('wysiwyg', '0')", + "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('wysiwyg_path', 'modules/')", + "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('allow_html', '1')", "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('allow_bbcode', '1')", "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('allow_smilies', '1')", + "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('formatting_fixup', '0')", "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('allowed_html_tags', 'b,i,u,a')", Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/db_upgrade.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** db_upgrade.php 1 Apr 2005 23:33:52 -0000 1.18 --- db_upgrade.php 2 Apr 2005 22:03:20 -0000 1.19 *************** *** 116,119 **** --- 116,120 ---- $upgrade_109 = 0; $upgrade_200 = 0; + $upgrade_201 = 0; $message = "<b>Upgrading!</b><br/><br/>"; *************** *** 183,187 **** } ! // ------------------------------------------------------------------------------------------------------ if ( $upgrade_105 == 1 ) --- 184,199 ---- } ! // validate before 2.01 ! $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "kb_config WHERE config_name = 'wysiwyg_path'" ); ! if ( $db->sql_numrows( $result ) == 0 ) ! { ! $upgrade_201 = 1; ! $message .= "<b>Upgrading to v. 2.01...ok</b><br/><br/>"; ! } ! else ! { ! $message .= "<b>Validating v. 2.01...ok</b><br/><br/>"; ! } ! // ------------------------------------------------------------------------------------------------------ if ( $upgrade_105 == 1 ) *************** *** 288,292 **** data text NOT NULL )"; ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_articles MODIFY article_author_id mediumint(8) NOT NULL "; } --- 300,309 ---- data text NOT NULL )"; ! } ! ! if ( $upgrade_201 == 1 ) ! { ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('wysiwyg_path', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('formatting_fixup', '0')"; $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_articles MODIFY article_author_id mediumint(8) NOT NULL "; } |