can somebody send me a offer iframe script please. I dont mind throwing you a few bucks for the help. Basically just need to host a advertiser offer on my domain in a iframe so i can do popunders. This is for a direct linked campaign. Please PM me if you have something.
Just a full page iframe? Try this:
<?
PHP shizzle fo nizzle
?>
<html>
<head>
<title>Title</title>
</head>
<style>
body {
margin: 0;
}
</style>
<body>
<iframe src="offer.com" style="border: 0; width: 100%; height: 100%"></iframe>
</body>
</html>
thanks exactly what i needed, i owe you one .
So, after some testing I've figured out that this will only really work if you are working direct such that you can iFrame the offer page directly with necessary subids in the URL. If you are going through an affiliate network or redirections that aren't simple PHP header redirects, then it seems to just stop and not go anywhere. Apparently PHP + iFrames doesn't work very well. Might need to use AJAX or something less-than-simple to get affiliate URL redirection stuff happening smoothly inside the iFrame. I see info all over the net about iFrame cloaking yadda yadda but from my testing nothing which redirected to an affiliate link ever worked. If I iframed a PHP page that had a header() redirect to some other URL it worked fine, but if it was any kind of affiliate link everything just died. Also if it was one of my PHP scripts that gets subids and rotates offers, does georedirection etc it just died as well.
If you're using Prosper then look at this - http://prosper.tracking202.com/scripts/iframe/
there has to be some script out there. ppl iframe affilate links all the time using php.
Yeah that's what I was thinking. I tested it myself with the iframe source being a local php file, it all worked fine until the php header() redirect was going to an affiliate link, with no passing of subids or anything additional.
Why would you use a header() redirect? I don't think you're going to get the user to another page automatically when there's an iframe on the page. They're going to have to click a button or a link.
For the popunder, use that javascript popunder script that usernameistaken posted: http://stmforum.com/forum/showthread...-your-revenue!.
Update to Zeno's post - with javascript popunder added:
<?
PHP shizzle fo nizzle
?>
<html>
<head>
<title>Title</title>
<script type="text/javascript" src="/path/to/popunder.js"></script>
</head>
<style>
body {
margin: 0;
}
</style>
<body>
<iframe src="offer.com" style="border: 0; width: 100%; height: 100%"></iframe>
</body>
</html>
@scmtwells, usually if you were direct linking you'd have user clicks advert -> sent to PHP script that georedirects/passes subids to build an appropriate affiliate URL -> sent to affiliate URL which has it's own redirection through tracking engines, multiple hops etc depending on many things -> ends up on offer page. The goal would be to do this as you normally would, but now have that entire process contained within a 'window' of some kind so that once it gets to the offer page you still have control over executing some script when the user leaves.
Did some reading on that. Sounds like is is a form of cross-domain scripting. I've read that the solution is to toss iframes and use jQuery. Just haven't found a solution that matches the problem yet.
Only if "offer.com" is essentially offer.com/lander/001?utm_source=blah&utm_id=9384yu3984 or something like that, i.e. a direct link to the offer page with subids. In other words, I don't think this works properly if you are trying to iFrame an affiliate link as the tracking/redirection that occurs when following the link just breaks it. Try putting different URLs in the iFrame source and seeing what works and what doesn't.
ok so iframing works with a advertiser link but the popunder is not working now on this code.
<html>
<head>
<title>Title</title>
<script type="text/javascript" src="/path/to/popunder.js"></script>
</head>
<style>
body {
margin: 0;
}
</style>
<body>
<iframe src="offer.com" style="border: 0; width: 100%; height: 100%"></iframe>
</body>
</html>
Slightly updated version:
<?php
$url = "direct-link url";
?>
<html>
<head>
<title>PopUnder Test</title>
<script type="text/javascript" src="/test/js/popunder.js"></script>
<style>
body {
margin: 0;
}
</style>
</head>
<body>
<center>
<iframe id="iframe" src="<? echo $url ?>" width="95%" height="1024" allowTransparency="true" scrolling="false" border="0" ></iframe>
</center>
</body>
</html>
Ok, I modified my version of popunder to activate the popunder on a mouseover event instead of a click event. In the popunder.js file, on line 232, change "onclick" to "onmouseover". On line 235, change "click" to "mouseover".
IE8 - only browser where this works correctly (that's the only version I've tested).
Chrome - works, but acts like a pop-up when lines 239 and 243 are commented out. Doesn't work at all when lines 239 & 243 are uncommented.
Firefox 16 - works, but acts like a pop-up all the time.