Developer Manual

FCMS Overview

The following information describes a high level overview of how the site was designed.

Code

Each section of FCMS has its own .php page. For example: the homepage, calendar and message board have their own .php pages, home.php, calendar.php and messageboard.php respectively. These files contain the basic HTML structure of the site. Most of the code for the site is stored in classes in the /inc directory. Each page of the site has its own class. The names of the classes are typically just the name of the page followed by _class.php. For example: the class for the caledar is called calendar_class.php.

The files for the administration section of the site are stored in the /admin directory.

The files for the photo gallery are stored in the /gallery directory. The /gallery directory also contains the /avatar, /photos and /upimages directories.

Themes

All themes for FCMS consist of at least one .css file and either make use of the existing images for the default theme or include their own images located in a directory, named the same as the theme itself. See example below.

+ /themes
+......... /images
+................. /default
+................. /your_new_theme
- default.css
- your_new_theme.css

For more information on creating themes for FCMS, please read the Theme Creation Manual.


Database Design

fcms_address

FieldTypeNullDefaultComments
idint(11)No
useridint(11)No0
updatedtimestampNoCURRENT_TIMESTAMP
addressvarchar(50)YesNULL
cityvarchar(50)YesNULL
statevarchar(50)YesNULL
zipvarchar(10)YesNULL
homevarchar(20)YesNULL
workvarchar(20)YesNULL
cellvarchar(20)YesNULL

fcms_board_posts

FieldTypeNullDefaultComments
idint(11)No
datetimestampNo0000-00-00 00:00:00
threadint(11)No0Refers to fcms_board_threads.id
userint(11)No0Refers to fcms_users.id
posttextNo

fcms_board_threads

FieldTypeNullDefaultComments
idint(11)No
subjectvarchar(50)NoSubject
started_byint(11)No0Refers to fcms_users.id
updatedtimestampNo0000-00-00 00:00:00
updated_byint(11)No0Refers to fcms_users.id
viewssmallint(6)No0

fcms_calendar

FieldTypeNullDefaultComments
idint(11)No
datedateNo0000-00-00
titlevarchar(50)NoMyDate
desctextYesNULL
created_byint(11)No0Refers to fcms_users.id
typeset('Birthday', 'Anniversary', 'Holiday', 'Other')NoOther
privatetinyint(1)No0

fcms_gallery_category

FieldTypeNullDefaultComments
idint(11)No
namevarchar(50)Nocategory
userint(11)No0Refers to fcms_users.id

fcms_gallery_comments

FieldTypeNullDefaultComments
idint(11)No
photoint(11)No0Refers to fcms_gallery_photos.id
commenttextNo
datetimestampNo0000-00-00 00:00:00
userint(11)No0Refers to fcms_users.id

fcms_gallery_photos

FieldTypeNullDefaultComments
idint(11)No
datetimestampNo0000-00-00 00:00:00
filenamevarchar(25)Nonoimage.gif
captiontextYesNULL
categoryint(11)No0Refers to fcms_gallery_category.id
userint(11)No0Refers to fcms_users.id
viewssmallint(6)No0
votessmallint(6)No0
ratingfloatNo0

fcms_news

FieldTypeNullDefaultComments
idint(11)No
titlevarchar(50)No
newstextNo
userint(11)No0Refers to fcms_users.id
datedatetimeNo0000-00-00 00:00:00

fcms_news_comments

FieldTypeNullDefaultComments
idint(11)No
newsint(11)No0Refers to fcms_news.id
commenttextNo
datetimestampNo0000-00-00 00:00:00
userint(11)No0Refers to fcms_users.id

fcms_poll_options

FieldTypeNullDefaultComments
idint(11)No
poll_idint(11)No0Refers to fcms_polls.id
optiontextNo
votesint(11)No0

fcms_poll_users

FieldTypeNullDefaultComments
idint(11)No
userint(11)No0Refers to fcms_users.id
optionint(11)No0Refers to fcms_poll_options.id

fcms_polls

FieldTypeNullDefaultComments
idint(11)No
questiontextNo
starteddatetimeNo0000-00-00 00:00:00

fcms_prayers

FieldTypeNullDefaultComments
idint(11)No
forvarchar(50)No
desctextNo
userint(11)No0Refers to fcms_users.id
datedatetimeNo0000-00-00 00:00:00

fcms_user_awards

FieldTypeNullDefaultComments
idint(11)No
userint(11)No0Refers to fcms_users.id
typevarchar(20)No0
valuesmallint(4)No0
countsmallint(4)No0

fcms_users

FieldTypeNullDefaultComments
idint(25)No
accesstinyint(1)No3
activitydatetimeNo0000-00-00 00:00:00
joindatetimestampNoCURRENT_TIMESTAMP
fnamevarchar(25)Nofname
lnamevarchar(25)Nolname
emailvarchar(50)Nome@mail.com
birthdaydateNo0000-00-00
themevarchar(25)Nodefault.css
usernamevarchar(25)No0
passwordvarchar(255)No0
avatarvarchar(25)No0x0.gif
boardsortset('ASC', 'DESC')NoASC
showavatarset('YES', 'NO')NoYES
displaynameset('1', '2', '3')No1
frontpageset('1', '2')No1
timezoneset('-12 hours', '-11 hours', '-10 hours', '-9 hours', '-8 hours', '-7 hours', '-6 hours', '-5 hours', '-4 hours', '-3 hours -30 minutes', '-3 hours', '-2 hours', '-1 hour', '-0 hours', '+1 hours', '+2 hours', '+3 hours', '+3 hours +30 minutes', '+4 hours', '+4 hours +30 minutes', '+5 hours', '+5 hours +30 minutes', '+6 hours', '+7 hours', '+8 hours', '+9 hours', '+9 hours +30 minutes', '+10 hours', '+11 hours', '+12 hours')No-5 hours
dsttinyint(1)No0
activatedtinyint(1)No0