|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Dreamweaver Building a Forum with Macromedia Dreamweaver From Adobe
A forum can really help you build up a community around your website
Feb. 9, 2006 12:15 PM
Forums (message boards) are a great way to share ideas, debate on current issues, or offer technical assistance to your clients. A forum can really help you build up a community around your website, increase traffic, and improve communication with your clients. Although you can find a wealth of free forum applications out there, which you can install and customize for your needs, this article teaches you how to build your own forum from scratch to make it fit your specific requirements. (You can view this article in its original www.macromedia.com/devnet.)
Planning the Forum
First you have to set up your application server environment and install Dreamweaver 8 and ImpAKT. This article assumes that you have already installed and configured a web server with PHP and MySQL support. If this is not the case, take a look at the following articles from the Developer Center:
Before you install ImpAKT, you need to have installed Dreamweaver 8. You can install and manage the extensions using Extension Manager, an accessory to Dreamweaver.
What Is ImpAKT? Extensions are software tools that enhance the standard functionality of Dreamweaver, much like plug-ins or add-ons. They can vary from simple code snippets to complex applications. Their purpose also varies: they can reduce manual coding, minimize repetitive tasks, fix certain bugs or errors, increase productivity, or build a specific object. Extensions are usually delivered as executable MXP files. When you run them, the Extension Manager initiates the installation. Start the installation by downloading the extension using the links at the beginning of this article. Then double-click the MXP file. After the ImpAKT installation is initiated, you'll see a disclaimer. If you agree to the terms, click Accept to continue the installation. When the Extension Manager finishes installing (usually just a few seconds), you'll see a dialog box notifying you that the installation is complete. You'll notice that ImpAKT is listed in the Extension Manager window. If Dreamweaver is open, close it and then relaunch it so the changes caused by ImpAKT can take effect. Each installed extension modifies the Dreamweaver standard workspace by adding its own commands, buttons, or menus. The ImpAKT elements are added to the Insert bar and to the Server Behaviors menu (in the Application panel). Notice that a new tab called MX Kollection appears in the Insert bar. ImpAKT is part of a bundle of Dreamweaver extensions, which is why the tab is called MX Kollection. For more information, visit the MX Kollection home page. From the MX Kollection tab, you can access some of the most common wizards and commands in ImpAKT that help you build database-driven web forms for inserting, updating, and deleting information, and set up professional user authentication for your website. The second area where you can access ImpAKT commands is the Server Behaviors tab of the Application panel. In the next section, you will define your site in Dreamweaver. Before you build the forum, you need to set up your site in Dreamweaver. For a quick site setup, take a look at this TechNote: How to Define a Site in Dreamweaver. A minimal setup requires you to configure at least these sections:
Download the tutorial sample files and unzip them to your site's root folder. In the next section, you will set up and connect to your database.
Setting Up Your Database
CREATE TABLE topic_top ( Here is the code that creates the message_msg table:
CREATE TABLE message_msg ( The following snippet shows the SQL code for setting up the table:
CREATE TABLE user_usr ( Notice that because the user name must be unique, it was defined as a unique key. If you are unfamiliar with database terminology (primary keys, foreign keys, self foreign keys, and the like) and database architecture techniques, check out the Database Concepts article on the InterAKT site.
Now that you have an idea of how your database will look, fire up the sample SQL script in your MySQL console or in your favorite database management software (such as phpMyAdmin) and create the forum database. Include the following line at the beginning if you want to create a separate database: Reader Feedback: Page 1 of 1
Your Feedback
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week
Breaking Cloud Computing News
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||