Alan's current Twitter status:Just noticed. Yes. The universe really is a friendly place.

“ProtectContent” is an extremely simple Wordpress plugin that allows blog owners to separate content from users who are logged in and those whom aren’t. By simply wrapping protected content in and tags it will be hidden to users not logged in and visible to those that are.
Due to similarities to a similar wordpress plugin, ProtectContent is not available for download at this time.
Hey there Alan,
I love this plugin its so simple and it works! However, How do I get the restriction message ie., “This page is for members only,… it’s free” to only display on those pages restricted. Currently, its on all of my pages. Thanks so much
this does not work for me. maybe coz of cookies? if i have been logged in pst an entry that i want protected, then log out, will a someone who uses the same computer still be able to view the protected content?
Hi people. I am working on updating the plugin. Work should be done and ready for downloading later today (20/10/2006) …
hello, i managed to get it to work and everything is going well except for one important bug… if you search for the a term contained in the tags, they will show up in the search excerpt of this plugin http://fucoder.com/code/search-excerpt/
what if someone searches their name, they’ll see the surrounding words.
a way to fix this? thanks!
How does this plugin affect feeds? I would like for users reading the feed to be able to see that there is a protected post but not what the content is. There could also be a link to the post with the protected content, so that logged-in users could view it.
Is there any chance of adding a feature that allows you to add a messege if the user’s not logged on?
Is it possible to display a note to the user where there is protected content and they are not logged in? (i.e. “Users must be logged in the see the following content.” Thanks.
Is there a way to display a message to users when there is protected content so that they know to login? Thanks.
This plugin is great, but it really needs “This page is for members only,… it’s free� message. Does anybody know how to add that? Thanks.
Hi Alan,
how can i show a message like “You have to log in to see protectet content!” in a protectet post?
hi
plugin seems to be right thing for me, however im not sure yet.
CAn you configure it so that i’ll hide content (links for example) from unregistered users, but they will see smth like “for members only” istead of the link in the post?
thanks.
~Dmtyro
It is not working for me !! I have wordpress 2.0.5, Plugin was activated properly, I placed the protect content tag as mentioned in start and
end of content. but still does not work.Please help !!!
Thank you for this great Plugin
hey allen can you also make it so it TELLS people that they need to register/login to view the content?
Hi Alan!
I tested your hide-plugin a few minutes ago - and it works. But how can i hide a complete “page” (not the complete blog) with his subpages? The page should only shown to loged-in, registrated users.
Can your plugin realize that, too?
function protect_content($content) {global $current_user, $user_ID;
if (($current_user->id == 0) && ($user_ID == 0)){
$content = preg_replace(’(.*?)‘,”,$content);
}
return $content;
}
And you need correct the problems with the_excerpt and the feeds.
is there a way to hide content outside of the loop? Say a menu item that is in the header? sidebar?, etc.
If you want a message telling people to login, just change to code in the protectcontent.php file
Where it says:
return $pre.$suff;
Change it to:
return $pre. ‘Please login to see content!’ . $suf;
If you want a message telling people to login to view the content, just change the code in the protectcontent.php file
Where it says:
return $pre.$suf;
Change it to:
return $pre. ‘Please login to see content!’ . $suf;