bulletin board part 1 – files and changes cis 254

19
Bulletin Board Part 1 – Files and Changes CIS 254

Upload: alannah-barber

Post on 04-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Bulletin Board Part 1 – Files and Changes CIS 254

Bulletin Board

Part 1 – Files and Changes

CIS 254

Page 2: Bulletin Board Part 1 – Files and Changes CIS 254

Overview of Forum

• Flash/PHP/MySQL Based

• Contains Standard Forum Items– Forums– Threads– Posts– Registration

Page 3: Bulletin Board Part 1 – Files and Changes CIS 254

Descriptions

• Post– A single message on the message board

• Thread– A collection of posts on a single topic

• Forum– A collection of threads

Page 4: Bulletin Board Part 1 – Files and Changes CIS 254

Needed Views

• Forum View

• Thread Vieew

• Post New View

• Post Reply View

• Registration View

Page 5: Bulletin Board Part 1 – Files and Changes CIS 254

Forum View

• Shows a list of threads– Topic– Topic Starter– Replies– Last Post

• Button for Refreshing list

• Button for new thread

• Registration Button

Page 6: Bulletin Board Part 1 – Files and Changes CIS 254

Thread View

• Listing of posts– Author– Post time– Message

• Back button to Forum

• Post New Button

• Post reply Button

• Registration

Page 7: Bulletin Board Part 1 – Files and Changes CIS 254

Post New

• New Post– Username– Password– Thread Title– Message

• Submit Button

• Cancel Button

• Registration

Page 8: Bulletin Board Part 1 – Files and Changes CIS 254

Post Reply View

• Post Reply – Username– Password– Thread Title– Message

• Submit Button

• Cancel Button

• Registration

Page 9: Bulletin Board Part 1 – Files and Changes CIS 254

Register Screen

• Registration Area– Username– Password– Confirm Password– E-mail Address

• Register Button

• Cancel Button

Page 10: Bulletin Board Part 1 – Files and Changes CIS 254

Tables – Created by phpforflash.sql

• forumCatagories

• forumForums

• forumPosts

• forumThreads

• forumUsers

Page 11: Bulletin Board Part 1 – Files and Changes CIS 254

forumCatagories

• catagoryID int(11) NOT NULL auto_increment,

• title varchar(50) default NULL,

• displayOrder int(11) default '0',

• PRIMARY KEY (catagoryID)

Page 12: Bulletin Board Part 1 – Files and Changes CIS 254

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)

Page 13: Bulletin Board Part 1 – Files and Changes CIS 254

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)

Page 14: Bulletin Board Part 1 – Files and Changes CIS 254

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)

Page 15: Bulletin Board Part 1 – Files and Changes CIS 254

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)

Page 16: Bulletin Board Part 1 – Files and Changes CIS 254

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

Page 17: Bulletin Board Part 1 – Files and Changes CIS 254

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

Page 18: Bulletin Board Part 1 – Files and Changes CIS 254

Flash File

Page 19: Bulletin Board Part 1 – Files and Changes CIS 254

File Modifications

• common.php– // Database details– $dbHost = “rs6kc.swc.cc.ca.us";– $dbUser = “USERNAME";– $dbPass = “PASSWORD";– $dbName = “DBNAME";