Important alert: (current site time 7/15/2013 11:56:31 PM EDT)
 

winzip icon

Discussion Forum in ASP

Email
Submitted on: 11/11/2000 8:09:29 AM
By: Manas Tungare  
Level: Intermediate
User Rating: By 36 Users
Compatibility: ASP (Active Server Pages)
Views: 52580
author picture
(About the author)
 
     Add multiple Discussion Forums to your site with this code. Users can post messages to various forums and view the message list in a threaded format (the message comes first, then all the replies, in a tree-like structure)

It provides advanced forum features such as:

  • Multiple Forums
    You need not create separate tables when you decide to add more Forums to your site. Just add a new Forum in one place!
  • Threaded Message Display
    So you can keep track of the messages and replies. Each message forms part of a hierarchical tree.
  • Complete Information on every message
    The message display includes a list of all replies to the current message, plus a link to the original message (to which this is a reply)
  • Fully Customizable
    All the customizable aspects have been isolated into one file (CONFIG.INC), so you can modify the script without fear of breaking the code.
  • Cookies to store names
    The same user need not enter his name more than once; cookies do the trick automatically.
  • No hardcoded paths
    So you don't need to fumble when you are trying to run the script for the first time. All paths are relative to the current directory, and you can modify that by changing a Constant in ONE single place.
If you're learning ASP, you can go through the well-documented code to see how records are inserted, updated and retrieved from a database.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

11/13/2000 12:00:06 PMChris Walker

Another execelent job! Please keep posting more quality code like this!
(If this comment was disrespectful, please report it.)

 
11/17/2000 9:53:37 PMSérgio Vicente

Nice code dude! Clean, simple and extremly well coded.
(If this comment was disrespectful, please report it.)

 
1/27/2001 5:22:13 AMChris H

LOVED IT! GOT A EXCELLENT VOTE FROM ME! :O)

I did end up changeing a few things (bullets for Threads and such) and alot of error handling (Vb Freak :O)

However would love some help as to how to make it ONLY display a certain amout of records per page and then CREATE the other pages (Ie page 1, page 2) If anyone can help me with this Id love the feedback!
etstech@earthlink.com
(If this comment was disrespectful, please report it.)

 
6/13/2001 7:41:42 AMJoe Dawson

Excellent example.
(If this comment was disrespectful, please report it.)

 
6/15/2001 3:32:44 PMfaTTZo

Very cool! Great code! Clean.
(If this comment was disrespectful, please report it.)

 
8/14/2001 8:26:50 AMsvend

okay code
(If this comment was disrespectful, please report it.)

 
12/18/2001 11:10:21 AMJim Sawyer

Excellent Job!!!! Keep up the good work!
(If this comment was disrespectful, please report it.)

 
6/11/2002 3:42:55 AMtrouble

This is really good.
(If this comment was disrespectful, please report it.)

 
6/26/2002 2:02:01 PMJames Heacock

Nice code, commented, complete, clean and well written.
(If this comment was disrespectful, please report it.)

 
12/12/2002 6:53:09 PM

Speechless! How can I modify the code to email everyone in the database Any time a new post is created? I'd like the email to contain the title as entered by the user and a link to the forum.

Ideas are greatly appreciated. Nice work
(If this comment was disrespectful, please report it.)

 
4/23/2003 3:08:50 AM

would have loved to see the code but the download link is not working.. is the file still uploaded?

(If this comment was disrespectful, please report it.)

 
4/25/2003 6:41:17 AM

wow!
really cool code!
i've been trying to do something like this for a long time!
there is this sql statement the makes it easier to do, but it is only available in sql server or oracle... thanks so much! five globes for the effort!
(If this comment was disrespectful, please report it.)

 
4/26/2003 1:45:01 PM

Nice message board script! But the only problem is no record paging. Any progress on record paging?? My board is now one bloated page and verrrry slow...so I am *very* very interested in paging for this. Thank you! :-)
(If this comment was disrespectful, please report it.)

 
1/29/2004 3:23:13 AM

hi there
(If this comment was disrespectful, please report it.)

 
3/4/2004 8:38:08 AM

Excellent Code Manas. You get a 5 from me for this code. Keep up the good work... and continue posting more structured code like this...
(If this comment was disrespectful, please report it.)

 
4/22/2004 2:26:05 AM

COOL Script, I want some admin controles like invite users to the communitiy ...... restrict members from society etc. etc.
(If this comment was disrespectful, please report it.)

 
12/15/2004 9:55:04 AMHathiwala Kishan

Nice work, if you can add delete messages in the forum??
(If this comment was disrespectful, please report it.)

 
1/15/2005 6:51:28 AM

Really! you are papoo.... Big hug for you. Great work.
(If this comment was disrespectful, please report it.)

 
2/5/2012 1:44:06 AMS N

How do i get the code for inserting master detail recordset?
(If this comment was disrespectful, please report it.)

 
2/18/2013 12:06:24 AMSyed Sajid Byhaqi

thanks guys //// nothng betta than this ...

(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.