bulletin board part 1 – files and changes cis 254
TRANSCRIPT
Bulletin Board
Part 1 – Files and Changes
CIS 254
Overview of Forum
• Flash/PHP/MySQL Based
• Contains Standard Forum Items– Forums– Threads– Posts– Registration
Descriptions
• Post– A single message on the message board
• Thread– A collection of posts on a single topic
• Forum– A collection of threads
Needed Views
• Forum View
• Thread Vieew
• Post New View
• Post Reply View
• Registration View
Forum View
• Shows a list of threads– Topic– Topic Starter– Replies– Last Post
• Button for Refreshing list
• Button for new thread
• Registration Button
Thread View
• Listing of posts– Author– Post time– Message
• Back button to Forum
• Post New Button
• Post reply Button
• Registration
Post New
• New Post– Username– Password– Thread Title– Message
• Submit Button
• Cancel Button
• Registration
Post Reply View
• Post Reply – Username– Password– Thread Title– Message
• Submit Button
• Cancel Button
• Registration
Register Screen
• Registration Area– Username– Password– Confirm Password– E-mail Address
• Register Button
• Cancel Button
Tables – Created by phpforflash.sql
• forumCatagories
• forumForums
• forumPosts
• forumThreads
• forumUsers
forumCatagories
• catagoryID int(11) NOT NULL auto_increment,
• title varchar(50) default NULL,
• displayOrder int(11) default '0',
• PRIMARY KEY (catagoryID)
forumForums
• forumID int(11) NOT NULL auto_increment,• catagoryID int(11) default NULL,• title varchar(40) default NULL,• displayOrder int(11) default '0',• threadCount int(11) default '0',• lastPost int(11) default '0',• description varchar(100) default NULL,• lastUserID int(11) default NULL,• postNewLevel tinyint(4) default '0',• postReplyLevel tinyint(4) default '0',• PRIMARY KEY (forumID)
forumPosts
• postID int(11) NOT NULL auto_increment,• threadID int(11) default NULL,• userID int(11) default NULL,• message mediumtext,• posted int(11) default NULL,• notify tinyint(4) NOT NULL default '0',• addsig tinyint(4) NOT NULL default '0',• topic varchar(255) default NULL,• PRIMARY KEY (postID),• FULLTEXT KEY topic (topic,message)
forumThreads
• threadID int(11) NOT NULL auto_increment,• userID int(11) default NULL,• topic varchar(100) default NULL,• replies int(11) default '0',• lastPost int(11) default NULL,• sticky tinyint(4) default '0',• forumID int(11) NOT NULL default '0',• announcement tinyint(4) default '0',• PRIMARY KEY (threadID)
forumUsers
• userID int(11) NOT NULL auto_increment,• username varchar(20) default NULL,• password varchar(40) default NULL,• title varchar(30) default NULL,• email varchar(255) default NULL,• userLevel tinyint(11) default '0',• signature tinytext,• postCount int(11) default '0',• PRIMARY KEY (userID)
PHP Files
• common.php• db.php• index.php• login.php• movethread.php• postedit.php• postnew.php• postreply.php
• printable.php• profileedit.php• register.php• search.php• viewboard.php• viewforum.php• viewpost.php• viewprofile.php• viewthread.php
Actionscript File
• boardmxharmony.as– Used as an include in the flash file– Contains all actionscript for the bulletin board– Called in first frame of boardmxharmony.fla
Flash File
File Modifications
• common.php– // Database details– $dbHost = “rs6kc.swc.cc.ca.us";– $dbUser = “USERNAME";– $dbPass = “PASSWORD";– $dbName = “DBNAME";