Introduction:
Built2Go is dedicated to give you the best experience and the most promising results in selling your inventory and getting your site up and running in no time.
This Script is setup to accept your paypal, 2Checkout and Worldpay accounts.
Requirements:
Server Tested on Apache/1.3.12 & 2.0 (Unix/redhat)
PHP >= 4.1.2 (will not work on anything below 4.1)
Register_globals are suggested to OFF for best performance
GD Library 2.0+ - with FreeType enabled.
Mysql (tested with 4.01.x)
Installation:
Once unzipped you can upload all files and folders that are in the “Scripts” folder, to your website with your favorite FTP program. All files that end in php, html and css need to be uploaded in ASCII mode. The image folder needs to be uploaded in Binary mode. If you are unsure about how to do this then you need to read up on the manual for your favorite FTP software.
Now depending on how your server is set up depends on if you need a shebang line or not. A shebang line goes into your scripts as the very first line. This line tells the server where php is located so it can run it, almost the same as a perl script. If your server is setup as a cgi module than you will need this line and chmod all files to 755. If your php is installed as an ISAPI module than you do not need this line and you shouldn’t have to chmod anything. Unless your host has it setup to where you do need the shebang line. To find out if you need this “shebang” line for your install you will need to contact your host.
Once everything it uploaded we need to set some permission on certain folders. Windows usrs shouldn’t’ have to do this unless the permissions are not set for that user. We need to set “dtl_pic”, “org_pic” and the “thumb_pic” folders to 777 so we can upload images to them when users add listings. The adminpanel will also need to be set to 777 until the install is done and the db.php file is written. Once written and the install done you can set this back to 755.
Included is a file called pinfo.php, This will also tell you what is installed with your php package. Please have this page ready to view if you ever have a need to contact support at
http://www.built2go.com/pmos/
Lets begin the install:
First we need to edit a file. Open config.php and set the install directory/url.
There are some variables you need to understand first.
This is basic language file. Feel free to change the text all you want. If your language is not English and you want to change it please feel free to edit this file and please send it to me. Full credit will be given to you for the edition to another language.
$language = "eng";
This setting is for the modules folder. Best set to the default as it is now.
define('MODULE_DIR',"modules"); // Full url of the module directory, no ending slashes.
This is the version of the Script, please don’t change unless you have updated form a previous version.
define('VERSION',"1.0"); // version of classified script
This setting is for your site email, change it to what your email is.
define('FROM',"you@domain.com");
This is the full path to all the scripts. If you are on a Windows server you have to edit this whole variable with the full path to your root directory. No Ending Slash. Do Not change the FULL_PATH name. The only part that needs to be changed is the $_SERVER['DOCUMENT_ROOT'] or the “c:/…” path. That is if you installed it in a new folder rather than root directory. If you installed it in another folder besides root, than just add the folder like this:
$_SERVER['DOCUMENT_ROOT']."/newfolder"
"c:\www\root\inetpub\newfolder"
Otherwise do not change it anything.
This needs to be set PRIOR to install.
IIS:
define('FULL_PATH', "c:/www/root/inetpub ");
Unix/Linux:
define('FULL_PATH', $_SERVER['DOCUMENT_ROOT']);
These are some paths to the images being used and uploaded. If you install this script in the default directories you do not need to change these.
define('NEWPICPATH',"$full_path/org_pic");
define('THUMBPICPATH',"$full_path/thumb_pic");
define('DTLPICPATH',"$full_path/dtl_pic");
define('DTLPICURL',"$siteurl/dtl_pic");
define('THUMBPICURL',"$siteurl/thumb_pic");
For images it is important to set a set width and height as well as the max file size. If the images are to wide or to high then it has a possibility to distort the template design. So in this case we add a max-height and a max-width. File size is up to you. The bigger the file the more room it takes up on your server/web space. Use at your discretion.
define('MAXFILE_SIZE',"100"); // in Thousands
define(MAXIMAGE_W_SIZE,"160"); // max Width of the image define(MAXIMAGE_H_SIZE,"160"); // max Height of the image
This variable checks when an users sends a contact email or message. Controls spamming of emails.
define('FLOOD_TIMEOUT',"1800");
For the modules to work, these variables need to be set. Each should be setup to the specifications of each merchant. ITEM_NAME is your representation of the payment process, name it how you see fit. CURENCY_CODE are for Paypal only. This sets up your currency to use with Paypal, change it to see fit.
/* payment processors here PAYPAL*/
define('FROM_PAYPAL',"paypal@paypal.com");
define(ITEM_NAME," RealEstate");
define('CURRENCY_CODE', "USD");
/* Worldpay */
define('INSTID',"123456"); // worldpay login #
/*2Checkout*/
define('SERIAL_ID',"123456"); // 2checkout login #
This script allows you to add a prefix to your table names for Mysql. This gives the script a little bit more security, as people can’t guess at what you called your table names. This is to thwart hackers that attempt to get your Mysql information.
/* Mysql Table prefix must be set here */
define('TABLE_PREFIX',"");
If this variable is set to 1 the session table has a tendency to get big. This will allow the script to clear out any old information that is not needed anymore. The script is set to 0 for the install, it is recommended to set it to 1 “after” the install is done.
$GLOBALS['noshutdownfunc'] = 0;
This variable is for your currency type. Mostly used to show prices of the homes and stuff. Can be used in conjunction with the Paypal currency code.
define('CURRENCY', "$");
Once everything is edited and you have uploaded the changes, we need to go to the install script. This file is located in the “Scripts” folder of the installation and called install.php. Run this file and it will step you through making the database tables and db file.
Once installed and you move onto the admin section, you need to rename the install script or delete it. I would advise to delete this file off the server.
After install and you have logged into the adminpanel, please adjust these variables to your liking.
Once logged in to the adminpanel please read the section on “system Info” where it explains the various variables you have to set before the site is live
.