I’m planning on making a self-moderated site where people ca share specific information on tons of items. It will be as following:
-
If the item a site visitor is looking for isn’t available, he can create it. Registration is not needed. Other visitors would help correct his item name if it’s invalid.
-
Visitors can add information to an item that other visitors could correct.
And that’s basically it.
My question is: What do I need to learn (or use) to implement such system? any good reading resources for example? I’ve never done this before, and have no idea where to start.
A wikipedia-like system won’t work. I’m trying to code something that is extremely simple and accessible for everyone to use.
I’m using PHP with CodeIgniter framework.
Appreciate your help 🙂
Well I believe that if you know how to do the basic CRUD stuff all you need is a revision table that holds the various edits users make to the page, to display you select the revision with the highest number and provide a rollback link if for some reason the user wants to revert the page to a previous state.
Sample “article” Table Schema:
Sample UPDATE Query:
Sample SELECT Query to return the last revision: