Dependencies

Module Files

  1. forumIndex.aspx
  2. forumIndex.aspx.cs
  3. AdmDocs.aspx
  4. admDocs.aspx.cs
  5. installDocCen.aspx
    [installation only]
  6. installDocCen.aspx.cs
    [installation only]
  7. install_addForum[2026-06-15].sql
    [installation only]

Other Files


Db Tables

  • doccen,
  • doccat


File descriptions

  1. docs.aspx and docs.aspx.cs render the page visible to the user.
    Depending of the User Level the user will be prompted for a username and password and if the user is Level 1 (Registered user) the user will see the index of the Document Centre: If the user is Level 2 (Authenticated users) the index will contain link to the actual documents.
    If the user is Level 3 or 4 (Admin or Owner) an upload button and an extra column to the right will appear for deleting documents or changing the document title and editing the searchable metadata.
    The files docs.aspx and docs.aspx.cs also provides an extended search function. The extended search finds any text in the uploaded documents. However, if you upload scanned files, i.e. files scanned to PDF-format the content ("image") of the document is not searchable.
    The extended search function will not display any results of files or photos that have restricted access. If a Registered User (level 1 user) attempt to search the Document Centre the user will be prompted to login with an Authenticated User (level 2 or higher) account.
  2. admDoc.aspx, admDoc.aspx.cs, admDocCats.aspx and admDocCatss.aspx.cs renders the Document Centre's administration pages where the Admin can manage categories, assign a category, alter the title and change the searchable text as well as annotate a remark to the document.

    Note: If you have a scanned document, i.e. in PDF format the document is actually an image and the text will not be found while uploading the document to the Document Centre. If you run an OCR of the document you can copy and paste the recognised text into the metadata and by that make the document searchable.
  3. installDocCen.aspx and installDocCen.aspx.cs files are only used during the part of the installation process that involves modification of your Web.config file.
    After the installation you can safely delete the files as they will be available from the n-gen.net Master Repository Server at any time as long as your domain holds an n-gen.net CMS pro subscription.
  4. (Optional) install_addForum[2026-06-15].sql should only be used for creating the doccen table manually.

Forum Module (pro standard)


Example
Open Document Centre in new window (/forumIndex.aspx)

Description

The **n-gen.net Forum Module** is a lightweight, fully integrated discussion platform built directly into the n-gen.net CMS. No external dependencies, no bloated third-party software – just pure ASP.NET Web Forms (C# 4.0) and MySQL. ##

Key Features

  • Full discussion functionality: Create topics, reply with threading, edit and soft-delete posts,
  • Voting system: Upvote/downvote posts with real-time score updates
  • Word Cloud: Automatic keyword extraction from topics and replies; click any word to search the forum
  • Role-based help texts: Different help messages for guests, users, trusted users and admins
  • Recent activities panel: Configurable number of activities and preview length
  • Category pagination: Handles many categories with compact pager
  • Email notifications: Users can opt-in to receive emails when someone replies to their posts
  • BBCode support: Formatting with `[b]`, `[i]`, `[u]`, `[url]`, `[quote]` and 20+ smileys
  • AJAX-powered modals: Edit, delete, create topics without page reloads
  • Category management: Create, edit, delete and reorder categories
  • Admin control panel: Centralised settings for word cloud, visual options, recent activities and email notifications
  • Responsive design: Works on desktop, tablet and mobile devices
  • Theme integration: Automatically inherits colours from the site's style manager
  • Searchable: Forum-wide search with AND/OR operators and result highlighting


Installation
The installation process consist of three easy actions:

  1. Download the forum module SQL script from the installer
  2. Run the script via the n-gen.net CMS installer (`/install/`)
  3. The forum is now ready – access it at `/forumIndex.aspx`

As of 2025-02-02 the three last actions are all done from the /install/installDocCen.aspx file.



Note: It is important that you follow the steps in sequence. If you do not follow the sequence the installation might fail and you may not be able to access your n-gen.net Content Management System. If that happens you will have to recreate your original Web.config file using the System Installer from "http://YourDomain.net/install/install.aspx".

ad 1.
...

ad 2....

ad 3..

Usage and implementation
...


Remarks

  • ...
  • ...

Files

The forum module consists of the following files:

  • /forumIndex.aspx – Forum overview
  • /forumIndex.aspx.cs – Code-behind for overview
  • /forumViewTopic.aspx – Topic view with replies
  • /forumViewTopic.aspx.cs – Code-behind for topic view
  • /forumCreateTopic.aspx – Create/edit topic
  • /forumCreateTopic.aspx.cs – Code-behind for create/edit
  • /forumUnsubscribe.aspx – Unsubscribe from notifications
  • /forumUnsubscribe.aspx.cs – Code-behind for unsubscribe
  • /admForum.aspx – Admin control panel
  • /admForum.aspx.cs – Code-behind for admin
  • /App_Code/WordCloud.cs – Word cloud generator
  • /App_Code/forumBBCode.cs – BBCode converter
  • /scripts/forum.js – Client-side functionality
  • /styles/forum.css – Forum styles

Database Tables

  • forumTopics – Topic container
  • forumPosts – Replies and comments
  • forumCategories – Category management
  • forumPostVotes – Up/down votes
  • forumSetup – Configuration settings
  • forumSubscriptions – Email notification subscriptions
  • forumNotifications – Notification log

Last updated 15-06-2026 00:54:30