Finally, my enthusiasm for writing forum code has returned! I’m even happier because I can see how quickly the next necessary elements are created. If I manage to keep up the pace I’ll make the code public on github next month! What have you achieved in this short time in my Forum & Discussion Board Script?
1) I created a simple class that allows communication with the forum API. This will make it possible to create a frontend in any framework.
2) I upgraded the backend to Symfony 5.4 without any problems. From now on OneBB will use only LTS version.
3) Frontend was split into two applications: User-Front and Admin-Front. This solution also allows you to create your own URL to the admin panel. This will have an impact on security.
4) The basic modules of the front end are now ready:
- Home page,
- Category page,
- Table page,
- thread page,
Forum script in a subdirectory – here the main problem was configuring the VUE router properly. In theory, JS has no way of retrieving information about the directory the script is in because it runs locally on the client browser. I came up with an idea that I can pass such information using a variable in index.html, maybe it’s not an elegant solution but it works very well.
Access to administration panel – not every user should have access to the panel, now I solved it by using additional variable saved in database. It is returned along with the token and saved on the frontend. I have also considered retrieving data on the scop, but it needs rebuilding.
New skin – yes OneBB will be using a new skin, it is much simpler than the previous one, however it was built in a more modern way and I think it will work better. Additionally, it has been designed specifically for mobile devices, so that using the forum is easy and pleasant.
Currently I am strongly focusing on polishing the front end. I hope that the basic functionalities will be ready next week. This will allow me to start working on the administration panel. Unfortunately, before I do that I have to rebuild all the accesses to the database. Initially I created three groups. From my perspective it does not seem to be a good solution. I want to change the accesses so that each entity in the database has its own four accesses: read, edit, add, delete. This will allow for more dynamic permission management for administrators.
Stay tuned, more news about forum & discussion board script soon 🙂