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

Need Help With Content Locker

Discussion in 'CPA' started by PowerToTHePeople, Nov 7, 2011.

  1. PowerToTHePeople

    PowerToTHePeople Junior Member

    Joined:
    Jul 4, 2010
    Messages:
    157
    Likes Received:
    20
    Hi im trying to put an content locker in front of a stream, can anyone help me with this, im having some trouble, when i try to do it, the content locker goes behind the stream, or the stream doesn't appear; im trying to make so if the user enters the site, they are able to see the stream loading and after the content locker appears, i would really appreciate some help, thanks.:eek:
     
  2. G-S-T

    G-S-T Executive VIP Jr. VIP

    Joined:
    Jan 20, 2011
    Messages:
    1,837
    Likes Received:
    8,802
    Occupation:
    Full time IM
    Location:
    Heavy in the game
    put your ******* code straight after the <body> tag so that it loads before everything else.
     
    • Thanks Thanks x 1
  3. xxxAcid

    xxxAcid BANNED BANNED

    Joined:
    Sep 10, 2011
    Messages:
    172
    Likes Received:
    18
    ^^What he said :)
     
    • Thanks Thanks x 1
  4. PowerToTHePeople

    PowerToTHePeople Junior Member

    Joined:
    Jul 4, 2010
    Messages:
    157
    Likes Received:
    20
    Thanks for the replies guys, but im using wordpress.. and in this case im using a leadbolt plugin to load the content locker; what i as trying to do was create a post and put the html there.
     
  5. PowerToTHePeople

    PowerToTHePeople Junior Member

    Joined:
    Jul 4, 2010
    Messages:
    157
    Likes Received:
    20
    Bump!
     
  6. Roundhouse

    Roundhouse Regular Member

    Joined:
    Sep 22, 2009
    Messages:
    408
    Likes Received:
    212
    which network are you using?
     
  7. PowerToTHePeople

    PowerToTHePeople Junior Member

    Joined:
    Jul 4, 2010
    Messages:
    157
    Likes Received:
    20
    leadbolt
     
  8. Roundhouse

    Roundhouse Regular Member

    Joined:
    Sep 22, 2009
    Messages:
    408
    Likes Received:
    212
    that is strange, I use them over megavideo and I have no problem. Try using the Official CPA Lead Plugin instead, its what I use
     
    • Thanks Thanks x 1
  9. PowerToTHePeople

    PowerToTHePeople Junior Member

    Joined:
    Jul 4, 2010
    Messages:
    157
    Likes Received:
    20
    hmm.. are you using a wordpress blog theme?
     
  10. Roundhouse

    Roundhouse Regular Member

    Joined:
    Sep 22, 2009
    Messages:
    408
    Likes Received:
    212
    yes I am
     
  11. nnnjohn

    nnnjohn Newbie

    Joined:
    Aug 9, 2010
    Messages:
    31
    Likes Received:
    32
    Here is what I'm using and working fine so far with leadbolt and wordpress:

    Code:
    
    <?php
    $views = 2;
    session_start();
    $_SESSION['ppn_cash'] = 0;
      if (isset($_SESSION['pages'])) {                     
          if ($_SESSION['pages'] < $views) {
            $_SESSION['pages'] = $_SESSION['pages']+ 1;
          } else {
                $_SESSION['ppn_cash'] = 1;
          }
      } else {
              $_SESSION['pages'] = 1;
      }
    ?>
     
    <?php
    if ($_SESSION['ppn_cash'] == 1) {
    ?>
    
    <!-- Interstitial :: Start -->
    "put your leadbolt html here"
    <!-- Interstitial :: End -->
    
    <?php
    }
    ?>
    
    
    How to use it:

    find header.php in your theme folder and just paste the code at the end of the file

    you can edit $views to let the user load as many pages as you want before the locker shows up

    hope it helps :)
     
    • Thanks Thanks x 2
  12. PowerToTHePeople

    PowerToTHePeople Junior Member

    Joined:
    Jul 4, 2010
    Messages:
    157
    Likes Received:
    20

    thanks for the code, gonna give it a try :D
     
  13. PowerToTHePeople

    PowerToTHePeople Junior Member

    Joined:
    Jul 4, 2010
    Messages:
    157
    Likes Received:
    20
    damn this deleted my reply lol >.<.. i got this error Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/*****/public_html/wp-content/themes/twentyten/header.php:12) in /home/*****/public_html/wp-content/themes/twentyten/header.php on line 55

    also im trying to center the stream in the middle and the content locker infront of it, but i dont know how to do it>.< do you know any free wordpress theme that would facilitate this? thanks.

    EDIT: Ok i found a good theme, the problem is that the iframe of the video goes infront of the content locker :/ i want it to be behind, does anyone know how to solve this?
     
    Last edited: Nov 8, 2011
  14. PowerToTHePeople

    PowerToTHePeople Junior Member

    Joined:
    Jul 4, 2010
    Messages:
    157
    Likes Received:
    20
    bump for some help
     
  15. Roundhouse

    Roundhouse Regular Member

    Joined:
    Sep 22, 2009
    Messages:
    408
    Likes Received:
    212
    if you want, pm me the site and I can take a look at it from my end