Hi I am having problem iframing ritating offers.
This what what I did
1) In Prosper202, #3, i set my affiliate URL to "http://mytrackingdomain.com/rotate.php?subid="
which the file rotate.php consists of...
<?
//Tracking202 Offer Rotation Script
//enter your affiliate urls below, you can enter as many as you want, please
//make sure that you have the affiliate url with the SUBID syntax at the end
//of it, for reference goto: subids.com for more information.
$offer[1] = 'http://mytrackingdomain.com/offer1.php?s1=cpalinknetwork&s2=';
$offer[2] = 'http://mytrackingdomain.com/offer2.php?subid=';
$offer[3] = 'http://mytrackingdomain.com/offer3.php?subID1=cpaempire&subID2=';
//this is the text file, which will be stored in the same directory as this file,
//count.txt needs to be CHMOD to 777, full privlledges, to read and write to it.
$myFile = "count.txt";
//open the txt file
$fh = @fopen($myFile, 'r');
$offerNumber = @fread($fh, 5);
@fclose($fh);
//see which landing page is next in line to be shown.
if ($offerNumber >= count($offer)) {
$offerNumber = 1;
} else {
$offerNumber = $offerNumber + 1;
}
//write to the txt file.
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $offerNumber . "\n";
fwrite($fh, $stringData);
fclose($fh);
//grab the subid that t202 adds
$subid = $_GET['subid'];
//redirect to the affilate url, + add the subid at the end
header('location: ' .$offer[$offerNumber] . $subid);
?>
2) In Prosper202, #4, i set my landing page URL to "http://mytrackingdomain.com/myoffer.php"
which myoffer.php consists of...
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Offer Title</title>
<style type="text/css">
body {
background-color: #000000;
margin:0;
height:100%;
}
html, body, #container, iframe {
margin:0;
padding:0;
height:100%;
}
iframe {
display:block;
width:100%;
border:none;
overflow:auto;
margin-top:0px;
}
</style>
</head>
<body style="margin: 0px; padding: 0px;" scroll="yes" onload="window.ResizeTo(900,700)" >
<iframe src="http://mytrackingdomain.com/tracking202/redirect/lp.php?lpip=9147" style="border: 0px; width: 90%; height: 90%;"></iframe>
<script src="http://mytrackingdomain.com/tracking202/static/landing.php?lpip=9147" type="text/javascript"></script>
</body>
</html>
3) In Prosper202, #6, using Simple Landing Page, I generated the tracking links, i.e.
http://mytrackingdomain.com/tracking202/redirect/lp.php?lpip=9147
<script src="http://mytrackingdomain.com/tracking202/static/landing.php?lpip=9147" type="text/javascript"></script>
and use those links in myoffer.php as depcted above.
4) In Prosper202, #7, using Direct Linking, I generated the tracking link
http://mytrackingdomain.com/tracking202/redirect/dl.php?t202id=5215&t202kw=
and I use this link on my PPV traffic network (with keyword token of course)
Results?
The offers roate, but the offers are not "iFramed" :(
So can anybody help please?