Configuring affCAFF - Adding The Data Stream Code

Home
General Links
ONLINE MANUAL
General Sections
affCAFF Manager - The Basics
affCAFF Manager - Advanced
Adding The Data Stream Code
There are two pieces of code that you need to add to show data streams on your page, and an optional stylesheet that you can also use to format it's appearance.

When you visit the Data Generator page in your affCAFF Manager, you will see a STEP 1 and a STEP 2 which show you what to add to your pages. These are outlined below.

STEP 1: Including The Functions
The first step is to include the single line of code given in STEP 1 to each of your pages where you want to display the code. If you don't already include PHP functions in your pages, then simply add the line given to the top of the page where you wish to show affCAFF data streams.

If your pages are HTML, then see this page for a simple way to make them capable of running affCAFF code.

If you already run a PHP site and include a set of functions on each page, the easiest way is to add the line given to your existing includes file. This means you only have to do it once, but remember in this instance you should drop the <?php and ?> tags that wrap around the "include_once" code shown in STEP 1.

STEP 2: Adding The Code
Under STEP 2, you will see 6 dropdown menus that will help you create the code snippets you need. These are explained here in more detail. As you use the dropdown menus, the code will change in the box below them and the latest data from the properties you have chosen will also show up.

Once you are happy with your selections, copy and paste the code into your webpage at the appropriate point where you wish to have the data displayed. Once input, the information will update automatically once a day when it is updated by the content providers.

Although this STEP shows you many of the more common options, there are some advanced techniques you can apply and a set of parameters that you can use to supplement the code and make the displays more versatile.

By default, the display takes on the formating attributes already defined in your webpage, but you can alter the appearance of the data streams bu using the style sheet code provided and improve or change the layouts by creating some simple templates.


© Copyright, affCAFF.com @2008