View previous topic :: View next topic |
Author |
Message |
clio

Joined: 25 Jan 2002 Posts: 5 Location: Boston, USA
|
Posted: Fri Oct 25, 2002 1:41 am Post subject: password protected blog |
|
|
blogs can sometimes be personal. i don't want certain people reading my blog. is there a way i can make my blog password protected? like only people who i give the username/password to access the blog can see it? i know you can do that for webcams and stuff, so can i do it for this? |
|
Back to top |
|
 |
steven
Joined: 20 Oct 2002 Posts: 1 Location: Atlanta, GA, USA
|
Posted: Fri Oct 25, 2002 2:12 am Post subject: |
|
|
the best way to do it, if you have apache webserver, is with htaccess. |
|
Back to top |
|
 |
clio

Joined: 25 Jan 2002 Posts: 5 Location: Boston, USA
|
Posted: Fri Oct 25, 2002 2:36 am Post subject: |
|
|
bah. should be built in b2. like i want maybe a 'private' category, where users need a special password to read entries in that category. |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Fri Oct 25, 2002 3:48 am Post subject: |
|
|
That is a different request (or at least more specific) than your original post - password protecting certain categories would be an interesting feature request. I would probably use this if it were part of b2. |
|
Back to top |
|
 |
imeridian
Joined: 12 Feb 2002 Posts: 191
|
Posted: Fri Oct 25, 2002 9:02 am Post subject: |
|
|
There is support for a private category, it's just not turned on by default.
B2 will not show posts that are in category 0, but of course you can't add a category 0 through B2 itself, so you need to do it with phpmyadmin or via mysql command line, etc, naming it something like "private" or "unpublished"
If you then want someone other than yourself to see them you need to make a copy of the blog.header.php and change the mysql queries where it says "AND post_category > 0" to "AND post_category = 0" then include this new blog.header.php, renamed to something like zero.header.php in a seperate b2 index, which can use all the other files from your existing b2 installation. As mentioned then, simply put an .htaccess mod_auth block on it.
It's easy even though it seems complicated, so if you can figure it out, then there you go. _________________ -indi<br>
http://indiboi.com
http://artlikepornstars.com
http://www.positivefusion.com |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Fri Oct 25, 2002 4:10 pm Post subject: |
|
|
That sounds like a good way to make it work now (I agree, sounds more complicated than it is), but I also think it would be an interesting "built-in" feature. _________________ Yahoo! Messenger ID: alex_t_king |
|
Back to top |
|
 |
clio

Joined: 25 Jan 2002 Posts: 5 Location: Boston, USA
|
Posted: Fri Oct 25, 2002 11:05 pm Post subject: |
|
|
i know php,mysql and could prolly do that, but i'm lazy and too busy. it should be built in!
it's something i want in the future. i stopped posting personal stuff because of that so i don't need the feature now, but if it existed, that would rock. |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Fri Oct 25, 2002 11:07 pm Post subject: |
|
|
If you haven't already put this in as a feature request, might be a good idea. _________________ Yahoo! Messenger ID: alex_t_king |
|
Back to top |
|
 |
clio

Joined: 25 Jan 2002 Posts: 5 Location: Boston, USA
|
Posted: Sat Oct 26, 2002 12:55 am Post subject: |
|
|
how do i put in 'feature request' ? |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Sat Oct 26, 2002 1:12 am Post subject: |
|
|
Post a new topic in the feature request topic in this forum. |
|
Back to top |
|
 |
clio

Joined: 25 Jan 2002 Posts: 5 Location: Boston, USA
|
Posted: Sat Oct 26, 2002 3:32 am Post subject: |
|
|
wahoo, someone moved it here. i'm a lazy ass. lol. |
|
Back to top |
|
 |
allusion
Joined: 16 Jun 2002 Posts: 73 Location: Houston
|
Posted: Sat Oct 26, 2002 6:58 pm Post subject: |
|
|
I've been messing around with user based entry access on my blog, so let's say matt, john, and joe can read about a date last night, but not sarah. Or sarah and everyone else logged in except ashley can read a post about sarah. When I get the code more modular I'll post it. |
|
Back to top |
|
 |
Drinyth
Joined: 28 Oct 2002 Posts: 17
|
Posted: Wed Oct 30, 2002 12:08 am Post subject: |
|
|
Another request for this feature.
I'm planning to use the software for more of a journal so that friends of mine can keep up to date with what's been going on in my life. It would be nice to be able to keep some records "private" though and for only me to view them. That way, I can still keep an accurate online journal, but can also post "private" items that I don't really care to share with the rest of the world. |
|
Back to top |
|
 |
imeridian
Joined: 12 Feb 2002 Posts: 191
|
Posted: Wed Oct 30, 2002 12:20 am Post subject: |
|
|
Is what you guys need a little script to do the mysql work to add the category zero? ...and a copy of the altered blog.header.php so that it'll load those entries? ....because like I said, this already works... I've been using it for months. _________________ -indi<br>
http://indiboi.com
http://artlikepornstars.com
http://www.positivefusion.com |
|
Back to top |
|
 |
Drinyth
Joined: 28 Oct 2002 Posts: 17
|
Posted: Wed Oct 30, 2002 12:39 am Post subject: |
|
|
I guess it wasn't so much that I was worried about hacking it to make it work. But it seems like there are quite a number of people here looking to do the same thing. I figured maybe it was worth investigating adding it to the actual script itself because of the demand.
One thing about hacks that turns me off towards them is that as new versions are released, the hacks that are created sometimes no longer work. And if they do work, there's always that extra step of having to update your hacks after updating your script. Personally, that's why I try and stay away from manual hacks as much as possible. |
|
Back to top |
|
 |
|