emilg1984 Posted March 27, 2014 Share Posted March 27, 2014 I was wondering if there is an example from Larry's other books that explains how to create a regular forum (like the ones here) instead of the forum with the languages and words in chapter 17. Link to comment Share on other sites More sharing options...
HartleySan Posted March 27, 2014 Share Posted March 27, 2014 Not that I know of. However, the concepts in the book should be sufficient for building your own forum. Is there any step in particular you're stuck on? Link to comment Share on other sites More sharing options...
emilg1984 Posted March 27, 2014 Author Share Posted March 27, 2014 Too bad... I'm stuck at understanding how to modify the example to regular forums. I know I should drop the 'words' table, but where do I go from there? Do I just change the drop-down menu of the languages to a list of forums' names and then modify the code? It seems quite complex. Link to comment Share on other sites More sharing options...
HartleySan Posted March 27, 2014 Share Posted March 27, 2014 Well, it depends on what type of forum you want to create and also what you want the interface to look like. In general though, I would think that you'd have a table for the boards, a table of threads, a table of messages, and a table of users. From there, you'd likely need some sort of intermediary table that keeps track of the board, thread, message number and user for each message that's posted. That all make sense? Link to comment Share on other sites More sharing options...
emilg1984 Posted March 28, 2014 Author Share Posted March 28, 2014 Sort of... Does this ERD make sense? Link to comment Share on other sites More sharing options...
HartleySan Posted March 28, 2014 Share Posted March 28, 2014 Yes, it does. I'm assuming that a thread is the start of a series of messages, but threads aren't messages themselves, right? Basically, when a user starts a new topic, a thread is created, yes? Link to comment Share on other sites More sharing options...
emilg1984 Posted March 29, 2014 Author Share Posted March 29, 2014 Yes, a thread is created when a user creates a new topic. And no, the threads aren't messages. Thanks for your help! Much appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts