HidePost plugin for WordPress

October 27th, 2009 Leave a comment Go to comments

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

  1. Upload the folder hidepost into /wp-content/plugins/ directory
  2. Active it  through Plugins page
  3. Go to Option -> Hidepost and check Enable Hidepost

Upgrade

  1. Deactive Hidepost
  2. Upload new hidepost folder to /wp-content/plugins/ directory
  3. 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.

  1. ciccio8
    April 29th, 2010 at 15:44 | #1

    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

  2. ciccio8
    April 29th, 2010 at 15:46 | #2

    ...and the tag %login% should become a real link to my login page, or I have to put the link from myself?

    Tnks again

  3. pitou
    May 25th, 2010 at 04:27 | #3

    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.

  4. May 27th, 2010 at 22:23 | #4

    @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 :P.

  5. pitou
    May 28th, 2010 at 15:36 | #5

    @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.

  6. May 28th, 2010 at 15:50 | #6

    @pitou
    Hey, I think you was installed Wp-hidepost, which is different to my plugin ;)

  7. pitou
    May 28th, 2010 at 16:11 | #7

    @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.

  8. May 28th, 2010 at 16:17 | #8

    @pitou
    Great that helps ;)

  9. pitou
    June 3rd, 2010 at 02:47 | #9

    @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.

  10. Tumay
    June 4th, 2010 at 20:13 | #10

    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

  11. June 5th, 2010 at 10:42 | #11

    @Tumay

    It is possible but not avaiable yet. I'll try to do this in the next month when I have free time

  12. suresh.katiki
    June 10th, 2010 at 10:49 | #12

    hi all, it is great plugin. Thank you for sharing this. I really enjoy with this.

  13. DreamCatcher
    June 24th, 2010 at 04:42 | #13

    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

  14. DreamCatcher
    June 24th, 2010 at 15:55 | #14

    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'
    });

  15. luca
    June 24th, 2010 at 21:16 | #15

    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?

  16. June 25th, 2010 at 09:54 | #16

    @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 )

  17. Sean
    July 26th, 2010 at 00:07 | #17

    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?

  18. Sean
    August 18th, 2010 at 03:57 | #18

    Funny: Any information about the above question?

  19. August 18th, 2010 at 16:04 | #19

    @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') ?>

  20. August 19th, 2010 at 13:30 | #20

    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 '';
    }
    ?>

Comment pages
1 ... 3 4 5 840
  1. February 18th, 2009 at 00:05 | #1
  2. April 18th, 2009 at 10:23 | #2
  3. May 25th, 2009 at 09:15 | #3
  4. May 27th, 2009 at 11:21 | #4
  5. May 31st, 2009 at 21:33 | #5
  6. July 4th, 2009 at 20:38 | #6
  7. October 28th, 2009 at 18:08 | #7
  8. November 7th, 2009 at 01:50 | #8
  9. November 13th, 2009 at 19:15 | #9
  10. March 18th, 2010 at 02:19 | #10
  11. April 12th, 2010 at 00:38 | #11
  12. June 16th, 2010 at 20:07 | #12