I saw a website where for some work and at the main content they add a box with message to The content is locked! Please like us to to unlock content. So I found the way how he did that and found a jQuery plugin added to do this so decided to give my reader this functionality so the can implement in there web application and give useful data with little contribution like tweet, like, plus or share on social network and get information they want.

I have used a jQuery plugin which add social media buttons for Twitter tweet, follow, Facebook like, Google plus or LinkedIn share instead of your content, actually it hide your data and show buttons once you like or tweet it will hide buttons and show you content and create a cookie on your browser so you will get content every time until cookie available on your browser.

In above jQuery we give our links to user to like or share and initialize social locker plugin for a div with id lock-my-div and that div will be replaced with social content and your defined message once user perform any activity it will hide that social buttons box and show your content div.

I am Huzoor Bux from Karachi (Pakistan). I have been working as a PHP Developer from last 5+ years, and its my passion to learn new things and implement them as a practice. Basically I am a PHP developer but now days exploring more in HTML5, CSS and jQuery libraries.

it’s working for me, but after i clear cache and Cookies of Browse -> i have to login Facebook, Google … again and unlike + Like again for Unlock, Can i only login and not need unlike and like?
Plz help me, many thanks

iLenElFuerte

Facebook: Share Button?

My name

Its not working with jquery verison 1.9? is there any solution for it?

BHAVESH KUMAR

How to Control Cookie Expiration Time !

huzoorbux

You can increase and decrease cookie time in social-locker.js file by editing value of this variable// the number of days for cookies lifetime
cookiesLifetime: 3560

Alexander

why i can’t see facebook buttons? Even in your demo page

Naf Se Sa

wooow… you must try online, not in localhost,,,,, after i change the app id in script,,, facebook buttons showed…

Alexander

thanks for your comment. I will try!

Francis Claide Magallen

thanks for this tut. I have a question. How to check if the user already like the page show them directly the content? please help

Ramses

Like button doesn’t work i don’t know why. I change the URL and nothing

Amazing Templates

Hi,
I have question.
After i click on google +1 button, the content is unlocked.
But when i check on my Google plus page. I don’t see “+1″ post on my timeline.

Дмитрий

You need Google share button (“google-share”). I found it in js file? but it in’t work ((( Maybe someone can help us?i

Ricardo Sanchez

Facebook Share button doesn’t show

huzoorbux

give me link of your website

http://highxp.eu/ ehxp

wonderful, thanks a lot

suniel

hi how can i download the code i subscribrd to feed burner but the codes not downloading

Ismael

It doesn’t work in my website. I locked a video, but now nothing appears in its place. What can I do to solve this problem?

huzoorbux

Your website link please.

huzoorbux

I saw your website and found the error and error is that you didn’t use (lock-my-div) id to any div so which dive locked?

Carmen

Hi, the code works fine but the install button disappears Facebook. Only buttons Goggle, Twitter and Linkedin are. You could look at it?

jose

thanks a lot

sean

how to create custom themes?

Загварлаг Хувцас

Hello, I already liked on facebook page before visit to locked content. I first time read the locked content.But Content is locked. How to unlock if i liked already facebook page and cookies not created?

Yalin Meric, Logica IT

Facebook like button doesn’t show if user is not already logged in to Facebook. Your demo works but mine does not work. Which means there is something wrong with my Facebook App settings. How should I set my Facebook App to solve that problem?

I already created a Facebook App and used its id. It works fine if I’m already logged in to Facebook. Like button shows up. If I log out of Facebook and test it, like button does not show up. Here is a test URL for you http://netbridge.software/Social/Temp.html