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. August 23rd, 2009 at 18:52 | #1

    Hi, I read the post about the More tag but didn't help. Since I updated my wordpress blog to the latest (2.8) it is giving me conflicts with the MORE tag and the photos.

    Before I updated to the latest version I didn't have problems with the More tag and photos, sometimes I had sonme problems with the More tag when it was in between

    and

    , but nothing else. Now, wherever there is a post with photos and the More tag it puts everything highleated as a link, and if I remove the photos everything is allright. But the weirdest thing is that if I get in the post, this looks alright.

    Could anyone help me with this? This is the link to my blog: http://www.popdelos80.com/
    for some of the posts i've removed the More tag. You can see how it looks like with this problem in the post: I.O.U. – Freeez.

    Thanks in advanced,
    Silvia

  2. Ryan
    August 25th, 2009 at 10:10 | #2

    Can you tell me how to change the text "Please Login or Register to read the rest of this content?"

    I would like to add an image to the hidden post content and make the text bold.

    I tried to edit the plugin php but this did not work. (see below)

    $hidepost_content_text = 'Please %login% or %register% to download video(s).';
    $hidepost_role_text = 'You must be a(n) %role% to view this content';
    $hidepost_link_text = 'Please %login% or %register% to download video(s).';

  3. August 31st, 2009 at 13:52 | #3

    @Ryan
    You should try a newer version of hidepost, and edit it directly in Option page.
    To add an image, use < img src" "/> like usual

  4. Tony
    September 1st, 2009 at 20:41 | #4

    Hello,

    Great plugin!

    I'm using it with sniplets to hide posts in bulk, but pages are hidden too. Is ther a way to hide only posts and not pages?

  5. Taquila
    September 13th, 2009 at 10:48 | #5

    Hi,
    Great plugin but I have one problem.

    Site is not opening in firefox 3.5.3 after I activated this plugin. Kindly let me know workaround.

  6. September 24th, 2009 at 10:43 | #6

    I really love this script, it does exactly what I've been looking for. One thing though, is there a code where I can manually add the [hidepost] tag inside of my template? I have some information in my template that doesn't get generated by the admin, but rather in the template itself. Could someone supply me with this? Thank you.

  7. September 25th, 2009 at 01:47 | #7

    Hi, there was some discussion a while back about hidepost not working in feeds. I have since done some investigation and, while it works fine in RSS2 and ATOM feeds, it doesn't work in RSS[1] and RDF feeds. I think the reason is that you have added the filter to 'the_content' but those older feeds use 'the_content_rss'.

    There may be a problem with *all* the versions of the feed with very short posts because they all use 'the_excerpt_rss' but you are only filtering 'the_excerpt'.

    I think you will need to investigate adding the filter to those other routines as well else there is a risk that private data may leak out when you don't expect it.

  8. Peter
    October 9th, 2009 at 14:33 | #8

    Can you use Hidepost plugin to hide the content by role? How can I do that as I did not see anything related in the Option?

  9. October 9th, 2009 at 21:08 | #9

    How can I use hidepost to hide a widget? I want to remove an advertisement widget for registered users.

    What php code do I need to use?

    Thanks.

  10. October 9th, 2009 at 21:47 | #10

    @Peter
    You can use "[hidepost=level][/hidepost]". You can find more information in the Option page

    @Swen
    Currently Hidepost don't support hide in widget

  11. October 9th, 2009 at 21:54 | #11

    @Fu4ny
    I mean, I will just add a hardcoded wiget and place a tag in front of it. Example:

    WIDGET CODE HERE
  12. October 9th, 2009 at 21:57 | #12

    Swen :
    @Fu4ny
    I mean, I will just add a hardcoded wiget and place a tag in front of it. Example:

    WIDGET CODE HERE

    Oops, I can't use code tags in here :P

  13. October 9th, 2009 at 21:57 | #13

    @Swen
    No, it only support the content in each post.

  14. October 9th, 2009 at 22:08 | #14

    @Fu4ny
    Ok, thanks for creating this great plugin though! I love it :)

  15. October 18th, 2009 at 23:40 | #15

    Fuyny,

    Hope all is well. I'm using your Hidepost plugin on my membership site. I noticed in a few other posts that others were having trouble protecting content if they subscribe to your rss feed. After doing some testing, i'm having the same issue. Any workarounds to this? Thanks

  16. October 21st, 2009 at 06:43 | #16

    Hello Fu4ny I love your plugin thanks for make it.

    The problem I have is when I check the option: Protect Link , the "" option is hide too, what can I modify in the plugin so the "" option is still visible for everybody?

    I really will apreciate your help. thanks

  17. October 21st, 2009 at 06:44 | #17

    @macxima
    I mean the "more" option

  18. October 26th, 2009 at 00:56 | #18

    @macxima
    I'll take a look into the problem, maybe it's not hard to fix

  19. October 28th, 2009 at 01:14 | #19

    Hi Dave (Oct 18th) I have managed to solve this problem - see my post above (Sep 25th) for details.

  20. JM
    November 2nd, 2009 at 15:10 | #20

    Hi Team,

    Thanks for this plugin, seems the one I need. I have a strange thing when I activate it : As soon as I activate IT, WP log me off !!
    When I log again with my admin user, the plugin is still not activated. Any help ?
    Thanks
    :-)

  21. November 2nd, 2009 at 17:22 | #21

    It should be some problem with you plugin or your site ( or maybe your browser ). Hidepost itself don't touch anything in wp's cookie or something like that.

  22. JM
    November 2nd, 2009 at 22:06 | #22

    Hi Fu4ny,
    Thanks for suggestion. Does not work. Event with another browser, on another pc. Same strange thing.
    I delete the plugin, and reinstall it. Same problem. Other way or suggestions ?
    Many thanks
    Best regards

  23. November 5th, 2009 at 06:35 | #23

    I noticed an error in the code for the plug-in (version 2.7.1): you misspelt "the_excerpt" in "add_filter('the_exceprt', 'hidepost_filter_post');"

    Haven't noticed any problems despite that though lol

    Great plug-in anyway :D

  24. November 5th, 2009 at 11:52 | #24

    @JM
    Can you provide your site url, can list of plugins that you are using ?

    @Jon
    Oops, I misspelled it, but not many themes are using it, though :P, and I didn't find any bug reported :P

  25. November 5th, 2009 at 19:44 | #25

    Hi, the theme used is Mandigo theme. I've found another solution for my problem, thanks anyway for help. Regards :-)

Comment pages
  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