View previous topic :: View next topic |
Author |
Message |
minay
Joined: 31 Aug 2003 Posts: 2
|
Posted: Sun Aug 31, 2003 9:47 am Post subject: multiple bloggers but only admin can read posts? |
|
|
Hi,
This is an idea I have as a birthday present for my sister.
I'm making a site for her and I want her friends (and family) to post messages and images for her to see. Naturally I thought the easiest way was for them to register as users in b2. That way, I can be admin and when they register, I can easily accept them. Once they are accepted they can post 'happy birthday' messages and whatnot for her.
The problem is, I dont want them (the friends/family) to see what *other* people posted. I only want the admin to be able to see the messages. So that when my sisters' birthday comes, I can just give her the password and then she can see the messages.
Is that possible? I hope it is. It would really make a nice birthday present (cheap too).
I hope it happens! And thanks in advance for reading this.  |
|
Back to top |
|
 |
Viper007Bond
Joined: 15 Aug 2003 Posts: 266 Location: Portland, Oregon, USA
|
Posted: Wed Sep 03, 2003 10:44 am Post subject: |
|
|
I don't see how it'd be possible without significant editing. As my friend says, "anything is possible with PHP". But I know of no way in the options or something to make it like that. b2 is designed to allow everyone to read it as far as I know.
Ooo, idea. Don't allow anyone access to index.php besides your sister. Give posters the link to b2edit.php or whatever, but edit it to not show any of the other posts below (should be simple to remove that code). That should work... _________________ http://www.viper007bond.com
If you haven't already installed b2, I advise you look into WordPress or b2evo instead as b2 is dead. |
|
Back to top |
|
 |
minay
Joined: 31 Aug 2003 Posts: 2
|
Posted: Sat Sep 06, 2003 11:56 am Post subject: |
|
|
how do you do that?
im pretty advanced in html, but not so much in php so please be specific. |
|
Back to top |
|
 |
sinsation
Joined: 02 Sep 2003 Posts: 27 Location: Seattle, WA
|
Posted: Sat Sep 06, 2003 6:36 pm Post subject: |
|
|
In b2edit.php, look for line 336 or thereabouts:
[php:1:90844385d7]include($b2inc."/b2edit.showposts.php");[/php:1:90844385d7]
Change it to:
[php:1:90844385d7]if ($user_level >= 10) {
include($b2inc."/b2edit.showposts.php");
} else if ($user_level <= 9) {
echo "<center>Post view disabled.</center>";
}[/php:1:90844385d7] _________________ Dijitalsin.net | Art.Code.Writing.Midget Sex | Coming soon to a browser near you. |
|
Back to top |
|
 |
|