1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to show a content locker in an iframe?

Discussion in 'CPA' started by anatho, May 12, 2014.

  1. anatho

    anatho Elite Member

    Joined:
    Jun 4, 2010
    Messages:
    1,774
    Likes Received:
    172
    Location:
    Localhost
    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:

    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.
     
  2. viralking

    viralking Power Member

    Joined:
    Nov 11, 2012
    Messages:
    757
    Likes Received:
    205
    Location:
    Cpadoom.com
    Home Page:
    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
     
    • Thanks Thanks x 1
  3. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,644
    Likes Received:
    1,904
    Occupation:
    Ninja
    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.
     
    • Thanks Thanks x 1
  4. anatho

    anatho Elite Member

    Joined:
    Jun 4, 2010
    Messages:
    1,774
    Likes Received:
    172
    Location:
    Localhost
    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 ....
     
  5. anatho

    anatho Elite Member

    Joined:
    Jun 4, 2010
    Messages:
    1,774
    Likes Received:
    172
    Location:
    Localhost
    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?
     
  6. SEOnetic

    SEOnetic Senior Member

    Joined:
    May 21, 2012
    Messages:
    995
    Likes Received:
    120
    is it free or need to buy?
     
  7. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,644
    Likes Received:
    1,904
    Occupation:
    Ninja
    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
     
    • Thanks Thanks x 1
  8. anatho

    anatho Elite Member

    Joined:
    Jun 4, 2010
    Messages:
    1,774
    Likes Received:
    172
    Location:
    Localhost
    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



    into my index.php on my main site

    Then I put this



    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.