Diet Direct
Affiliate Program Version 1.0 1. Introduction The Diet Direct Dynamic Template site is a powerful tool that will allow you to essentially have a live, working web site or web site category, promoting the products of the Diet Direct Affiliate program. This template site was designed to be flexible, customizable, and user-friendly, with the ultimate goal of giving you a tool that is dynamically updated when our product data feed is updated. In order to use the Diet Direct Dynamic Template site, you must:
2. Installation To install the Dynamic Template site, simply unzip the distribution .zip file and upload the files to your hosting provider, in the directory that you want the site/category to appear in. (For example, if you have a site www.mall.com, and you want to add a Widgets category to your site, you could upload these files to mall.com/widgets/) Once the files are stored in the directory you wish, it is now time to prepare/customize the site. 3. Getting Started To prepare/customize your site, we first recommend editing the config.php file. The first and most important item in the config.php file that you must edit is the $affiliate_id. Make sure you change 99999 to your Diet Direct Affiliate ID. Making this change in the config.php file will update the entire template site to ensure that all links are properly coded with your Diet Direct affiliate tracking links. You can also make other changes in this config.php file. The config.php setup area looks like below and the changes that can be made are explained below: //
setup 4. Dynamic Web site Template Contents This section describes the site and its components at a basic level. These following pages retrieve data from the Diet Direct database: index.php, catlist.php, subcatlist.php, nopiclist.php and product.php. These pages all rely on the config.php file that enables them to connect to the database and provides other information to dynamically populate the site. The pages of the template are described below in more detail.
5. Customization using HTML and/or PHP The dynamic template site is fully customizable. If your knowledge of PHP and HTML is limited, you will still be able to make significant changes to the site. As mentioned above, the config.php contains some basic items that can change the look and feel of your site. More advanced customization can be done on your own utilizing your knowledge of PHP and/or HTML. PHP is a server side language that executes upon sending a request to the server. The server responds with various responses based on the PHP command that was sent to it. PHP code can be found embedded within HTML. It is easily identified by the <? ?> tags. Any code that is inside these tags is PHP code. Editing PHP is easy. For example, <? echo $affiliate_id ?> prints the affiliate id to that position. This code is usually used in conjunction with links, titles, descriptions and any other areas that a piece of data needs to be printed out. In this case, the $affiliate_id is a variable in the config.php file that can be used throughout the HTML pages. Instead of typing the id over and over again, this variable is used as a pointer back to the real value in the config.php file. This is a very simple example of PHP. Be careful not to edit some of the more complex PHP functions that control layout and navigation. This template is fully customizable based on your knowledge of PHP and HTML. So, if you feel comfortable moving the displaying of categories, feel free. However, small changes to the code can cause problems in many areas if you're not familiar with the language. Essentially you can customize any page of the site, just be sure not to alter the embedded PHP code (unless you are comfortable coding with PHP and will not cause issues with the dynamic areas of the pages). However, we strongly suggest customizing as much of the site as possible. Why you should customize your template site:
Some ideas for customization are:
These are some basic customization suggestions to make the site your own, while still allowing the site to work as created. Remember altering the actual PHP code without knowledge of PHP could result in issues/problems with the sites functionality. 6. Known Hosts That Don't Allow Remote Database Connections
|