• AlanWho.com Helping Only Cool Attractive and Intelligent People Win Online!

      • Home
      • About
      • Contact
  • Alan's current Twitter status:Just noticed. Yes. The universe really is a friendly place.

    • October 21st, 2006

      ProtectContent

      26 Comments
      Add Comment
    • Protect Content 1.0

      “ProtectContent” is an extremely simple Wordpress plugin that allows blog owners to separate content from users who are logged in and those whom aren’t. By simply wrapping protected content in and tags it will be hidden to users not logged in and visible to those that are.

      DownloadDownload Offline

      ProtectContent Is No Longer Available

      Due to similarities to a similar wordpress plugin, ProtectContent is not available for download at this time.

      Instructions

      1. Place in wp-content/plugins directory.
      2. Activate.
      3. Wrap content to be hidden with and
    • RSS feed Trackback URI

      26 Comments to “ProtectContent”

      Add Your Comment

      Comment by Ace
      2006-09-08 19:54:08

      Hey there Alan,

      I love this plugin its so simple and it works! However, How do I get the restriction message ie., “This page is for members only,… it’s free” to only display on those pages restricted. Currently, its on all of my pages. Thanks so much

      (Comments wont nest below this level)
      Reply here
       
      Comment by kim
      2006-10-20 03:40:35

      this does not work for me. maybe coz of cookies? if i have been logged in pst an entry that i want protected, then log out, will a someone who uses the same computer still be able to view the protected content?

      (Comments wont nest below this level)
      Reply here
       
      Comment by AlanWho
      2006-10-20 09:50:44

      Hi people. I am working on updating the plugin. Work should be done and ready for downloading later today (20/10/2006) …

      (Comments wont nest below this level)
      Reply here
       
      Comment by kim
      2006-10-20 13:52:38

      hello, i managed to get it to work and everything is going well except for one important bug… if you search for the a term contained in the tags, they will show up in the search excerpt of this plugin http://fucoder.com/code/search-excerpt/

      what if someone searches their name, they’ll see the surrounding words.

      a way to fix this? thanks!

      (Comments wont nest below this level)
      Reply here
       
      Comment by Meredith
      2006-11-28 02:55:08

      How does this plugin affect feeds? I would like for users reading the feed to be able to see that there is a protected post but not what the content is. There could also be a link to the post with the protected content, so that logged-in users could view it.

      (Comments wont nest below this level)
      Reply here
       
      Comment by Ashley
      2006-12-07 02:37:56

      Is there any chance of adding a feature that allows you to add a messege if the user’s not logged on?

      (Comments wont nest below this level)
      Reply here
       
      Comment by Jordan
      2007-01-04 13:24:59

      Is it possible to display a note to the user where there is protected content and they are not logged in? (i.e. “Users must be logged in the see the following content.” Thanks.

      (Comments wont nest below this level)
      Reply here
       
      Comment by Jordan
      2007-01-04 14:40:25

      Is there a way to display a message to users when there is protected content so that they know to login? Thanks.

      (Comments wont nest below this level)
      Reply here
       
      Comment by Georg
      2007-01-07 19:13:28

      This plugin is great, but it really needs “This page is for members only,… it’s free� message. Does anybody know how to add that? Thanks.

      (Comments wont nest below this level)
      Reply here
       
      Comment by Kolbich
      2007-01-08 19:40:26

      Hi Alan,
      how can i show a message like “You have to log in to see protectet content!” in a protectet post?

      (Comments wont nest below this level)
      Reply here
       
      Comment by Dmytro
      2007-01-12 23:22:57

      hi

      plugin seems to be right thing for me, however im not sure yet.
      CAn you configure it so that i’ll hide content (links for example) from unregistered users, but they will see smth like “for members only” istead of the link in the post?

      thanks.
      ~Dmtyro

      (Comments wont nest below this level)
      Reply here
       
      Comment by Abhijeet Pardeshi
      2007-01-16 04:47:02

      It is not working for me !! I have wordpress 2.0.5, Plugin was activated properly, I placed the protect content tag as mentioned in start and
      end of content. but still does not work.Please help !!!

      (Comments wont nest below this level)
      Reply here
       
      Comment by Wolfgang Pries
      2007-02-05 15:15:21

      Thank you for this great Plugin

      (Comments wont nest below this level)
      Reply here
       
      Comment by Brad
      2007-02-10 16:59:16

      hey allen can you also make it so it TELLS people that they need to register/login to view the content?

      (Comments wont nest below this level)
      Reply here
       
      Comment by wuffel
      2007-03-24 14:20:22

      Hi Alan!
      I tested your hide-plugin a few minutes ago - and it works. But how can i hide a complete “page” (not the complete blog) with his subpages? The page should only shown to loged-in, registrated users.
      Can your plugin realize that, too?

      (Comments wont nest below this level)
      Reply here
       
      Comment by coder
      2007-04-09 03:58:25

      function protect_content($content) {
      global $current_user, $user_ID;

      if (($current_user->id == 0) && ($user_ID == 0)){

      $content = preg_replace(’(.*?)‘,”,$content);

      }
      return $content;
      }

      And you need correct the problems with the_excerpt and the feeds.

      (Comments wont nest below this level)
      Reply here
       
      Comment by Kahil
      2007-05-14 21:36:12

      is there a way to hide content outside of the loop? Say a menu item that is in the header? sidebar?, etc.

      (Comments wont nest below this level)
      Reply here
       
      Comment by Michael
      2007-05-29 19:12:27

      If you want a message telling people to login, just change to code in the protectcontent.php file

      Where it says:

      return $pre.$suff;

      Change it to:

      return $pre. ‘Please login to see content!’ . $suf;

      (Comments wont nest below this level)
      Reply here
       
      Comment by Michael
      2007-05-29 19:16:51

      If you want a message telling people to login to view the content, just change the code in the protectcontent.php file

      Where it says:

      return $pre.$suf;

      Change it to:

      return $pre. ‘Please login to see content!’ . $suf;

      (Comments wont nest below this level)
      Reply here
       
      Click here to cancel "reply".
      Your Name: (required)
      Your E-mail: (required - never shown publicly)
      Website:
      Your Comment
      You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

      Trackbacks

      • Backstage: What Makes This Blog Run: Inside the CBC
      • BloggingPro China » Blog Archive » WordPress Plugin: ProtectContent
      • ProtectContent 1.1 « Wordpress Updates
      • BloggingPro China » Blog Archive » WordPress Plugin: ProtectContent
      • WordPress Blogg: Skydda ditt innehÃ¥ll
      • Mierda Del Toro…Its A Fine Art » Blog Archive » WP Plugin: ProtectContent while using Chad Butler’s WP Members
      • WP Plugins DB » Blog Archive » ProtectContent
      • « Getting FTP To Work In Windows XP SP2!
      • The Benefit Of Delaying Gratification »
    • Posted By AlanWho?

      • Become Alan's Facebook friend
      • Follow on twitter
    • Icons

      • 104 Standard PC Keyboard Key Icons
    • Wordpress Themes

      • 72 Class
    • Photoshop Video Tutorials

      • 10 Photoshop Tool Secrets
      • 10 Secret Photoshop Interface Tips
    • Archives

      • May 2008
      • October 2007
      • September 2007
      • August 2007
      • July 2007
      • June 2007
      • May 2007
      • April 2007
      • March 2007
      • February 2007
      • October 2006
      • August 2006
      • July 2006
      • May 2006
      • April 2006
      • March 2006
      • 0
    • Resources

      • Business Growth System
      • Copywriting Confessions
      • Dreamhost Hosting
      • MediaTemple Hosting
      • Spyzooka
    • Categories

      • Articles (2)
      • Ask AlanWho? (2)
      • blog (3)
      • CSS (2)
      • free layouts (1)
      • icons (1)
      • Inspiring Quotes (2)
      • Investigations (9)
      • Make Money Online (2)
      • Master Photoshop (1)
      • MySpace (1)
      • MySpace Layouts (1)
      • Photography (1)
      • Photoshop (6)
      • Plugins (1)
      • reviews (3)
      • Themes (3)
      • Web Development (4)
      • Whats Hot? (2)
      • Wordpress (9)
      • XHTML (1)
    • Notorious Posts

    • Internet Pals

      • Jay Abraham
      • Gordon Brown P.M.
      • John Carlton
      • Suzanne Cathcart
      • Michael Cheney
      • Arielle Castillo
      • 'David DeAngelo'
      • Franz Ferdinand
      • David Frosdick
      • Aria Giovanni
      • Amal Hantash
      • Paris Hilton
      • Ben Hunt
      • Dean Hunt
      • Jamiroquai
      • Andrew Lock
      • Clayton Makepeace
      • Rich Schefren
      • Gary Smith
      • Marc Thomas
      • Gary Vaynerchuk
      • Andrea Yager
    • © AlanWho Ltd. 2008

      • Top
      • Entries (RSS)
      • Comments (RSS)