◄iRock►

Newbie
Joined
Feb 17, 2013
Messages
20
Reaction score
0
I have a file that I want people to be able to download from my website by first completing an offer. I want it so when they visit the page, they first have to click the download button (which is a picture of a download button) then a content gateway comes up and they have to complete an offer then their download starts. I tried figuring out how to do it myself but just got confused, was hoping you could help me? The file is uploaded on my website and I have a URL to a direct link download, but I would like for the user not to be able to see the direct link ever so they can't skip the content gateway.
 
In your content locker set up you should see "Redirect to link after completion: " or something similar to that
 
In your content locker set up you should see "Redirect to link after completion: " or something similar to that
This is what I get if I click get code:
Code:
<script type="text/javascript">var gwloaded = false;</script>
  <script src="adscendmediaDOTcom/gwjs.php?aff=17579&prf=17159&sid=" type="text/javascript"></script>
  <script type="text/javascript">if (gwloaded==false){window.location = "adscendmediaDOTcom/gateway_adblock.php?p=17579";}</script>
  <noscript><meta http-equiv="refresh" content="0;url=adscendmediaDOTcom/gateway_nojs.php?p=17579" /></noscript>
Also just found this on the website:
Loading the Gateway when a Link is Clicked
If you would rather have the gateway appear only after a link (or other object) on your page is clicked -- and not when the page loads -- that is possible. First, Edit your gateway and set the Start Delay to -1. Then you will use Javascript's onClick event to trigger the gateway.
Code:
<a href="#" onClick="javascript:initGateway(); return false;">Click here</a>
Kind of a noob at this, so if someone could tell me exactly how to set this up with a download button (image) that would be awesome.
 
Last edited:
<a href="#" onClick="javascript:initGateway(); return false;"><img src="downloadbutton.gif"></a>

Be sure to set Start Delay to -1 from the Edit Gateway page.
 
I'm using Wordpress and I need to be able to place download buttons in all my post. Where exactly do I put this code?
 
The code provided by Jeremy is in HTML. So you can easily put the code in your post.

<a href="Here goes your download link" onClick="javascript:initGateway(); return false;"><img src="Link of download button"></a>
 
The code provided by Jeremy is in HTML. So you can easily put the code in your post.

<a href="Here goes your download link" onClick="javascript:initGateway(); return false;"><img src="Link of download button"></a>
Do I just paste this in the post as well?
Code:
<script type="text/javascript">var gwloaded = false;</script>
  <script src="adscendmediaDOTcom/gwjs.php?aff=17579&prf=17159&sid=" type="text/javascript"></script>
  <script type="text/javascript">if (gwloaded==false){window.location = "adscendmediaDOTcom/gateway_adblock.php?p=17579";}</script>
  <noscript><meta http-equiv="refresh" content="0;url=adscendmediaDOTcom/gateway_nojs.php?p=17579" /></noscript>
 
Still need help with this, not sure where to post what and how to insert HTML in a post without Wordpress formatting it.
 
â—„iRockâ–º;5224708 said:
Do I just paste this in the post as well?
Code:
<script type="text/javascript">var gwloaded = false;</script>
  <script src="adscendmediaDOTcom/gwjs.php?aff=17579&prf=17159&sid=" type="text/javascript"></script>
  <script type="text/javascript">if (gwloaded==false){window.location = "adscendmediaDOTcom/gateway_adblock.php?p=17579";}</script>
  <noscript><meta http-equiv="refresh" content="0;url=adscendmediaDOTcom/gateway_nojs.php?p=17579" /></noscript>
You can add this code in the <head> section of your site. I don't know so much about wordpress. I think there will be an option to add script in your site.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock