• I was gonna call this plugin “Bouncer” but settled for a more explanatory name instead.
    This plugin will allow only registered users of your blog to view the blog. If you have a wordpress powered blog that you don’t want your parents, or the secretary in your office, or the POTUS, to read it(okay, well, I can’t guarantee the last one :P), then View source and save or Download the .zip file to start using it. This will effectively password protect your wordpress blog, and also prevent search engines from indexing the pages in the blog.
    Instructions :

    1. Save the file registered_only.php to your wp-content/plugins folder
    2. Activate the plugin from the plugin administration page
    3. Relax

    Usage Notes:

    1. If you really want your defense against unscrupulous readers to be strong, then disable the “Anyone can register” option in Options->General in your WordPress administration interface.
    2. If you want google and other search engines to be able to index your blog pages, then comment(add two // in the beginning of) the line
      echo '<meta name="robots" content="noindex,follow" />'; . This, however, would mean that the search engines might index your pages and if you want a “private” blog, then this would not be suitable, which is why is it uncommented by default.

    This plugin is basically the auth.php file that ships with WordPress 1.2, adapted to fit needs, and is distributed under the GPL license.
    The Viewlevel plugin might interest some folks. That requires you to add some custom text (something like vl=”x”) to the posts to restrict viewership. Registered only, on the other hand allows only registered users to view the blog, all of it.

Viewing 15 replies - 1 through 15 (of 42 total)
  • Is there something similar which just prevents non-registered users from POSTING? I don’t mind people reading, but I’d like to restrict posts to only my users…

    why don’t you just change the admin level required for users to post?

    Thread Starter carthik

    (@carthik)

    Anonymous, non registered users cannot access the admin pages, and so cannot post, by default.
    Even newly created users have a user level 0 which allows them to read, but not post.

    “why don’t you just change the admin level required for users to post?”
    Care to give me some idea how to do that? That would solve the problem I’m having.

    is that with wp 1.3 or 1.2? I’ve gotten that error with some plug-ins together with 1.3…
    no clue how to solve it though

    i’m using 1.2, i didn’t have other plug-ins activated too
    they seemed to be referring to this method called “header”
    one that goes header(something)
    i don’t know php though, any one able to help me with it?
    i notice it only happened when i am not logged in

    thanks, i’ll try that ??

    Thanks for this plugin, it works well and does what I want it to do except for one small niggle.
    I use Feedreader to read the blog (it’s a multi-user blog). The posts are coming through the rss feed fine, I added my username and password to the feed and everything runs OK.
    But …. the comments feed is not feeding. I set it up in the same way as the main feed, with username and password. It doesn’t fall over when it checks the blog but it passes nothing back.
    It will be a busy blog and it is already difficult to keep a track of all the comments posted – I *need* my feed!
    Any ideas?
    Thanks
    Beth

    I installed this on a test blog and was still able to see everything even when logged out. I’m running WP 1.2.1

    Anonymous

    How does this plugin affect the RSS feeds? I want the entire blog to be private, for registered users only, and I don’t want anyone to be able to read the posts through the RSS feeds. Should I disable the RSS feeds entirely? How do I do that?

    Delete the atom, rss, rss2 files.

    I am having the same problem as Trench. I am using 1.2.2 on an IIS sever, MySQL 4.0.13, PHP 4.3.7. All non registered users can view the entire blog.

    Ideas?

    Thanks.

    Hi, I use WP 1.2.2 and after activating the plugin I get the error message

    Warning: Cannot modify header information – headers already sent by (output started at /myserverpath/wordpress/index.php:9) in /myserverpath/wordpress/wp-content/plugins/registered_only.php on line 63
    (and line 64, 65, 66 and 72)

    I did not change the registered_only.php at all.
    Does anyone know what’s wrong?

    I am having the exact same issue as Hathor. I use WP on IIS with Win2k, and wp 1.2.2. The weird thing is I am using this plug on the same server with a different wp install in its own mysql db. The actual error is blow.

    Warning: Cannot modify header information – headers already sent by (output started at E:\facilis\is\index.php:9) in E:\facilis\is\wp-content\plugins\registered_only.php on line 63

    Warning: Cannot modify header information – headers already sent by (output started at E:\facilis\is\index.php:9) in E:\facilis\is\wp-content\plugins\registered_only.php on line 64

    Warning: Cannot modify header information – headers already sent by (output started at E:\facilis\is\index.php:9) in E:\facilis\is\wp-content\plugins\registered_only.php on line 65

    Warning: Cannot modify header information – headers already sent by (output started at E:\facilis\is\index.php:9) in E:\facilis\is\wp-content\plugins\registered_only.php on line 66

    Warning: Cannot modify header information – headers already sent by (output started at E:\facilis\is\index.php:9) in E:\facilis\is\wp-content\plugins\registered_only.php on line 72

    Ideas anyone?

    Delete all leading and trailing spaces and carriage returns from the top and bottom of the plug in file if they are in there.

Viewing 15 replies - 1 through 15 (of 42 total)
  • The topic ‘Registered Only Plugin : Restrict entire blog to r’ is closed to new replies.