How to get popunder working for video embed?

pilot830

New Member
YetiShare User
Jan 22, 2014
242
1
0
I don't use the embed video option because i have been afraid that i won't get any ad revenue.. from pop under

I tried to give it a try recently, at the top of _embed.php i put in

<?php
include("ads.php");
?>

and inside ads.php

i put in my pop under advertising code, which begins with

<script type="text/javascript">
bunch of stuff here like
var pop
var blah =
</script>

so then on a seperate domain, i created test.html and i put in the embed code like this

<iframe src="http://mydomain.com/plugins/mediaplayer/site/_embed.php?u=rq&w=640&h=320" frameborder="0" scrolling="no" style="width: 640px; height: 416px; overflow: hidden;" webkitAllowFullScreen="true" mozallowfullscreen="true" allowFullScreen="true"></iframe>

so when you load test.html , the embed video box is there, but when you cilck on the video box to hit play, or anywhere on the page, it does not load the pop under code

But yet, the same pop under code, i have in place for the media player regularily.. so when you visit http://mydomain.com/videoURLhere , and hit play on the video box, the pop under window does load and show up..... but not on embed video

If I visit the direct URL of the embed video, like this: http://mydomain.com/plugins/mediaplayer/site/_embed.php?u=rq&w=640&h=320 then it DOES load the pop under....... but only then

how can i get the pop under to load, with using the embed code ? not having to visit the direct url

in my ads.php i tried 2 different pop under codes from 2 different networks.. both didnt load.. but if i visit the embed url directly it does load the pop under, but thats not realistic or feasible since people will be using my embed code, not the direct embed url
 

pilot830

New Member
YetiShare User
Jan 22, 2014
242
1
0
sukhman21 said:
have you tried putting your pop-under code directly in your embed.php file ?
well i put at the very top of the embed php file

<?php
include("ads.php");
?>

so i figure that is the exact same thing. but i can try it i guess
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
i would try it just as a troubleshooting step just because the other websites with your embed code may not be able to pull your php file, it may be processed and sent as html output ?? i may be wrong but i would still try putting the code directly in your embed file.