WordPress.org

Ready to get started?Download WordPress

Forums

Only registered users can view? (8 posts)

  1. audra
    Member
    Posted 10 years ago #

    I was wondering if there was a hack or something I could install that would make it so only registered users could view my blog. I know there's a password thing, but that's not what I had in mind. It's sort of like a friend's only LJ thing I'm looking for. Thanks in advance.

  2. tedfox
    Member
    Posted 10 years ago #

    The last time somebody mentioned this.... apparently there isn't a hack or anything. and that you should just use .htaccess
    But that again... I could be wrong..... and I would love to have a hack liddat.... then my users won't be a double set of ids and password

  3. audra
    Member
    Posted 10 years ago #

    *bawls* I guess I'm stuck with a public blog. My parentals and some family know about my site and it sucks.

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    I am sure someone who knows will correct me if I am wrong, but it seems to me a cheap (and very dirty) way would be to put a copy of auth.php in your main directory and add something like:
    `<?php require('wp-config.php'); require_once('auth.php'); ?>'
    To the top of your index page.

  5. rodrigoreis51
    Member
    Posted 10 years ago #

    I can post comments with username and email registered. Why ?

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    if it is any help, I think I accomplished that (still testing it, but so far it's worked fine) by adding the line
    require($curpath.'/auth.php');
    just after
    require($curpath.'/wp-config.php');
    to wp-blog-header.php, copying auth.php to the main dir and changing the reference to wp-config in auth.php to reflect the directory change (from .. to .).
    Hope it helps.

  7. Vohiyaar
    Member
    Posted 10 years ago #

    I tried to do this,
    If I am not logged in, it asks me to login and then works fine
    But if I am already logged in, then it takes me into the post area instead of just showing me the post.

  8. carthik
    Member
    Posted 10 years ago #

    Vohiyaar, this thread might help...
    http://wordpress.org/support/10/4048

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.