Putting a content locker ?

markomarkogame

Power Member
Joined
Jan 11, 2011
Messages
627
Reaction score
157
Is there anyway to put a content locker on "specific" part of the website/blog. Or on a link ? I can only put it on my homepage for now. How to put it on a " POST" or something ?

one of my sites is blogger and other one is wordpress
 
if you want to put locker on posts just add locker code above everything in single.php

If you want to put locker on specific category code for that is

<?php
if (in_category( 11))
{
?>
your locker code here
<?php
}
?>

I think it is already shared here, but since you have asked - here it is
 
if you want to put locker on posts just add locker code above everything in single.php

If you want to put locker on specific category code for that is

<?php
if (in_category( 11))
{
?>
your locker code here
<?php
}
?>

I think it is already shared here, but since you have asked - here it is

I need a content locker on only ONE post, but thanks for shairng
 
Usually you can just add the code to the header of the website code, if you're on blogspot I wouldn't know how to do it for specific blog posts but I do know how to do it on wordpress for individual pages/posts.
 
Usually you can just add the code to the header of the website code, if you're on blogspot I wouldn't know how to do it for specific blog posts but I do know how to do it on wordpress for individual pages/posts.
Will my blog suffer some kind of penalty since when u open my blog the content locker shows up ?
 
Will my blog suffer some kind of penalty since when u open my blog the content locker shows up ?

Depends on how you display it. Is there any presell before they get to it?

If you just put it on the main page or pages people land on from search engines then yes you will suffer a penalty.
 
I need a content locker on only ONE post, but thanks for shairng

Adapt the code posted above using the global variable $post_id instead of $in_category, specifying the ID of the post you want to put your content locker on. And you should have a winner! :)
 
Last edited:
Just insert excerpt that "more tag " after 40 words then insert the content locker at the end of the post when they open the post bam.
 
Adapt the code posted above using the global variable $post_id instead of $in_category, specifying the ID of the post you want to put your content locker on. And you should have a winner! :)

I need to do it for blogger also, not only wordpress.

SO how to do it on wordpress ?
 
I need to do it for blogger also, not only wordpress.

SO how to do it on wordpress ?

Use the plugin : Leadbolt Wordpress Unlocker, search it on wordpress.

You'll be able to lock wordpress pages/posts easily :) Very self-explanatory once you install it.
 
I need to do it for blogger also, not only wordpress.

SO how to do it on wordpress ?

That's the way you do it on WP ;-) You find the post_id of the post you want to lock and take notice. Then you add to your header file the appropriate code (very similar to the one suggested above by a fellow member) making a comparison to the post_id. If it's the right post_id, just fire the content locker. Quite straightforward.

I believe you can use the same strategy on blogger, just make sure to make this comparison with the URL of the page you want to lock. You could probably use a javascript snippet by means of window.location to get the url of the current page. IF it matches the URL of the page you want to lock, it triggers the locker code.

It should do the trick.
 
Use the plugin : Leadbolt Wordpress Unlocker, search it on wordpress.

You'll be able to lock wordpress pages/posts easily :) Very self-explanatory once you install it.

That's the way you do it on WP ;-) You find the post_id of the post you want to lock and take notice. Then you add to your header file the appropriate code (very similar to the one suggested above by a fellow member) making a comparison to the post_id. If it's the right post_id, just fire the content locker. Quite straightforward.

I believe you can use the same strategy on blogger, just make sure to make this comparison with the URL of the page you want to lock. You could probably use a javascript snippet by means of window.location to get the url of the current page. IF it matches the URL of the page you want to lock, it triggers the locker code.

It should do the trick.

Sorry guys, yes i know for wordpress thank you, I meant for BLOGGER, how to do it with blogger with that code that the user posted before
 
From another thread http://www.blackhatworld.com/blackhat-seo/blogging/329630-there-any-way-put-content-locker-free-blogger.html a guy said:

1. Go to design in blogger
2. In your header add a gadget called html/javascript
3. paste your content locker code in the content section (it appears after you have click the little plus button)

Not all of the content lockers work, I think BLAM ads work and leadbolt doesn't Im not 100% but try it out.

I'll repeat my drift. Just do this BUT trigger the content locking code ONLY after making a comparison by means of a simple "window.location" with the URL of the page you want to lock, since your need is to lock a specific page. It really can't get any simpler than this.
 
From another thread http://www.blackhatworld.com/blackh...-any-way-put-content-locker-free-blogger.html a guy said:



I'll repeat my drift. Just do this BUT trigger the content locking code ONLY after making a comparison by means of a simple "window.location" with the URL of the page you want to lock, since your need is to lock a specific page. It really can't get any simpler than this.

Hey ive done that, so after this what do i need to you, this windows location? Where do i change it
 
Back
Top