Important alert: (current site time 7/15/2013 11:40:12 PM EDT)
 

winzip icon

ASP Forums

Email
Submitted on: 5/18/2004 5:35:26 AM
By: Wayne Smith 
Level: Beginner
User Rating: By 16 Users
Compatibility: ASP (Active Server Pages), HTML
Views: 33227
 
     A message forum system, allows accounts to be created, change user status to moderator, create/edit/delete forums, moderator only forums. Add/edit/delete posts. Delete/lock topics. View the top 10 posters. This code will work from any directory on your webserver, no DNS to change. Sorry about the lack of code comments! If you wish to test it, use the username: admin and the password admin

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
' for :ASP Forums
'**************************************
If you wish to use my code, please leave the footer at the bottom of the forum pages.
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.

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 Beginner 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
5/19/2004 3:34:09 AM

This is one of the few pieces of code I've tried which has installed faultlessly on the first try! Well done. A very professional application which does not deserve to be in the 'Beginner' category. Quite polished in many respects - but the registration form could be smartened up a bit. Well done!

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

 
5/19/2004 7:34:40 AMDeepak Kumar Shaw

interface is very nice
(If this comment was disrespectful, please report it.)

 
5/20/2004 3:06:45 PM

i get the following error when trying to add a topic;

Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/asp--ASP_Forums/aspforum/addtopic.asp, line 23

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

 
5/24/2004 6:37:31 AMWayne Smith

What web server are you using? I have
been using IIS5 and its working great
with that.
(If this comment was disrespectful, please report it.)

 
5/25/2004 12:28:58 PM

hi wayne,

i'm using IIS5.1 as well.
(If this comment was disrespectful, please report it.)

 
5/25/2004 12:31:56 PM

sorry wayne,

i should've made reference...i'm using IIS5(.1) as well but am still receiving the error i posted previously.
(If this comment was disrespectful, please report it.)

 
5/26/2004 4:24:50 AMWayne Smith

What happens when you try to add a message to a topic that already exists? Do you get a similar error? Just trying to track down if its specific to that page or not.
(If this comment was disrespectful, please report it.)

 
5/26/2004 4:18:56 PMmatt

hi wayne,

yeah, i receive basically the same error pinpointing the following line of code: /asp--ASP_Forums/aspforum/addmsg.asp, line 17

any ideas?

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

 
5/27/2004 7:52:46 AMWayne Smith

Thanks for reporting the error to me Matt, I just don't know why it is causing an error on your system as I can't seem to replicate the problem! Its something to do with the way it opens the database to write information into it.

I have tried it on several systems and it works on all of them (3 WinXP Pro systems and Win2000 Server). Sorry I can't provide more help.
(If this comment was disrespectful, please report it.)

 
6/6/2004 7:23:05 PM

Hello,
I can view everything in the database
but as soon as I try to modify anything
I get the followin error:

Error Type:
Microsoft JET Database Engine (0x80040E21)
Cannot update. Database or object is read-only.
/asp_forum/deltopic.asp, line 8

This was generated after trying to delete a message.I'm running it on my
Win2000 machine running IIS.

Thanks for your time !

Pete


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

 
6/6/2004 8:44:04 PMWayne Smith

Ah ha!!! I think I MAY know what is causing this error now, try changing the permissions on the .mdb file. I've had that error before and changing the permissions fixed it. Give Everyone full access rights to the file and see if that corrects things.
(If this comment was disrespectful, please report it.)

 
6/7/2004 1:16:07 PM

LOL....I can't believe I overlooked
that..Can you say too busy ???
Thanks again for your excellent forum
program and fast response.
(If this comment was disrespectful, please report it.)

 
6/7/2004 10:53:24 PM

May I know why I can't add a new user. When I press the register button, it show a page that show can't display message. Anyone can help me ?
(If this comment was disrespectful, please report it.)

 
7/19/2004 7:04:49 PM

If anyone is getting "Database or bject is read-only."
Try to check file permition IUSR_Server User.. it may not have write permition to the DB..
(If this comment was disrespectful, please report it.)

 
9/1/2004 5:31:34 PM

i can't add a new register, when i hit the reg button it gives me a blank page, with a http 500 internal server error can anyone help me plz
(If this comment was disrespectful, please report it.)

 
9/17/2004 10:24:44 AM

When login as admin I only get the option to add a forum not delete or any other options.
(If this comment was disrespectful, please report it.)

 
9/24/2004 10:27:05 PMTimothy E. Mertz

i get this error:

Microsoft JET Database Engine error '80040e14'

i duno whats wrong, im using IIS 5.1 w/ winxp.
(If this comment was disrespectful, please report it.)

 
10/5/2004 4:29:13 AMWayne Smith

I just updated the registration code so it works properly now! As for the delete options, they are on the right once logged in as admin.
(If this comment was disrespectful, please report it.)

 
10/7/2004 9:00:19 PM

excellent code. Works straight when I load it onto my webserver - no editing needed. Well done on a first class code!
(If this comment was disrespectful, please report it.)

 
2/24/2005 2:35:29 AM

I'm quite interested in your program... can you sent to me more details about the documentation of your development process. E-mail: eg564@hotmail.com. Documentation samples include : ERD Diagrams, database design, system flowchart and etc. Thank you very much...
(If this comment was disrespectful, please report it.)

 
2/28/2005 2:46:56 AM

