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.
Hello and tnk you for great plugin.
But how can I do to hide 'Please login or register.....' if users are already logged-in or registered ?
Tnks
...and the tag %login% should become a real link to my login page, or I have to put the link from myself?
Tnks again
Hi,
I try to use the WP Hide Post plugin in post.
I did the following post exemple:
Part visible for public
[hidepost]
Part just visible for subscribers
This is a test of private part of the post
[/hidepost]
And I get this:
Test private article
Published by Pitou
Part visible for public
[hidepost]
Part just visible for subscribers
This is a test of private part of the post
[/hidepost]
Please could you tell me
1) Why it takes the tags [hiden] and [/hidepost] as a text?
2) Why it didn't hide the part of the content of the comment?
In fact I would like to use it just to let members (administrator to subscribers people)to see all the post including the hidden part of the post and not for all users especially non members.
Thank you to tell me how to use your plug-in.
In addition I cannot find where is the option you are talking about when you say:
"point 3 Go to Option -> Hidepost and check Enable Hidepost"
May be it is the reason it doesn't work.
Thank you in advance to reply to my comment.
@pitou
.
Try go to Settings -> Hidepost and check Enable Hidepost.
The option page suddenly change from Option to Settings and I just didn't notice
@Fu4ny
Hi,
Thank you but I don't see any setting or option for hidepost, where is it located in the dashboard?
The only thing I have in post is the following side bar:
Post Visibility
Hide on the front page.
Hide on category pages.
Hide on tag pages.
Hide on author pages.
Hide in date archives (month, day, year, etc...)
Hide in search results.
Hide in feeds.
@pitou
Hey, I think you was installed Wp-hidepost, which is different to my plugin
@Fu4ny
Hi,
It was a big confusion between two different plugins, your plugin called "HidePost" and another plugin called "WP Hide Post"
Now I found the right plugin , yours and the options.
It works.
I will continue to test it using levels of permissions.
Thank you and sorry for the confusion.
@pitou
Great that helps
@Fu4ny
Hi,
As I promised you I try to make some test.
The level are not indicated, so I made a test with permission level= 0, this apparently correspond to subscriber, then level =1 correspond to contributor, etc.
I stop here the test but thank you for your so simple to use plugin.
Anyhow will it be possible to know all permission levels according to user permission?
From 0 to 9 seems to me very large according to the WP permission levels .
Thanks a lot again, your plugin will help to customise post.
Would it be possible to modify this script to force people make a comment before they can see the hidden post? like on forum softwares. I am willing to pay for this.
thanks
@Tumay
It is possible but not avaiable yet. I'll try to do this in the next month when I have free time
hi all, it is great plugin. Thank you for sharing this. I really enjoy with this.
Hi, this is a nice plugin that I installed on a wordpress blog. Would it be possible to internationalize it so that we can translate it and keep the upgrade process to next releases?
Thanks
Hi there is a mistake in the en.js tinymce file. To translate the icon title link you must have:
en.hidepost instead of en.hpost. People who want to translate it have to create xx.js and change the appropriate values:
tinyMCE.addI18n("xx.hidepost", {
insert_hidepost : 'YOUR TANSLATION'
});
hello,
how to include hide post in a php page of wordpress?
i created a full width page of my template and inside it i would make hided some contents.. how to with this plugin?
@luca
You can do it through hidethis function.
I didn't added the detail in the readme file, but you can find it in the source
function hidethis( $content, $level=0,$display = true )
Fu1ny: How do you use the hidethis function in a php template? I see but then what do I do? If the string is a good majority of the template do I just define it as string and then define the level?
Funny: Any information about the above question?
@Sean
Hello, sorry for the late anwser
With the hidethis function, it's undocument yet, but you can use it by wrap the string, and then the level (optional, default is registered user) in the template like this
< ?php hidethis('you're a registered user') ?>
It seems that %login% and %register% are not getting replaced with the proper links..
Doing this:
ID);
global $mypostid; $mypostid = $post->ID;
echo hidethis(myarcade_get_leaderboard_code());
echo '';
echo hidethis($embedcode);
echo '';
}
?>