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
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. http://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


Possibly Related Threads...
Thread Author Replies Views Last Post
  any working facebook share or like locker right now? Fierce 5 211 2017-10-17, 04:10 PM
Last Post: Fierce
  Anyone having tips on marketing content locker LilDog 1 97 2017-10-15, 10:34 AM
Last Post: NAPK1NS
  Video Content Locker Med Fd 1 89 2017-10-05, 10:54 PM
Last Post: timilak65
  torrent' content locker Med Fd 2 85 2017-10-03, 10:46 PM
Last Post: Med Fd
  (Question) How to handle content locker for wordpress site with multiple posts ZohnSon 4 206 2017-09-27, 09:53 PM
Last Post: ZohnSon




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

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