Anyone making their own content lockers?

Discussion in 'CPA' started by joel122, Feb 20, 2016.

  1. joel122

    joel122 Regular Member

    Sep 25, 2015
    Likes Received:
    Does anyone here make their own content lockers rather than using cpa networks own lockers? If so how exactly do you guys do it? Always wondered this.
  2. towelfox

    towelfox Junior Member

    Jan 11, 2012
    Likes Received:
    Not yet but I will. I needed to download a PDF tonight and came across a few obviously custom lockers that looked top notch.
  3. thedorf

    thedorf Supreme Member

    Oct 1, 2008
    Likes Received:
    what? I gotta have a job?
    BHW - Where else?
    If I were to code a content locker I'd use Javascript and PHP. With Javascript you can activate the content locker based on time on the webpage (like 4 seconds) or based on how far down the reader has scrolled. You definitely want to give them a teaser view of the content.

    The locker itself could be as simple as an initially hidden div that covers 90% of the page with your offer or whatever. You can use negative CSS values to raise the hidden div so that it will sit on top of the other content. You uncover the hidden div by using the Javascript locks mentioned above. Set the z-index of the hidden div to be greater than that of the normal page content when doing this.

    There are some little getcha's here and there to deal with but that's up to the coder to resolve. This is the short and sweet version. There can be a lot more to content lockers than this.
  4. nightmarez

    nightmarez Registered Member

    May 21, 2013
    Likes Received:
    I've toyed with the idea and ultimately decided against it. While the premise is alluring, the practice does not lend well to real life situations due to the inability to optimize on the fly. I have heard that there are some highly customized lockers out there that can fulfill the task of optimizing for you but this tends to be problematic with how networks post back.

    Given the level of customization that so many networks provide, I can hardly see reason for investing time into creating a locker of my own. It makes for a fun pet project but takes away from time spent earning.