bulletin board part 1 – files and changes cis 254
TRANSCRIPT
![Page 1: Bulletin Board Part 1 – Files and Changes CIS 254](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/1.jpg)
Bulletin Board
Part 1 – Files and Changes
CIS 254
![Page 2: Bulletin Board Part 1 – Files and Changes CIS 254](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/3.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/5.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/6.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/7.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/8.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/9.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/10.jpg)
Tables – Created by phpforflash.sql
• forumCatagories
• forumForums
• forumPosts
• forumThreads
• forumUsers
![Page 11: Bulletin Board Part 1 – Files and Changes CIS 254](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/11.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/12.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/13.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/14.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/15.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/16.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/17.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/18.jpg)
Flash File
![Page 19: Bulletin Board Part 1 – Files and Changes CIS 254](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f0e5503460f94c224df/html5/thumbnails/19.jpg)
File Modifications
• common.php– // Database details– $dbHost = “rs6kc.swc.cc.ca.us";– $dbUser = “USERNAME";– $dbPass = “PASSWORD";– $dbName = “DBNAME";