Im writing a tutorial called “How to create a simple content locker plugin” and while it’s live I set up this page as the demo of this little plugin. To grab the code of this plugin you just need to Like on facebook below 🙂
Please share this post to see the content
Unfortunately this does not work for me… 🙁 I am clicking like, but nothing happens…
Sorry that’s due to cache, If you add ?nocache=true to the end of the url you will the the proper result. I will fix the code. Thanks for pointing this out!
Hi Damián
I’m trying to test the plugin on my site (worpress) and return this fatal activation error:
“Parse error: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR), expecting ‘]’ in /home1/om4brz/public_html/simplespassos/wp-content/plugins/wptuts-content-locker/wptuts-content-locker.php on line 38”
I updated the gist, there was a missing $ in that line. Should read
$post->IDinstead ofpost->ID