How to show a content locker in an iframe?

anatho

Elite Member
Joined
Jun 4, 2010
Messages
2,071
Reaction score
238
I am using AWM and I have a little problem with my content locker.

I created a content locker and now want to use it on my page, however, it should be displayed in an iframe.

Why?

My site asks for a username, then it connects to a database, and then before it gives out the key the user has to do a survey.
But the content locker gateway should be displayed in an iframe so that the rest of the page still can be seen (e.g. the input line asking for the code which will be given after the survey).

So here my code for the iframe:
<iframe id="fancybox-frame" name="fancybox-frame1399203261831" frameborder="0" hspace="0" style="background: #333333; height: 200px; margin-bottom: 10px; width: 100%;" scrolling="no" src="http://www.loxtk.com/gLoader.php?GID=xxx&go=&sid="></iframe>


But this does not work, it only shows an empty iframe because it requires javascript, and if I put the whole AWM code in an iframe, then this also does not work and does not show the locker.

Anybody know how to solve this? Trying now for 2 hours.
 
if you are using the online generator which i think you are you there is a script you can download that has this built in already
i will try to find it for you

is this what you are using
http://cpadoom.com/downloads/onlinegeneratortemplate/index.php

that is the script which you can edit as you please and it includes the locker just replace with your code and your good to go
 
OK what about adding the AWM COntent locker code on another site. Add the code inside a div tag.

Then iframe that site on the main domain by calling that div tag.
 
yes, I am using this .... but not from cpadoom .... also it is no generator, it is a php based website which can be modified ... I got it from another forum, so somebody just stole this from cpadoom and said it was his own work? :D

ok so I can use this with cpadoom? but I think this also can be used with any other cpa network, because the guy who posted it used it with fileice .... but the thing is, fileice is LINK locker and not CONTENTlocker, so this is very easy, just make an iframe with src=http://www.yourfilelocker.com, but content locker needs java script ....
 
OK what about adding the AWM COntent locker code on another site. Add the code inside a div tag.

Then iframe that site on the main domain by calling that div tag.

this sounds good, but how does this exactly work?
I make an .html file which contains the complete code from AWM content locker .... and this code must be within a div tag on this site ....and
then, which code to put in the iframe on the main site?
 
this sounds good, but how does this exactly work?
I make an .html file which contains the complete code from AWM content locker .... and this code must be within a div tag on this site ....and
then, which code to put in the iframe on the main site?

OK I think this is how it can be done:

1. Create a new html file on a new domain. In this file, only add AWM locker code.
2. Then on your main domain, create a new div tag and define it's css properties to make sure it only shows that portion of the target page where the locker appears.
3. Add the simple iframe code within that div tag.

<style type="text/css">
<!--
#container{
width:600px;
height:100px;
overflow:hidden;

}
#container iframe {
width:600px;
height:475px;
margin-left:-160px;
margin-top:-190px;
border:0;
}
-->
</style>


</head>
<body >




<div id="container">


<iframe


src="http://www.oup.com/elt/catalogue/teachersites/oald7/lookup?cc=globa


l" scrolling="no" width="600" height="200"></iframe>
</div>

Something like this i guess.

Source: https://productforums.google.com/forum/#!topic/sites/p9EFLuPX_uw
 
OK I think this is how it can be done:

1. Create a new html file on a new domain. In this file, only add AWM locker code.
2. Then on your main domain, create a new div tag and define it's css properties to make sure it only shows that portion of the target page where the locker appears.
3. Add the simple iframe code within that div tag.

<style type="text/css">
<!--
#container{
width:600px;
height:100px;
overflow:hidden;

}
#container iframe {
width:600px;
height:475px;
margin-left:-160px;
margin-top:-190px;
border:0;
}
-->
</style>


</head>
<body >




<div id="container">


<iframe


src="http://www.oup.com/elt/catalogue/teachersites/oald7/lookup?cc=globa


l" scrolling="no" width="600" height="200"></iframe>
</div>

Something like this i guess.

Source: https://productforums.google.com/forum/#!topic/sites/p9EFLuPX_uw

ok thank you very much. but either I did something wrong or this just does not work .....
it does not display anything now, no iframe, no locker etc.

I insert his

<style type="text/css">
<!--
#container{
width:600px;
height:100px;
overflow:hidden;

}
#container iframe {
width:600px;
height:475px;
margin-left:-160px;
margin-top:-190px;
border:0;
}
-->
</style>


</head>
<body >


into my index.php on my main site

Then I put this

<div id="container">


<iframe


src="http://www.oup.com/elt/catalogue/tea...ookup?cc=globa


l" scrolling="no" width="600" height="200"></iframe>
</div>


in my iframe.php

And this



would be my www.xyz.com/awm.html = my page with the html code from AWM

Is that correct?

But it does not show the iframe with the locker.


 
Back
Top