|
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
Welcome to the CodeProject Discussion board scriptsIntroductionThis is the first of the "projects" that inspired the original concept of the Code Project. We have provided these scripts to help developers, and we hope that developers such as yourself will help us in return by testing, submitting bug reports, suggesting improvements, and submitting extensions. We invite you to use these scripts in your own sites, but we ask that you keep the "powered by CodeProject" logo in the top left corner. We also ask, in advance, for your patience and understanding. These scripts will no doubt change a lot, so we suggest you check back regularly to see the latest developments, or subscribe to the Newsletter to receive notifications of updates. As of July 5, 2000 we are providing the source code to the ActiveX control that handles the main work of organising the messages into a semblance of order. We would have loved to have commented the code heavily, and even provide a step by step on how the code works, but we simply haven't had the time, and decided that posting as-is is better than not posting at all. If you find bugs or make improvements, please send them in. August 26, 2001 - Philip Andrew has supplied a PHP version of the forums. The BoardsThe discussion board used at CodeProject was written by Uwe Keim, and comprises an ActiveX control (written using Visual C++) and a set of ASP scripts. The ActiveX control provides low level access to the forum message database and provides functionality to ease the way in which parameters are passed from one page to another. The ActiveX control is released in DLL form only at present, partly because we have not yet finished writing it, and partly because we have barely even started documenting it :) New: A new version of the boards has been written by Uwe that are ASP-only, so no more messing around with ActiveX controls. The boards a minimal in implementation but will give you everything you need to get a set of discussion boards up and running. They are Access-only at the moment, but moving to SQLServer is a simple excercise left to the reader. See the download section at the top of this page for the files. So - onto the scripts. All discussions from here on will concentrate only on the ActiveX version. The non-activeX version is sufficiently similar, though directory structures and file nesting is a little different. These are divided into a number of categories:
There is also:
It's assumed that you are running NT4 Server or above with IIS4 or above, or Win9X with PWS. The forum is stored in an Access database and uses the Jet Engine to access. Quick startOK, so you've got the files and you want to start playing instead of reading the rest of this article. I don't blame you. Here's what you do then:
Now simply point your browser at How it worksThe scripts are made up of a set of main user interface scripts (in the root
directory) that make use of worker scripts (in the The guts of the system is in The class not only contains methods that perform the work, but also functions
to return URLs to the various application scripts. By doing this we are able to
set the names of the various scripts in the Administering the forumsEach message has a password set by the author of that message that allows the author
to modify or delete a message. As well as this you can
modify or delete messages by using the global password. This is defined in
For instance, if you are viewing the index of the forum with ID 1, and your
URL is http://www.myserver.com/codeproject/forum/index.asp?forumid=1&ad=12345 where "12345" is the password (defined in To add or delete forums themselves you have to physically modify the database. This is just one of those things we haven't yet done... In admin mode you also get the option of modifying or deleting messages. Also,
once in admin mode you will continue to be in admin mode as you move through the
forum scripts. Simply remove the " What's new...The latest version of the scripts has an enhanced user interface, plus some internal changes designed to fix a few problems with the first version. In a nut shell:
To do...Too much. This is merely a sketch of the forums and does not even describe what each file does, nor how we plan on expanding the scripts. We will constantly be working on improvng these scripts and all extensions and modifications made to the main CodeProject forums will be included in these downloadable files. Consider this a work in progress!
|
||||||||||||||||||||||||||||||