|
Copy & Paste Quick Code Examples
To view/hide the code, click the option you require below.
A full "streamID" (property ID) list can be
viewed here. Don't forget you need to include
the single line of code (shown in STEP 1 in your Data Generator) at the top of each
page where you use affCAFF.
Feel free to Mix 'n' Match the parameters across each example.
» Show the latest signup bonus from a single property
<?php
$params = array();
$mergeStreams = array();
$params[streamID] = "110000011"; // 32Red Casino
$params[maxitems] = "1";
$params[template] = "headlines_with_descriptions.inc";
$params[showsignupoffersonly] = "Y";
displayItems($params,$mergeStreams);
?>
» Show the latest promotion from a property ensuring the property's name appears in the headline
<?php
$params = array();
$mergeStreams = array();
$params[streamID] = "110000011"; // 32Red Casino
$params[maxitems] = "1";
$params[template] = "headlines_with_descriptions.inc";
$params[propertyintitle] = "Y";
$params[showpromotionsonly] = "Y";
displayItems($params,$mergeStreams);
?>
» Show a specific promotion for a specific property with an overriding campaign link
<?php
$params = array();
$mergeStreams = array();
$params[streamID] = "110000011"; // 32Red Casino
$params[maxitems] = "1";
$params[template] = "headlines_with_descriptions.inc";
$params[overridelink] = "http://www.anylink.com"; // Put your special affiliate link here
$params[itemID] = "nnnnnnnnn"; // get the item ID from the Data Generator
displayItems($params,$mergeStreams);
?>
» Show the latest signup bonus (only) from multiple properties
<?php
$params = array();
$mergeStreams = array();
$params[streamID] = "110000011"; // 32Red Casino
$params[maxitems] = "10";
$params[template] = "headlines_with_descriptions.inc";
$params[showsignupoffersonly] = "Y";
$mergeStreams[bet365] = "110000021"; // Bet365 Casino
$mergeStreams[roxyp] = "110000023"; // Roxy Palace Casino
displayItems($params,$mergeStreams);
?>
» Show the latest 5 promos &/or signup offers (headlines only) from 1 property
<?php
$params = array();
$mergeStreams = array();
$params[streamID] = "110000011"; // 32Red Casino
$params[maxitems] = "5";
$params[template] = "headlines_only.inc";
$params[showsignupoffersonly] = "Y";
$params[showpromotionsonly] = "Y";
$params[shownewsonly] = "N";
displayItems($params,$mergeStreams);
?>
» Show the latest 3 promotions from a single property in a random order
<?php
$params = array();
$mergeStreams = array();
$params[streamID] = "110000011"; // 32Red Casino
$params[maxitems] = "3";
$params[random] = "Y";
$params[template] = "headlines_and_descriptions.inc";
$params[showpromotionsonly] = "Y";
displayItems($params,$mergeStreams);
?>
» Show 10 headlines from Belle Rock casinos, randomly ordered, limiting headlines to 50 chars
<?php
$params = array();
$mergeStreams = array();
$params[streamID] = "110000010"; // Lucky Nugget
$params[maxitems] = "10";
$params[random] = "Y";
$params[template] = "headlines_only.inc";
$params[maxheadlinelen] = "50";
$mergeStreams[jcity] = "110000007"; // Jackpot City
$mergeStreams[rbelle] = "110000006"; // River Belle
$mergeStreams[gclub] = "110000009"; // The Gaming Club
displayItems($params,$mergeStreams);
?>
|