MyBB Community Forums

Full Version: 2.0 Module System
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This has already been confirmed as a feature, but there is no thread about it in the Planned Features section.


There has been some heavy discussion on this topic in the MyBB Discord, and I'd like to bring some of the more solid points and issues we've found into the forum for some discussion.

Some of the things we'd like to see added/discussed are:

 - Modules shouldn't conflict
     These modules should be efficient, and this means finding a solution for things like modules that share the same queries, or load the same third party libraries (Think jQuery or Google Maps). We have tossed around the idea of MyBB defining these libraries themselves, so duplicate definitions can be removed. For example, a module could call {{ import('google-maps') }}. Not entirely sure on the best way this should be handled, so any discussion around it would be great.

 - Modules should be location agnostic
     If they are to be modules, it shouldn't matter where one is placed, visually or functionally. We'll need some sort of container query for responsive design so they look good both in a sidebar, and as a full page-width module. The information they are populated with should be included with the module, whether it's a DB query or API call.

Here is an example of a module that could be both a small block, or a full-page block, and why some sort of container query will make life easier altogether for these:

Half-width:
[Image: Xg9P1OK.png]

Full-width:
[Image: 6cQcMhm.png]

We also should get together a list of what modules should be included with MyBB by default, if you have any suggestions please post them here.

Current List:

- Visitor graph
- Awaiting approval for threads/posts/users
- Trending addons pulled from MyBB site
- Quick announcement
- Latest MyBB news
- Recent admin actions
- Notes block (Markdown or BBCode supported)
- Recent threads block