How to show a content locker in an iframe?
2014-05-13, 02:38 AM,
#1
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:

Quote:<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.
Reply
Share This Thread :

2014-05-13, 03:52 AM,
#2
To make it more clear, this is the awm code:

<script type="text/javascript">awm = false;</script>
<script src="http://www.loxtk.com/gLoader.php?GID=xxx&go=&sid=" type="text/javascript"></script>
<script type="text/javascript">if (!awm) { window.location = 'http://loxtk.com/help/removeAB.php'; }</script>
<noscript>Please enable JavaScript to access this page. <meta http-equiv="refresh" content="0;url=http://loxtk.com/help/enableJS.php" /></noscript>

normally, this comes before the closing </head> tag, but I need this in an IFRAME
Reply
2014-05-13, 07:30 PM,
#3
Got it working now :)
Reply
2014-05-14, 01:16 AM,
#4
I would also wanna know this, since you understood can you help with this please
Reply
2014-05-14, 02:05 AM,
#5
(2014-05-14, 01:16 AM)staffer Wrote: I would also wanna know this, since you understood can you help with this please

yes, of course, no problem :)

all you need to do is

1. you make an html page with your content locker code, e.g. www.xyz.com/locker
2. then you make a file with your iframe, e.g. iframe-example.php, this looks e.g. like this

[quote]
<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.xyz.com/locker.html"></iframe>
[quote]

This is all.

In your main page index.php, you can e.g. use this

$IFrame_File = 'iframe-example.php'; // Will be the file containing the iframe of your survey.

and then to show the iframe

<?php include($IFrame_File); ?>
Latest Thanks - View all

lagggolas(2014-05-18 05:07 PM) kazi(2014-05-14 02:19 AM) staffer(2014-05-14 02:08 AM) 
Reply
2014-05-14, 02:08 AM,
#6
Thanks mate much appreciated
Reply
2014-05-14, 02:18 AM,
#7
No problem, if you have any further questions, just let me know!
Reply
2014-05-14, 02:19 AM, (This post was last modified: 2014-05-14, 02:19 AM by kazi.)
#8
I needed this thank you mate for sorting this out.
Reply
2014-05-14, 05:16 AM,
#9
(2014-05-14, 02:19 AM)kazi Wrote: I needed this thank you mate for sorting this out.

No problem, glad I could help
Reply
2014-05-14, 06:39 PM,
#10
thanks, how to let iframe pop up from button click?
Reply


Related Threads
Thread Author Replies Views Last Post
  Which network has content locker? suzeetm 6 316 2019-01-09, 10:03 PM
Last Post: alaahit
  How to Promote App Install Content lock in FB ADS? evergreencpa 1 168 2019-01-02, 10:56 AM
Last Post: AlienBoy
  How can I lock wordpress content with CPA locker stuff? mylene 1 121 2018-12-23, 12:24 PM
Last Post: specz34
  Need advice - Immediate conversion with content lockers mdhan 5 380 2018-10-28, 02:23 PM
Last Post: srikanta159
  Captcha or mobile locker? jack007 5 235 2018-10-15, 10:55 PM
Last Post: illusionist





About Us | Contact Us | CPA Elites | Advertise | Stats

© 2013-2019 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top