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.
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
*bawls* I guess I'm stuck with a public blog. My parentals and some family know about my site and it sucks.
Anonymous
Unregistered
Posted 8 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.
rodrigoreis51
Member
Posted 8 years ago #
I can post comments with username and email registered. Why ?
Anonymous
Unregistered
Posted 8 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.
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.
Vohiyaar, this thread might help...
http://wordpress.org/support/10/4048