1 noname Jul 02, 2008 09:37
3 noname Jul 04, 2008 01:25
ok, thx
but if i need to set the password as i like, how to do that?
4 sam2kb Jul 04, 2008 01:36
If you are going to set one password for all posts it pretty easy, but if you need custom passwords you would have to store them in DB.
This hack does't have to "know" passwords or get them from DB.
If you don't like the length just cut passwords to 4-6 symbols.
5 noname Jul 04, 2008 01:44
because i want to lock the post with some same password for some people..
so, can i set the password as i like?
thx
sorry for my bad english
6 sam2kb Jul 04, 2008 05:38
If you want to use custom passwords you have to wait until I make a plugin, it's not going to be soon.
7 noname Jul 05, 2008 12:37
sam2kb, thx a lot.
8 edb Jul 05, 2008 19:26
Does "protected" not work for your needs? A protected post is only visible by people who are registered AND members of the blog the post is in.
9 topanga Jul 05, 2008 19:53
EdB wrote:
Does "protected" not work for your needs? A protected post is only visible by people who are registered AND members of the blog the post is in.
But then you must be logged in to that blog.
You don't see the 'warning 'here is a post' if you are not logged in.
10 edb Jul 05, 2008 21:13
True, but NoName didn't actually ask for password-protecting only part of a post so I thought maybe the answer here is a bit more complicated than it needs to be.
11 sam2kb Oct 02, 2008 05:13
[url=http://forums.b2evolution.net/viewtopic.php?t=16830]Protected posts plugin[/url]
Welcome to the forums!
I made a hack, you can test it here http://ru.b2evo.net/demo/blogs/blog2.php/2008/07/01/-8
Post password: a02f883f6d5e580f339260fc13dec82d
When you create a post the password is generated from post ID and key phrase and displayed to you. Write it somewhere because this simple hack doesn't store passwords.
Post content should look like
Warning message will be shown in search and post list modes.
1. Edit file /inc/items/items.ctrl.php line 316
2. Edit skin file. In my case it's /skins/evopress/single.main.php lines 116-122
3. Create new file /conf/_config_TEST.php with this content