How to create a forum

Posted on 2006-04-27
Last Modified: 2010-04-07

I am writing a forum in c#, .net 2.0 framework.  I have all the basic functionalities done, but I

am trying to create a professional looking forum, so I have the following questions:

1) I see that some nicely done forums allow you to reply to not just the original message but any

message, and then display all the related messages together, and use indentation to separate the

1st level replies from the second level replies, etc.  Can someone show me the algorithm?  I am

sure the implementation is pretty straight forward once the algorithm is figured out.

Right now, I have two tables:





Right now I only have message that don't have a PARENT_MSG_ID as parent messages, but in a good

forum, you should be able to allow messages that are both parent to a set of messages as well as

being a child to another message.

2) I have always wondered how people can make their forums look so nice visually, can someone

give me some pointers as well? This is what I have so far:


Mike Lam                                                      
Question by:mmingfeilam1
    LVL 35

    Expert Comment

    Most people don't.  Instead they grab a pre-packaged one that allows the look to be customized.  Most are written in PHP because there are so many free PHP ones that allow the look to make it seem like a different forum, but really is running the same code.

    Note you can intstall php on your server along with .net

    Anyway as to making it look nice.  They use CSS (cascading stylesheets).

    Author Comment


    So are you saying that one can have a website consisting of both .net and php pages and they will run well together?  Is there an example of such site you can show me?  

    I have heard a lot of good things about PHP, but I stayed with .NET since I am more familiar with it.  
    LVL 35

    Expert Comment

    Sure.  They will run fine.  In fact I know sites that run just the forum in PHP and the rest of the site in another language.

    I don't know any off the top of my head (the few I knew off the top of my head were for things like games and have recently gone away as the online games have changed...)

    But it is not hard to do.  Have the main portion of the site .NET, but just the forum pages (even a separate directory if you want) be PHP.

    Author Comment

    sounds good.  a lot of my friends have asked me to switch from .net to php.  aside from the obvious pricing difference, what do you think of .net vs php in terms of developement speed, ease of maintainence, and overall performance?  

    i am a windows guys, so if I were to work with php and mysql server, it will be in a windows environment.  are there any major bugs with the windows version of the php engine?
    LVL 35

    Accepted Solution

    I use .NET not PHP.  BUt I will use thiings like this which are already programmed and ready to go like a plug in to an otherwise .NET website.

    There are no problems with PHP in a windows environemnt. that I know of.  Of course I only use it for forums code and not for the rest of my code...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
    Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
    The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following:…
    The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now