How to establish a flexible forum system.

xiaoxiao2021-03-06  83

Next generation community, each forum may be different, such as the score system of the technical zone and the non-technical zone may not be the same. Some forums can only be accessible to certain talents. How to establish a flexible forum system. I am initially considering the following:

Establishing a flexible forum system, you need to make the following three aspects can be convenient.

1. Forum system, such as the current 9CBS pocket system, as well as the evaluation system for next-generation communities; 2. Forum function, such as the function of voting, 3, function permission model. For example, in some forums, ordinary users can browse, another forum, ordinary users cannot be browsed. And these two forums may be exactly the same as the system and functionality.

Considering performance and simplicity, for systems and functions, we only need to set up an attribute in the configuration file, is it using this feature or system. This function and system is compiled in a plug-in DLL. If we need to add a new function, just add this function code, and the code is called according to whether it is called the parameter, call this function code. There is no need to modify elsewhere. This way should be the smallest performance loss and the simplest way.

For permissions models, we can consider introducing the concept of user groups, and any page is only able to implement a major function according to parameters. This feature can only be a user of some user groups to complete, and then we define a specific user belonging to a group. If it belongs to this group, there is permission, otherwise there is no. A user can belong to multiple groups.

More specific, later, you can draw a few Visio maps yourself to understand this technology model.

转载请注明原文地址:https://www.9cbs.com/read-93336.html

New Post(0)