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

How To Activate CPA Gateway "On Click"

Discussion in 'Affiliate Programs' started by queenofbaird, Dec 23, 2009.

  1. queenofbaird

    queenofbaird Newbie

    Joined:
    Dec 18, 2009
    Messages:
    14
    Likes Received:
    3
    Does anyone with coding skills know how to activate a javascript (such as BHCB) on click?

    Instead of having it fire off on a preset timer (say 30 seconds after page load) is their a way to make the javascript and therefore the content gateway to lock the page at the point where there were committed to clicking on your download link?
     
  2. wasnot

    wasnot Newbie

    Joined:
    Dec 20, 2009
    Messages:
    3
    Likes Received:
    0
    Sure thing~ you just hide all your active links. simple~
     
    Last edited: Dec 23, 2009
  3. queenofbaird

    queenofbaird Newbie

    Joined:
    Dec 18, 2009
    Messages:
    14
    Likes Received:
    3
    I suppose that I can make the links active and have them go to a "download page" where they would be hit with the gateway immediately.

    I was just thinking that psychologically this approach would be better because:

    1. They hit the download page from whatever traffic source to get the "free download" and right when they think they are getting what they want - at the point of click to download they are hit with the content blocking gateway.

    This way they have shown some committment, even if it is small to download the darn thing.... and now (maybe?) they are more prone to fill out your cpa offer.
     
  4. BlackFiTTed

    BlackFiTTed Newbie

    Joined:
    Jan 3, 2008
    Messages:
    46
    Likes Received:
    17
    Code:
    <A HREF="http://www.htmlgoodies.com"
    onMouseOver="window.status='Click here to go to HTML Goodies'; return true">HTML Goodies</A>[CODE]
    [/CODE]

    You should be able to replace "window.status='Click here to go to HTML Goodies';" with whatever you need no?
     
  5. queenofbaird

    queenofbaird Newbie

    Joined:
    Dec 18, 2009
    Messages:
    14
    Likes Received:
    3
    I think you are getting me closer. I think I need to alter that so that the onclick=(javascript). That way that BHCB won't load until the click takes place instead of loading on a preset timer.
     
  6. Jeremy_AM

    Jeremy_AM Regular Member

    Joined:
    Sep 30, 2009
    Messages:
    259
    Likes Received:
    190
    you want something like this:
    Code:
    <a href="#" onClick="javascript:initGateway();return false;">Click here</a>
    replace initGateway with whatever function your gateway tool calls when the page loads.

    Edit:
    actually, it depends heavily on how your gateway works. i copied that example above because that's how ours works, but that's in combination with passing a url to our gateway. in other words, if you simply call the function to load BHCB or w/e, using that code as an example, it loads the gateway when the link is clicked but doesn't take the user anywhere after the gateway closes. so i think your gateway script needs to be able to accept a url to forward to.
     
    • Thanks Thanks x 1
    Last edited: Dec 24, 2009
  7. queenofbaird

    queenofbaird Newbie

    Joined:
    Dec 18, 2009
    Messages:
    14
    Likes Received:
    3
    Thank you Jeremy.

    Do you mind if I ask what gateway you use or are referring to?
     
  8. nikhil88

    nikhil88 Regular Member

    Joined:
    Jun 12, 2008
    Messages:
    208
    Likes Received:
    97
    Occupation:
    E&TC Engineering Student
    Location:
    Pune,India
    what BHCB vesion are u using? u'll need to edit few lines. v3 is encrypted so its difficult
     
    Last edited: Dec 24, 2009
  9. queenofbaird

    queenofbaird Newbie

    Joined:
    Dec 18, 2009
    Messages:
    14
    Likes Received:
    3
    I am actually using CPA Convert (I think in it's current state it is exactly the same as BHCB?). So I think yes it probably is version 3, and I do see that the code is encrypted.

    Even though it is encrypted is is still editable? I really want to test this idea on some sites I am already getting traffic to.
     
  10. nikhil88

    nikhil88 Regular Member

    Joined:
    Jun 12, 2008
    Messages:
    208
    Likes Received:
    97
    Occupation:
    E&TC Engineering Student
    Location:
    Pune,India
    ok i've found a solution.
    check ur pm
     
  11. sammysilk

    sammysilk Guest

    Sorry to reply in an old ass thread but anyone got a good solution for this?

    I really need a CB that works on click!
     
  12. naturallydrawn

    naturallydrawn Newbie

    Joined:
    Jun 25, 2010
    Messages:
    47
    Likes Received:
    1
    I've been using CPA convert for three months and it works exactly bhcb. That is superb. I think the verision which guys are talking it is version no 3.
     
  13. simmo

    simmo Registered Member

    Joined:
    Jul 14, 2008
    Messages:
    87
    Likes Received:
    34
    Location:
    UK
    You can use the onclick attribute on the link to run some javascript:

    Code:
    <a href="http://offerurl" target="_blank" onclick="offerClicked()">Offer Name</a>
    You can then use the setTimeout function in there to call your unlock function after so many seconds:

    Code:
    function offerClicked()
    {
    	setTimeout("unlockContent()", 60 * 1000);
    }
    In the example above the unlockContent javascript function would be called 60 seconds after you clicked on an offer link.
     
  14. Rambaldi

    Rambaldi Registered Member

    Joined:
    Nov 30, 2009
    Messages:
    81
    Likes Received:
    11
    Occupation:
    Programmer
    Location:
    Sweden
    Why not have style of the div's set to display:none; at start, then in onClick="getElementById('your div id').style.display=inline;"

    Or same thing with visibility:hidden;
     
  15. blackh4ts

    blackh4ts Registered Member

    Joined:
    Jun 25, 2010
    Messages:
    70
    Likes Received:
    12
    been trying to get this to work all night. no success.

    my js code that is usually in the <head> of my wordpress site:
    Code:
    <script type="text/javascript" src="http://xxxxxx.com/users/js/xxxx.js/9"></script>
    if i keep that code in the head, it pops no matter what.

    if i try using the script in one of the codes posted above, the gateway pops on page load. im lost. cannot get the script to work when someone clicks my download button :(



    if anyone has any useful info on how to run a javascript gateway on-click please let me know it would be GREATLY appreciated.
     
  16. nobody00

    nobody00 Regular Member

    Joined:
    May 21, 2011
    Messages:
    357
    Likes Received:
    52
    i need this too,any help?