HidePost plugin for Wordpress
HidePost Plugin for Wordpress
Summary
A plugin that hide a part of your blog post ( links, texts... ) that only registered and logged in user can see it. Just put your content between [hidepost][/ hidepost]
From version 2.3, you can add level to hidepost tag like [hidepost=6][/ hidepost] so that only users have their level higher than 6 can see you hidden content.
You can hide all the links in your blog to unregistered users, just go to Option page and check Protect links.
Require Wordpress 1.5 and compatible with ( it should ) 2.8.x.
Install
Download it from Wordpress's repo , if you installed it through Wordpress's plugin page, just skip step 1 and 2
- Upload the folder hidepost into /wp-content/plugins/ directory
- Active it through Plugins page
- Go to Option -> Hidepost and check Enable Hidepost
Upgrade
- Deactive Hidepost
- Upload new hidepost folder to /wp-content/plugins/ directory
- Reactive it and check the new feature in Option page
Note: If you are upgrade from version 2.2 or less, you'll need to replace your old tag ( maybe [protect] ) with the new tag ( [hidepost] )
Other Note
If you have any question, fell free to drop me an email or comment on this page.
Sorry for my bad English, I tried my best ![]()
I'll not include changelog and FAQ in this page, so if you want to read it, please go to my plugin's page in Wordpress repo.
More detail change log can be found here
Good luck and have fun using my plugin.
Donation
Donation through Paypal if you want to contribute to my works.
@Jon - well spotted, I have been looking at these lines but didn't spot that.
@Fu4ny (Nov 5) I think you underestimate your users. I must disagree, we depend on this working correctly to preserve our privacy so I think it is an important bug. Perhaps while you fix that you could also add
add_filter('the_content_rss', 'hidepost_filter_post');
add_filter('the_excerpt_rss', 'hidepost_filter_post');
which would fix the RSS/Atom feed problem as well.
Hi. Great plugin, but i have one question.
Is there any way i can add mutliple hidepost options? like hidepost1 and hidepost2?
there are a few different things i would like to appear when a user is not registered.
Thanks
Hello, Fu4ny. I'm the author of the Role Scoper plugin. One of my users asked how to get HidePost functionality to reveal a portion of the post only to members of certain Role Scoper User Groups. I hope you don't mind, but I posted a hack to hidepost.php which will accomplish this. Let me know if you're interested in formally adding this feature to your plugin.
Sorry, I forgot to include the link to the HidePost User Groups hack.
@Rick
Thanks, but I think the rss filter isn't the problem, because without it, the content still be hidden in rss feed.
For the typos, I'll fix it soon
@Kevin Behrens
I
l'll take a look in the plugin and the forum as well. Thanks
@Fu4ny
Though the RSS2 and Atom feeds are ok with the existing code, as I said on Sep 25, the RSS[1] and RDF feeds rely on the_content_rss which your filters don't touch.
I thought they all relied on the_excerpt_rss if excerpting was switched on but I didn't look at that so closely. It can't do any harm to filter all four.
Is there anyway to make the tag. "[hidepost][/hidepost]" functional on templates. I notice that if it's used on tempalte e.g (single.php), it is just shown as plain html and no changes happened.
Thanks for the reply.
@Lalng001
If I may be so bold as to reply...
the answer is no, not directly using the hidepost plugin. You can, however, code something very similar in the theme templates. I have done this on my site so that the comments are only visible if you are logged in.
I used the code if (is_user_logged_in() ) :
If you want the more sophisticated functions of hidepost requiring a certain user level then I am sure there are similar functions for that.
Wordpress 2.9
Hi Fu4ny - you will be glad to know that it works as well with 2.9 as it did with 2.8!
Re my corrections for the feeds - there has been a small change in 2.9 such that the_content_rss is now deprecated. It has been replaced by the_content_feed. the good news is that this gets its data from the_content so the addition to hidepost to
add_filter('the_content_rss', 'hidepost_filter_post');
is no longer needed. However the modification to
add_filter('the_excerpt_rss', 'hidepost_filter_post'); /* after line 167 */
is still required. It looks like someone in WP HQ is looking at feeds and they have done half the job of tidying it up
Finally I got time.
Fixed some bug, moving around some function
And...finally a template call.
Still doing something before release a new version
Hello, Fu4ny.
How do I show an alternative message saying that to see the remaining information has to be registered as a user.
[hidepost = level]my hide text[/ hidepost]
[hidepostmesage = level] message for not users [/ [hidepostmesage]
Thanks
@Manuel Arroz
It's possible, but I don't want to mess other post with many type of tag. Imagine that you have around 500 post with many hidepost's tag, and then you want to uninstall it....
Thank you for this plugin !
Is there a way to display the button in TinyMCE Advanced ?
It works with normal TinyMCE editor.
I don't know if it works with TinyMCE Advanced, maybe I have to do some work around
The answer : it works, you just have to de-activate then re-activate TinyMCE Advanced plugin ;o)
@Arno
Glad it works, lol
hello
I really want to use this plugin, but when I try to activate I get an
"Plugin could not be activated because it triggered a fatal error." error..
whats wrong?
@Jays
Try to deactive all the plugin, and reactive hidepost, it should work fine.
reactive one plugin after another and try to find what plugin cause the error
@Fu4ny
its working!! yehey!!!(^O^)/ thanks for this plugin!! one of my favorite plugin!!(^ω^)V
Hi! I like this great plugin. I have a question. According to "Brief (Firefox's Add-on, feed reader)", the hidden post will be able to have a seen all. What should it carry out for making it hide in "Brief"? Thanks
Now, I checked hiding in "Brief". A previous question suspends. Thanks.
after my most recent update, Wordpress 2.9.2, hidepost is not working. All my links meant for registered users are exposed
Anyone else having this problem? Anyone have a fix?
I figure it out. Download Link Manager plugin was messing it up.