Posted by: Jack on: May 4, 2009
The Twivo Forum has been opened to the public after only being in development for 2-3 days, yup I coded it fast didn’t I.
I was able to create the forum fast because I use the best coding tips, and the best tip would be: Start simple, which is what I did, I created what was needed first and will be expanding on that in the next few days.
The code behind the forum is simple but powerful, the forum permissions inherit from “defaults” for each user group unless there are specific permissions for the forums. Which saves space in the database.
The main forum file is under 100 lines of code, which displays the forum index, topic list, view topic, new topic and quick reply. But how with so little code? I did what I always do, I create a class file that contains all the functions needed, such as Forum::getforums(), Forum::createtopic(), you get the idea. This file has over 600 lines of code and is only loaded when needed.
In the next few days I will be adding more features to the forum such as quoting other users, an WYSIWYG editor type thing for the BBCode features and some other things that every forum needs.
Just to some possible questions that might be asked, I’m unsure if I will be releasing the forum technology to the public at the moment, unless of course your willing to pay for it.
Recent Comments