2 sam2kb Jul 02, 2008 14:03

ok, thx
but if i need to set the password as i like, how to do that?
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.
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
If you want to use custom passwords you have to wait until I make a plugin, it's not going to be soon.
sam2kb, thx a lot.
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.
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.
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.
[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