wp-private
We often wish to provide some teaser content to visitors while keeping a part of the content reserved for registered users so that they will be lured to register on our site. This plugin helps you achieve exactly this. You will be able to mark a part of your post as private and the rest will be available to public and a login form OR a register and login link will appear where your privatized content is supposed to appear. Once the user logs in they will be able to see the whole content (Great for membership sites). Now you can show off parts of your site to visitors and reserve parts for registered users.
Installation and Usage
- Upload `wp-private` to the `/wp-content/plugins/` directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Enclose your protected content with <!--protected--> and <!--/protected--> (Make sure you do this in HTML Mode and NOT in the Visual Mode of the wordpress editor)
- You can even customize the login form OR register and login link and select between the two from the "Content Protection" link under settings.


Hi,
Amazing! Not clear for me, how offen you updating your smartlogix.co.in.
Thanks
Hobosic
Having a bit of trouble with the coding.. As I understand it the text between the ! Protected should be hidden
But I see the actual coding ie — and on the page
This is my page
this is the hidden text
Am I missing something!!
Help would be appriciated as this plugin could be very usefull..
PS I am using th Current wordpress version
Thanks
Ok the above will not make sence as the coding “<!–” has been stripped out of the comment. what I want to say is that in my blog the coding is still shown..
You have to switch to HTML view while entering the protected and /protected tags..else they will show up in your posts…
Open the post in edit mode and you will find that the tags has been converted into character short codes..
Hope you got what I mentioned
Thanks !! I don’t know why I didn’t try that (to much Vino!!) It now works
Great plugin thankyou very much..
[...] you like to keep things a bit simpler than that, you could use the WP Private plugin to restrict access to certain content to registered users. This plugin only hides the [...]
Doesn’t seem to work in comments, so I copied the add_filter code, replaced “the_content” with “comment_text” and renamed “protected_content” as “protected_content2″ – this has allowed me to use the protected tag to protect comment text as well as post/page text.
Thanks for the plugin!
Thanks for the update…It should be part of the next update
Installint the plugin (WP-Insert) caused all the text in the posts to align to the center and turn bold. I had to remove the plugin. I use Wordpress 2.7; theme: Structure by Justin Tadlock. Any idea?
I can’t figure out what caused the text to turn bold..Must be something with your theme..
Wait for version 2.0 which wil be released soon with a brand new interface and tone of new options..
I also want to hide comments but I’m not understanding the changes that Ian made in order to do so. Do I simply copy the line of text that starts with “add_filter” and make the same changes? Or do I need to copy all of the code?
[...] you like to keep things a bit simpler than that, you could use the WP Private plugin to restrict access to certain content to registered users. This plugin only hides the [...]
Not working for me. I’ve entered the codes in html format on the html screen. But when I look at my blog, both the teaser text and “hidden” text are showing. You can take a look and see.
Also, am I supposed to password-protect the post myself? When I do that, none of the text shows up, not even the teaser text.
Halp! LOL
You don’t have to password protect the post..
make sure the codes are entered correctly and you have to logout of the blog to see the password protection in action
The plug-in installed and worked perfectly…up to the time when I put in a name a password. I don’t want the members to go to the dashboard rather the actual page on the site that requested the password.
How to?
Thanks,
Lura
P.S. Easiest plugin I’ve ever installed!!
Lura : Please update to wp-private 1.2 and it will work just as you mentioned
What does this mean in the Installation Guide, here:
http://wordpress.org/extend/plugins/wp-private/installation/
——————————————-
3. Enclose your protected content with and.
——————————————-
Enclose it with what?? “and”?
Christina : Thanks for pointing the issue out…Its strange..It was displaying right from the day the plugin was wrote till the last update!!!
Hope fully you have figured out what was missing..f not please follow this site or the plugin page in wordpress will be update in a few minutes…
Hmmm for some reason it is not working for me!
Here’s what the “HTML” code looks like
Before protected content:
something you’re not suppose to read!
After protected content:
Are the code’s right? I also insert the codes !–protected–> and in HTML editing for a page or a post, I’d logged out and refreshed even closed the browser and cleared my cookies but doesn’t seem to work
To vies the post I am using it on go here
http://killeralterations.com/2009/09/05/remote-control-for-youtube/
If you can see the bold text in the middle then it is not working!!! Please provide me some assistance.
Thanks in advance.
lol it bold out the comment above
I mean to say that in the HTML option for the plug in before protected are those tags right? Just wondering.
Open your post in edit mode and check out if the protected and /protected got messed up after saving…
You have to enter it in the HTML mode and not in visual mode.
Also the code is <!--protected--> and <!--/protected--> (Notice there are two dashes on each side)..In your comment you have only written one..that might be the problem
I also suggest you to try out wp-insert for ad management and the better FCK editor from editing the posts (personally I don’t like the tiny MCE…On most occasions it does not produce what I intended!!!)…
I just installed 1.2 and now, when I am logged out of the site, the pages that previously gave the messages, “This is protected content” now also show a login and password fields. That’s ok, but when I try to log in there, it doesn’t work. What happens is that the page redisplays with the message, “No posts match your criteria.” When I redisplay the same page with the hidden information, the login request is there instead of the information.
To login successfully, I have to use the login on the sidebar.
This was working fine before I upgraded to your newest version. WHat do you suggest?
OK – I just turned off the login form and now people can just go to the regular login.
However, now my problem is that there is an automatic message coming from the plugin that says, “Please Login or Register for access.” and when people click on the words “login” or “register”, I have no pages set up for them to use for this purpose. How can I get rid of this message? On my site, people have to login or register on the sidebar.
@Nedda : The plugin should redirect users to the wordpress login/registrations pages when they click on the links. If that’s not happening then you must be having a wordpress etup which is not following the standards or maybe its a bug in the plugin. Precise reason can only be found out after further inspection. If you don’t want to show the links just add “<!–” at the end of the “HTML to Insert Before protected Area” box and add “–>” at the beginning of the “HTML to Insert After protected Area” box. This should hide the login/register message