Is there any way i can delay the cpa gateway from coming up on page load, so i can load up a page then after 5mins the cpaleag gateway pops up
Currently i don't think you can do this. I emailed them over a week ago asking about this and never got a response back. Hopefully Troy will comment here about it.
cool il email them too i think blocking the premium content is harmfull just turns your visitors away let them watch the first 5mins of there favourite show and bam lock the page there a 100% more likley to fill out a survey so they dont have to go find a new site
I think this will work... <?php sleep(10); // 10 seconds to wait require 'http://www.cpalead.com/gateway.php?pub=YOUR_PUB_ID'; ?>
I like the idea. I'll see what the possibility is of having this on the final release. Thank you for your suggestion.
I think that will make the whole page not load for 10 seconds. If it was a popup not inside the header then you could do a metarefresh inside a small iframe down in the corner. But i think the gateway would popup inside the iframe not on the main page.
put that code into a file called load_cpalead.php and just require that too like <?php require 'http://www.domain.com/load_cpalead.php'; ?> PHP:
Thats smarts I will try that later. Although it seems a bit dirty to pop the gateway 5 minutes into them watching the episode. But my god it will make money
Hey Seqqa. When i do it i get a bunch of php errors? Something to do about the require function? Is there anything more i need to do with it or should it just work?
If you are using the two lots of requires that maybe why. You could try the iframe method or put load_cpalead.php into the following code bellow. <script src="http://www.domain.com/load_cpalead.php" type="text/javascript"></script>
Oh I lost here.. can you help to show it step by step.. my php programming knowledge is very little..
Put this into a file called whatever load_cpalead.php make use you add the time you want and your cpalead PUB ID. <?php sleep(10); // 10 seconds to wait require 'http://www.cpalead.com/gateway.php?pub=YOUR_PUB_ID'; ?> PHP: Once you do that write the location of where you write the file into the Javascript below. <script src="http://www.domain.com/load_cpalead.php" type="text/javascript"></script> HTML: Once you have done this add that code to your website. Hope that helps.
Try opening "http://www.yourdomain.com/load_cpalead.php" and see if you get an error. Most hosts won't allow you to require or include a file from another server for security reasons.
no its not working after the allotted time its shows the code not the gateway i trying it using include function as well not working