I encountered this erro when i try to view the message in a forum:

Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/Forumasp/message.asp, line 189
<%Response.Write " | href=delmsg.asp?TopicID=" & rsMsgs("FID")& ")&")&")&")&")&")&"&MsgID=" & rsMsgs("FMsgID") & ">Delete message

i remove the a tag here as tag are not allowed to show in this msg but it actually got when i run the forum.

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

 
3/15/2005 6:10:14 AM

The first "noerror" forum.asp "I tried"
Good job Thnx.
(If this comment was disrespectful, please report it.)

 
9/25/2005 12:42:31 PMnick

THIS IS SUPERB CODEING! thanks very much i love it!
(If this comment was disrespectful, please report it.)

 
9/29/2005 7:33:48 AMSAnderson

I have copied this into my interdev project and tested it. Looks very good and all works perfectly until I try to do something which would update the database, when I get this "read only" error. I have checked that the web application has read/write permission and made sure that IUSR_xxx has full control of the 'messages.mdb' file neither of which has made any difference.

Any help appreciated.

Thanks in advance

sanderson[at]alden.co.uk
(If this comment was disrespectful, please report it.)

 
9/29/2005 7:34:52 AMSAnderson

I have copied this into my interdev project and tested it. Looks very good and all works perfectly until I try to do something which would update the database, when I get the read only error. I have checked that the web application has read and write permissions. Also made sure that IUSR_xxx has full control of the messages.mdb file neither of which has made any difference.

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

 
9/29/2005 7:35:00 AMSAnderson

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

 
3/29/2006 9:59:14 AMWayne Smith

Why would someone want my ERDs, flowcharts and database design etc for this?!

SAnderson, have you also made sure that the folder in which the forum resides has the permissions set to allow write access? Sorry for the late reply, I haven't be on this site for quite a while.
(If this comment was disrespectful, please report it.)

 
8/28/2006 10:55:20 PMRoby

good work, as for the mdb file just set it that every one has write access, and worked fine for me, but going to move it into my sql server soon.
(If this comment was disrespectful, please report it.)

 
8/31/2006 10:44:01 AMRoby

Hi Wayen, have now spent some time going over your project, witch must have taken you a long time congrats on the good work.

but would like to point out a few problems with it.

1) most pages have lots of nesting errors in the html with tags closed in the wrong order and the table tag is normally closed to many times and sometimes the TD tag as well

I spent along time going over the pages fixing this

2) there is a security risk on the admin system you are not checking if the user has the right to do it before carrying it out, so if someone new the admin page names etc they could add new forums etc with out the right to do so.

3) when viewing the list of users the admins should also be able to edit there profile I also fixed this

4)there is no delete user section that I have seen anyway

p.s if you want a copy of the fixes I have made just let me know
(If this comment was disrespectful, please report it.)

 
9/27/2006 12:09:11 PMWayne Smith

Roby,

Thanks for pointing out the errors in my code :) I know there are many tweaks that could be applied to make it more efficient too.

This was my early code that I produced several years ago now, when I was still learning.

Thanks for the offer of the fixes, but I no longer use it as it was only coding practice for me :)
(If this comment was disrespectful, please report it.)

 
11/2/2006 2:03:04 PMshivendu

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

 
11/16/2006 8:42:31 PM L Antany Vasanth

thanks,

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

 
1/22/2007 11:54:36 AMWacko

this is a great forum, wish i had the time to create my own, im running on a time-limited schedule for the site im designing, so this wonderful forum will be very hlepful, i WILL be promoting this coder's own site within the site im designing, well done mate 5/5
(If this comment was disrespectful, please report it.)

 
5/8/2007 3:41:32 PMSamer

Hi Wayne, First i wnat to thank you for this code it was very useful for me and i would ask you if you can put a code about how to creat a search engine in the website. And THANKS again
(If this comment was disrespectful, please report it.)

 
7/11/2007 12:31:00 AMlydz

can i change this code using aspx.net,pls assist me,how to use this forum using aspx.net
(If this comment was disrespectful, please report it.)

 
11/11/2007 5:42:20 AMDinelli

this code is absolutely brilliant.
just wanted a simple forum for my friends, and this is definitely the best sourcecode. never commented on a code submission before, but have been moved to doing so after seeing this. great work.
(If this comment was disrespectful, please report it.)

 
12/5/2007 9:00:33 AMnaresh

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

 
3/3/2008 4:13:52 PMRicky

This is CrAzY!
(If this comment was disrespectful, please report it.)

 
5/28/2008 6:35:05 PMPaul young

looks great well done but i can not get it to work

getting HTTP 500.100 - Internal Server Error - ASP error
Apache

Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'opendb.asp' was not found.

INDEX.ASP, line 1



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

 
2/7/2009 11:24:45 AMjames

can i get the comments in your codes? im usging macromedia dreamweaver. tnx
(If this comment was disrespectful, please report it.)

 
10/3/2010 7:07:18 PMPSC - Member (Cyber Hack)

Anyone know how to make it sort the data to shop the most recent at the top at all times.. I can't get it to sort.
(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.