Main Page

Configuration

Open the file named "path_cnfg.php".
In this file you will set the paths to the "cnfg", "admin_scripts", "lib", and "templates" directories.
There are further instructions contained in this file so make sure you read them as well.

After you have set your path values, open up the file named "cnfg_vars.php" located in the "cnfg" directory.
There are several values that need to be set in this file, and the rest are optional.
You will have to provide all of you DB info here and some other stuff.
There are more instructions contained in the file itself.

"path_cnfg.php"contains the paths to 4 directories.
You can put these directories anywhere you want.
All the other files and directories should NOT be moved.


Configuration Variables

deDir

deHome

dbHost

dbName

dbPass

dbUser

editAdsRowColor1

editAdsRowColor2

expireAdsDays

expireTempUsersDays

logInFormBgColor

logInFormCaption

logInFormCaptionBgColor

logInFormCaptionFontColor

logInFormWidth

logInStatusBgColor

logInStatusWidth

logOutMessage

mainCatsBufferCols

mainCatsCenter

mainCatsCols

mainCatsTablePad

mainCatsTableSpace

mainCatsTableWidth

mainCatsTdWidth

replyEmail

rowsOfAdsTableWidth

rowsOfEditAdsTableWidth

siteName

subCatsBufferCols

subCatsCenter

subCatsCols

subCatsTablePad

subCatsTableSpace

subCatsTableWidth

subCatsTdWidth

userNameMinLength

userNameMaxLength

userPassMinLength

userPassMaxLength

tmplt_add_item

tmplt_add_item_results

tmplt_details

tmplt_edit

tmplt_index

tmplt_log_in

tmplt_log_out

tmplt_register

tmplt_search

tmplt_select_to_add

tmplt_showCat

tmplt_verify_registration

viewAdsRowColor1

viewAdsRowColor2



dbHost
The hostname that the database is running on.

Should value(s) be in quotes: Yes

Top of page
Variable List

dbUser
Your mysql username.

Should value(s) be in quotes: Yes

Top of page
Variable List

dbPass
The mysql password assigned to your username.

Should value(s) be in quotes: Yes

Top of page
Variable List

dbName
The name of the database to connect to.

Should value(s) be in quotes: Yes

Top of page
Variable List

deHome
This is the url path to the "index.php" file of D.E. Classifieds.

Should value(s) be in quotes: Yes

Top of page
Variable List

deDir
This is the path to the directory that you chose to put D.E. Classifieds in. There must be a trailing slash on this value!

Should value(s) be in quotes: Yes

Top of page
Variable List

siteName
This is the name of the site. This shouldn't be confused with the domain name of the site, although the two could be the same. For example if the name of your classified ads site is "Big Joe's Classifieds", then you should set the value of 'siteName' to "Big Joe's Classifieds" . The name of the site may be used in outgoing emails, and in other situations when the application needs to refer to the site that it belongs to.

Should value(s) be in quotes: Yes

Top of page
Variable List

replyEmail
This is the email address that will appear in the "From:" header when new users are emailed their registration keys.

Should value(s) be in quotes: Yes

Top of page
Variable List

logOutMessage
This is the message that appears when user logs out.
Make sure you put quotation marks around this value. If you need to include quotation marks in the message itself, be sure to proceed them with a backslash(\) .

Should value(s) be in quotes: Yes

Top of page
Variable List

expireAdsDays
The number of days in which the ad will expire after it has been posted. This value is also used by the database administration section to determine which ads are old enough to be deleted.

Should value(s) be in quotes: No

Top of page
Variable List

expireTempUsersDays
When a new user takes the first step toward signing up they are put into a temporary spot in the database until they confirm their registration. If they do not confirm their registration the temporary record stays in the database until deleted. So for example if you set this value to 7, temporary users who have been in the database longer than 7 days will be deleted.

Top of page
Variable List

rowsOfAdsTableWidth
This sets the width of the table where rows of results are displayed after searching or browsing categories.

Value can be a regular number or a percentage. Percentage is the width relative to the table which holds this particular table.

Examples:
$cnfg['rowsOfAdsTableWidth'] = "80%";
$cnfg['rowsOfAdsTableWidth'] = "300";
----------------

Should value(s) be in quotes: Yes

Top of page
Variable List

viewAdsRowColor1
viewAdsRowColor2
These are the colors of the rows where people are browsing/searching ads.

Should value(s) be in quotes: Yes

Top of page
Variable List

rowsOfEditAdsTableWidth
This sets the width of the table on the edit page.
Example:
$cnfg['rowsOfEditAdsTableWidth'] = "100%";

Top of page
Variable List

editAdsRowColor1
editAdsRowColor2
These are the colors of the rows that are displayed when a registered user is viewing the summary of ads that they have running.
The colors will alternate from one row to the next to help distinguish between records.

Should value(s) be in quotes: Yes

Top of page
Variable List

