XiunoBBS is a lightweight forum made in China that is small, stable, and supports high load capacity even under large amounts of data. It has only 21 tables, and the compressed source code is about 600k. It runs very fast, processing a single request in 0.01 seconds, and can run to 0.00x seconds in an environment with APC and XCache. It has very little dependence on third-party libraries. , only the front end relies on jquery.js/zepto.js. The author believes that it is like a purely hand-built Ferrari, with strong power, no trace of fat, easy deployment and maintenance, and is a very good cornerstone for secondary development.
XiunoBBS features
Exploring the interactive mode of light forums in the mobile context
1. Like. Abandoning the content filtering functions of traditional forums such as rating, essence, and highlighting, a "like" mechanism is introduced. The quality of posts, user group upgrades, theme colors, etc. are all closely related to "likes".
2. The newly written editor supports: tables, adding and deleting rows and columns, HTML5 client image thumbnails, reducing server CPU computing pressure, and supporting direct pasting of QQ screenshots.
3. Support visitors to post, reply and like.
4. Supports custom URLs, which is beneficial to SEO. The URL can be like this: http://bbs.xiuno.com/xiuno-bbs-3-official-upgrade
5. Support SMTP email sending and mailing list setting
6. Support IP restrictions: limit the number of daily IP posts, emails, and attachments uploaded
7.Mobile version
8. More are not listed one by one
PHP framework: XiunoPHP3.0
Abandoning OO, using functional encapsulation, which is conducive to HHVM compilation/opcode caching, preparing for integration with PHP7 in advance, and advocating the following principles:
1. Don’t include variables
2. Do not use eval(), the regular expression e modifier
3. Do not use autoload
4. Do not use $$var multiple variables
5. Do not use magic methods such as PHP’s advanced features __call__set__get
6. Try to use function encapsulation functions and distinguish modules through prefixes.
Front-end framework: XiunoUI
A picture-free UI library, compatible with IE8, referring to BootStrap, simplifying class naming, and eliminating useless responsive layouts. Click to see the truth.
Editor: XNEditor
It is based on zepto.js, compatible with jquery.js, only 82k, but implements common editor functions under standard browsers: bold, italics, color, font, font size, table, image upload, file upload, client abbreviation , full screen, HTML switching, previous step, next step and other functions.
Because he does not need to consider IE678, it can be implemented very gracefully and short. Students who have written editors should know that the biggest pitfall of the editor is the huge gap between IE's Range and the Range defined by w3c. If IE is not considered, the code can be streamlined a lot.
XiunoBBSv4.0.2 official version update logXiunoBBS4.0 uses Bootstrap4+JQuery3 as the front-end class library and fully supports mobile browsers; the back-end XiunoPHP4.0 supports the NoSQL method to operate various databases. This version is a huge leap.
XiunoBBS4.0 is released under the MIT license. You can freely modify, derive versions, and use it commercially without worrying about any legal risks (the copyright information of the original file should be retained after modification).
XiunoBBS front page XiunoBBS backend managementBackend path: domain name/admin
Username and password: admin (can be set during installation)
Backend page