Mambo whole website system is an intelligent website building system suitable for Chinese people, which is improved and developed on the basis of Mambo global version. It is jointly enhanced and developed by Mambo China and Mambo Resource. It is the inheritance and development of Mambo Chinese culture! The Mambo entire site system is free software and follows the GNU/GPL open source license agreement.
Mambo whole site system is the Chinese branch of Mambo, and its English code is Mambors to distinguish the English version of Mambo. In the future, Mambo China will take two routes to meet everyone's choices. One is the Mambo global version, which is mainly Chinese Mambo English version, maintaining the original taste of Mambo; the other is the Mambo entire site system, which is independently developed and maintained by the local team. , make a large number of enhancements to the core of Mambo, optimize system performance, improve operating efficiency, and meet the usage habits of domestic users in a timely manner.
Mambo whole site system 5.5.0 eliminates some bugs based on 5.4.0, makes many function enhancements, and deletes three useless and confusing functions. The main manifestations are:
* Cancel the three functions of background text messages, recycle bin, and take out/put back. These three functions are of little use except for the inconvenience of use.
* Enhanced SEF static URL function, static URL with directory hierarchy, supporting Chinese and English paths, intuitive and easy to understand, and easier to be included by search engines. Implemented enhanced SEF static linking of common components of Mambo core.
* Optimize database processing and reduce the number of SQL queries. The number of SQL queries loaded on the homepage is reduced from the original 35 to 22, and the efficiency is increased by more than 30%. The home page opens very quickly, and with the use of SEF simulated static URLs, it can be comparable to static pages.
* Can run in MySQL5 strict mode environment, and the newly installed system fully supports MySQL5.
* There are fewer bugs and the system runs more stable and smoothly.
...
Here are the details:
1. Fix bugs
1. After integrating discuz, when the main website uses the top-level domain name and the forum uses the second-level domain name, when clicking registration on the forum, the correct registration link is not redirected. Now resolved.
2. When querying, the query results are displayed on the homepage, and the modules on the homepage are displayed at the same time. When querying other versions, the query results are displayed on a new page and other modules are not displayed. A similar situation also occurred when submitting or editing articles at the front desk, and has now been resolved.
3. Solve the date problem when modifying posts in Mambo 5.4.0. I recently installed mambo 5.4 and found during use:
After editing the post, the posting date was changed to 2004. I don’t know how to change it back?
4. Solve the problem of incorrect image path when using ports other than port 80:
I used port 8080 on this machine and everything worked fine in the early stage. But change the configuration a little bit. All pictures cannot be displayed, and as shown, the connection addresses of all pictures are wrong.
, one more 8080
2. Enhanced functions
1. Optimize database processing and reduce the number of SQL queries. The number of SQL queries loaded on the homepage is reduced from the original 35 to 22. The home page opens very quickly, and with the use of SEF simulated static URLs, it can be comparable to static pages.
2. Rewrite the encoding conversion function mos_convert_encoding. The parameters are consistent with mb_convert_encoding. First determine whether the mb_convert_encoding and iconv functions exist before using them. If they do not exist, return the original value. In this way, as long as PHP supports mb_string or iconv, it can be used to improve compatibility. The original only uses mb_string.
3. Enhanced SEF static URL function, static URL with directory hierarchy, supporting Chinese and English paths, intuitive and easy to understand, and easier to be included by search engines.
1) Implemented enhanced SEF static links for common components of Mambo core, including content, home page, website link com_weblink, contact person com_contact, news broadcast com_newsfeeds and other components.
Each component can define its own static link through its own sef.php file. Those components that do not have a sef.php file will use the system's default static link processing. Developers are welcome to refer to sef.php of Mambo core components to create enhanced SEF static links for third-party components.
2) The path can be defined in the background: the menu table mos_menu adds the sefpath field, which is used to customize the SEF path of the menu item; the SEF path of the content and components is implemented by setting the unit name and category name.
4. Improve the pathway generation method and add global variables $curPathway and $pathwaySeperator to improve the speed.
5. Modify the content and use the category title instead of the original category name when creating the category drop-down list.
6. Modify the ComponentCategory function to use the category title instead of the original category name when creating a category drop-down list.
Affected components that use Mambo classification: com_newsfeeds, com_contact, com_weblinks, etc.
7. Improve the contact component
1) When categorizing contacts and creating menus, com_contact_details is used, change it to com_contact
2) Change the page title to: Menu item - Category title
3) Delete the parameter other_cat_section
4) The contact parameter vcard defaults to 0, and vcard is not needed in China.
8. Improve the news broadcast component
1) Change the page title to: Menu item - Category title
2) Delete the parameter other_cat_section
9. Improve the website link component com_weblinks, change the page title to: menu item - category title
10. Improve the search component, change the page title to: menu item
11. Improve the help system. When you click Help in the background, you will no longer be unable to find the help file, but the help information is still the old version in English.
Now that the Mambo system has been perfected, you can start writing Chinese help manuals, or collaborate on writing manuals in the wiki knowledge base.
12. Improve the database table structure to enable running in MySQL5 strict mode environment according to the restrictions of mysql5.0 strict mode (STRICT_TRANS_TABLES):
Inserting null values into not null fields is not supported. Inserting values into self-increasing fields is not supported. Null values can be inserted. Text fields have default values.
Make the following improvements to the database structure:
1) Set non-null default values for all not null fields. The default value for strings is 0, and the default value for dates is 0000-00-00 00:00:00.
2) Modify line 212 in the administratorcomponentscom_installercomponentcomponent.class.php file
3) Remove the default value of the text field
4) Standardization improvement: Change the title field to varchar(255), and change the null field with default value to not null field
At this point, Mambo's entire site system fully supports MySQL5. Due to the rush of time, there may be undiscovered bugs, please go to the forum to correct them.
In addition, only the newly installed Mambo entire site system 5.5.0 fully supports MySQL5. Since there are many changes to the table structure, they are not implemented in the upgrade program. Therefore, upgrading from a lower version to Mambo entire site system 5.5.0 still requires Cannot run in MySQL5 strict mode environment.
3. Elimination function
1. Cancel background text messages (most administrators use QQ and MSN to communicate with each other, no one uses this function, it is redundant)
Delete the administrator/components/com_messages directory
Delete components/com_messages directory
Edit administrator/modules/mod_fullmenu.php and delete the "SMS" menu item
Delete the administrator/modules/mod_unread.php module file
Edit components/com_content/content.php and delete the statement that submits a new article and sends a short message to the administrator.
Delete the installation file mambo_english.sql
Table mos_messages, mos_messages_cfg
INSERT INTO `mos_modules` VALUES (23, Unread Messages , , 1, header , 0, 0000-00-00 00:00:00 , 1, mod_unread , 0, 99, 1, , 1, 1);
Delete the tables mos_messages, mos_messages_cfg in the installation file drop_table.sql
Delete the relevant statements of the com_messages component in the language file
2. There is little need to cancel the recycle bin. Just unpublish the content you don’t want to display, and delete the content you don’t want. Put it in the recycle bin and you won't be able to remember it for a long time. You can just delete it directly. If you are worried about accidentally deleting it, just do frequent database backups. If you delete it by mistake, you can restore it immediately.
Delete the administrator/components/com_trash directory
Modify administrator/modules/mod_fullmenu.php and delete the "Recycle Bin" menu item
Modify administrator/modules/mod_quickicon.php and delete the "Recycle Bin" icon
Modify administrator/components/com_content/admin.content.php and toolbar.content.html.php
Modify administrator/components/com_typedcontent/admin.typedcontent.php and toolbar.typedcontent.html.php
Modify administrator/components/com_menus/admin.menus.php and toolbar.menus.html.php
Modify administrator/components/com_menumanager/admin.menumanager.php and admin.menumanager.html.php
Modify administrator/includes/menubar.html.php
Modify includes/mambo.php, gacl.class.php
Delete the relevant statements of the com_trash component in the language file
3. Cancel the take-out/replace function (this function is the most confusing to novices. Apart from causing inconvenience, it is of little use)
It involves 13 tables and many files. We will temporarily cancel the function without changing the table structure or deleting files. We will wait for a version to be widely used and test it. If there are no problems, we will delete it completely.
Modify the function CheckedOutProcessing in includes/mambo.php
Modify the function checkout of includes/database.php and do nothing.
Modify administrator/modules/mod_fullmenu.php and delete the "System" and "Replace All" menu items
Expand