mainCatsCols
Number of columns for category navigation.

Should value(s) be in quotes: No

Top of page
Variable List

mainCatsBufferCols
Space between columns for category navigation.
Right way: $cnfg['mainCatsBufferCols'] = "20";
Right way: $cnfg['mainCatsBufferCols'] = "20%";
Wrong way: $cnfg['mainCatsBufferCols'] = 20px;

This value has no effect is mainCatsCols is set to 1 .

Should value(s) be in quotes: Yes

Top of page
Variable List

mainCatsTableWidth
Width of table that main categories will be displayed in.

Should value(s) be in quotes: Yes

Top of page
Variable List

mainCatsTableSpace
This will be the value of the "cellspacing" attribute in the table that displays the list of main categories. Setting it to a higher number will increase the amount of space between table cells.
A value of 3 seems to work fairly well.

Should value(s) be in quotes: Yes

Top of page
Variable List

mainCatsTablePad
This will be the value of the "cellpadding" attribute in the table that displays the list of main categories. Setting this to a higher number will increase the amount of "padding" inside of each table cell.
A value of 3 seems to work fairly well.

Should value(s) be in quotes: Yes

Top of page
Variable List

mainCatsTdWidth
The max width for each column.

Should value(s) be in quotes: Yes

Top of page
Variable List

mainCatsCenter
Set to true If you want the main categories to be centered inside of their parent table, false if you don't.

Should value(s) be in quotes: No

Top of page
Variable List

subCatsCols
Number of columns for sub-category navigation.

Should value(s) be in quotes: No

Top of page
Variable List
subCatsBufferCols
Same rules apply for subCatsBufferCols as for mainCatsBufferCols.

Should value(s) be in quotes: Yes

Top of page
Variable List

subCatsTableWidth
Width of table that sub categories will be displayed in.

Should value(s) be in quotes: Yes

Top of page
Variable List

subCatsTableSpace
This will be the value of the "cellspacing" attribute in the table that displays the list of sub categories. Setting it to a higher number will increase the amount of space between table cells.
A value of 3 seems to work fairly well.

Should value(s) be in quotes: Yes

Top of page
Variable List

subCatsTablePad
This will be the value of the "cellpadding" attribute in the table that displays the list of sub categories. Setting this to a higher number will increase the amount of "padding" inside of each table cell.
A value of 3 seems to work fairly well.

Should value(s) be in quotes: Yes

Top of page
Variable List

subCatsTdWidth
The max width for each sub-cat column

Should value(s) be in quotes: Yes

Top of page
Variable List

subCatsCenter
Set to true If you want the sub categories to be centered inside of their parent table, false if you don't.

Should value(s) be in quotes: No

Top of page
Variable List

logInFormCaption
This is the text that appears above the login form.

Should value(s) be in quotes: Yes

Top of page
Variable List

logInFormCaptionFontColor
This is the font color of the text in the caption above the login form.

Should value(s) be in quotes: Yes

Top of page
Variable List

logInFormCaptionBgColor
This is the background color of the caption above the login form.

Should value(s) be in quotes: Yes

Top of page
Variable List

logInFormWidth
This is the width of the login form.

Should value(s) be in quotes: Yes

Top of page
Variable List

logInFormBgColor
This is the background color of the login form.

Should value(s) be in quotes: Yes

Top of page
Variable List

logInStatusWidth
This is the width of the table that holds the login status. The login status is the message that tells the user that they are logged in.

Should value(s) be in quotes: Yes

Top of page
Variable List

logInStatusBgColor
The background color of the area where the login status message is displayed.

Top of page
Variable List

tmplt_*

These values determine which template files are used for each page of the application which needs an html template file. "tmplt_" prefix is followed by the exact name of the php file(minus the .php extension) that uses the template file.

Example:
$cnfg['tmplt_add_item'] = "html_template1.php";

-----------------
In the example "add_item.php" uses the template file named "html_template1.php" .

Caution: The value should only be the file name of the template file. It should not contain the path to the file itself. The path to the file should be supplied in the "path_cnfg.php" file in the 'pathToTemplatesDir' value. Whatever template file you use should be kept in your "templates" directory.

Should value(s) be in quotes: Yes

Top of page
Variable List

userPassMinLength
userPassMaxLength
User will get an error if he/she tries to choose a password shorter than 'userPassMinLength' or longer than 'userPassMaxLength' .
If you want user passwords to be able to be longer than 20 characters then you'll need to change the definition of the password field in the std_users table.

Should value(s) be in quotes: No

Top of page
Variable List

userNameMinLength
userNameMaxLength
User will get an error if he/she tries to choose a user name that is shorter than 'userNameMinLength' or longer than 'userNameMaxLength' .
If you want user names to be able to be longer than 20 characters then you'll need to change the definition of the user_name field in the std_users table.

Should value(s) be in quotes: No

Top of page
Variable List

Main Page