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

Content Locker for Blogger

Discussion in 'Blogging' started by Teucrus, Jun 15, 2012.

  1. Teucrus

    Teucrus Newbie

    Joined:
    Aug 8, 2011
    Messages:
    36
    Likes Received:
    15
    Occupation:
    IT Manager
    Location:
    In My Cave
    Here something usefull i found over the internet. If you need any help with it then let me know.
    Code:
    Paste the following code below just above the </head> tag.
    
    
    
    
    
    <!-- content locker start here -->
    
    
    <script src='http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js' type='text/javascript'/>
    <script type='text/javascript'>
    
    
        var Delay = 10;//Seconds after them clicking the link, the gateway vanishes. 
        
        function setupgateway()
        {
            var Left = $(window).width() /2;
            Left = Left - $('#gatewaydiv').width()/2;
            
            var Top = $(window).height()/20;
            Top = Top - $('#gatewaydiv').height()/20;
            
            $('#gatewaydiv').css('top', Top+'px').css('left', Left+'px').css('display', 'inline');
            $('#gatewayDimmer').width($('html').width());
            $('#gatewayDimmer').height($('html').height());
            $('#gatewayDimmer').css('display','block');
        }
        
        function removegateway()
        {
            $('#gatewaydiv').css('display', 'none');
            $('#gatewayDimmer').css('display','none');
        }
        
        $(document).ready(function()
        {
            $('.offerlink').click(function()
            {
                setTimeout('removegateway()', Delay*1000);
            });
            
            setupgateway();
        });
    </script>
    
    
    <style>
    
    
        body
        {
            background-image:url('');
            background-repeat:repeat;
            height:100%;
            margin:0;
        }
    
    
        #mainContent
        {
            background-color:white;
            margin-left:auto;
            margin-right:auto;
            margin-top:30px;
            width:700px;
            border:3px solid #CDCDCD;
            text-align:center;
        }
    
    
        #gatewaydiv
        {
            background-image:url("");
            background-repeat:no-repeat;
            width:500px;
            height:100px;
            padding:10px;
            position:absolute;
            display:none;
            background-color:#0e0f0f;
            border:solid 4px gray;
            text-align:center;
            font-family:arial;
            font-weight:bold;
            opacity:0.9;
                    
                    
        }
    
    
        #gatewaydiv h1
        {
            font-size:35px;
            color:#cc0000;
        }
    
    
        #gatewayMessage
        {
            font-size:18px;
        }
        
        .offerlink
        {
            color:gray;
            font-weight:;
                    font-size:15px;
        }
        
        #OfferList
        {
            margin:0;
            padding:0;
        }
        
        #OfferList
        {
            list-style:none;
        }
    
    
        #gatewayDimmer
        {
            background-color:#000000;
            opacity:0.9;
                    filter: alpha(opacity = 50);
            display:none;
            position:absolute;
            top:0;
        }
       
    </style>
    <!-- content locker end here -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    4. Then paste the next code below right after the <body> tag. 
    
    
    
    
    
    
    
    
    
    
    <div id='gatewayDimmer'>
    </div>
    <div id='gatewaydiv'>
        <center>
        <table><tr><td><script src='http://www.stumbleupon.com/hostedbadge.php?s=5'/></td><td><a class='offerlink' href='http://www.facebook.com/sharer.php' name='fb_share' type='button_count'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/></td>
    <td><script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'/></td>
    <td><script src='http://www.reddit.com/r/Android/buttonlite.js?i=5' type='text/javascript'/></td>
    </tr></table>
    <p><font color='#ffffff'>Please share or checkout free offers below to unlock this page.</font></p><a class='offerlink' href='LINK OR OFFER'>Ipad 2: Enter your email and get Apple iPad 2 - Back to School</a>
        </center>
    </div>
    
    
    
    
    
    
    
    
    5. Once you've pasted all of them, please make sure that you've change LINK OR OFFER to any free offers or survey links. Preview to see if it works, if not please discard any changes and try another blogger template. It's just a matter of trial and error. 
    
    
    If you like to modify a bit of the placement of the offers or add any background color, simply find #gatewayDimmer and #gatewaydiv then change the values according to your liking. 
    
    
    
    
    
    
    
    
        #gatewayDimmer
        {
            background-color:#ffffff;
            opacity:0.9;
                    filter: alpha(opacity = 50);
            display:none;
            position:absolute;
            top:0;
        }
    
    
        #gatewaydiv
        {
            background-image:url("");
            background-repeat:no-repeat;
            width:500px;
            height:100px;
            padding:10px;
            position:absolute;
            display:none;
            background-color:#0e0f0f;
            border:solid 4px gray;
            text-align:center;
            font-family:arial;
            font-weight:bold;
            opacity:0.9;
                    
                    
        }
     
  2. moeatwa

    moeatwa Regular Member

    Joined:
    Jul 23, 2011
    Messages:
    486
    Likes Received:
    475
    Occupation:
    Material Engineering Undergrad Student/ Blackhat I
    Location:
    Land of the Nile
    Have you tried this script?
     
  3. Okanenaiyo

    Okanenaiyo Regular Member

    Joined:
    Dec 9, 2011
    Messages:
    261
    Likes Received:
    38
    Not working properly on my template..
     
  4. chaytu

    chaytu Newbie

    Joined:
    Apr 22, 2012
    Messages:
    46
    Likes Received:
    18
    Works fine till date.. You should only delay the time from 10 seconds to a fair amount of time..
     
  5. Quattroporte

    Quattroporte Regular Member

    Joined:
    Nov 18, 2012
    Messages:
    469
    Likes Received:
    170
    Blogger is known to delete blogs with content lockers on them. If you already know this and just want to churn and burn these blogs, than go for it. Otherwise, I'd suggest using a link locker.
     
  6. triple9s

    triple9s Registered Member

    Joined:
    Jul 16, 2013
    Messages:
    68
    Likes Received:
    21
    I'm going to give this a try when I get home to see if it works.