Page 1 of 1

Question from newcomer

Posted: Thu Mar 02, 2006 7:08 am
by dukejustice
Dear s9y Community.

I have a question regarding S9y. I ask because I don't read english fine. I also suffer from ADD and will suffer the effort to read if. So I need be told if I can do it not to loose time so hard to concentrate.

Is it possible to set up so that only this user can see this user's blog entries? For example, Marc can read Eric's entries, but not reverse.

I try setting groups. I found adminUsersMaintainSame option. This means I create group "privateeric", put Eric in it and then Eric can add Marc by himself to this group? Then Eric not member of "privatemarc" so no problem he can not read Marc's entries?

Do I understand? Hope I could explain my self fine.

Thank you very much.

Duke

Re: Question from newcomer

Posted: Thu Mar 02, 2006 12:25 pm
by garvinhicking
Hi!

Yes, you explained yourself fine and yes, it can be done.

First off, you should be using Serendipity 1.0-beta1. This is the most stable version up to date and contains a few bugfixes for Category Permissions.

Now, here's a step by step guide that should work. I will mention steps you will already have done, and those you can skip.

0. It is VERY important that you first enable the option "Apply read-permissions for categories" within your Serendipity configuration, if it is not already enabled.
1. You create the user "Eric"
2. You create the user "Marc"
3. You create a usergroup called "Erics Group". Give it the permissions you want Eric to have. Most important, do NOT check the "adminEntriesMaintainOthers" permission. This would override any of the following steps.
4. You create a usergroup called "Marcs Group" with the same permissions like above
5. You put the user "Marc" into "Marcs Group"
6. You put the user "Eric" into "Erics Group"
7. You create a category "Marcs Category". In the properties section of the category (where you can edit the name and description) you will give READ permissions to "Marcs Group" and WRITE permissions also to "Marcs Group".
8. You create a category "Erics Category". You will give READ permissions to both "Marcs Group" and "Erics Group". You will give WRITE permissions only to "Erics Group".

Now, when Eric creates an entry, he can only choose the "Erics Category" to write his entries in. Those entries will be readable for Eric and Marc, because Marcs group is contained in the READ privilege section.

When Marc creates an entry, he can only choose the "Marcs Category" to write his entries in. But when he is logged in, he will also be able to read Erics Postings.

I hope to have helped,
Garvin

HAHAHA!

Posted: Thu Mar 02, 2006 5:46 pm
by dukejustice
Mon cher garvinhicking. (french for My dear)

Thank you so very much.

After a couple hours and no headache, it works.

THANK YOU SO VERY MUCH AGAIN.

I will tell you what you just did to me. With my ADD, I have very few friends and hobby. I can not focus long enough to have a job. I am on a computer because it can wait for me and go fast or slow like I at any time. It will not shout to me when I do things or not. But you have given me one hobby just right now. I am so happy I cry right now.

Sorry. ok I stopped crying. Back to this.

Can I abuse your heart and kindness with an other question?

I see a plugin category. What happen to my site is that will have many user. Many users blogging with permission like you gave me instruction. When I have 100 category, block to right will be very much long. I looked into plugin config, but did not see how to filter for category with allowed permission only. Like I did step 7 and loggin like Eric and he could see category Marc still (but not post just like you said).

I know of PHP and mysql commands to change the code to filter if I need to. I only need know where to go because so many files in this excellent software.

Please accept my best gratitude again for your time.

Duke
-------------------
You made me happy so I make you happy too, I send you money to your paypal so you can buy something for yourself in your wishlist.

Re: HAHAHA!

Posted: Fri Mar 03, 2006 11:01 am
by garvinhicking
Hi Duke!

I'm very happy that I could help you. It's great to hear that you've found a hobby to participate on, which helps you somewhat in your illness. And it's great to hear, that I could be a part of that. So I hope you'll have fun writing your blog! Don't let any illness take away the joy. :-)

About your second question, I guess that you are talking of the sidebar plugin that shows up on your blog frontpage to visitors, right? This will usually show the categories that user have READ permissions to, if they are logged in. So you just need to remove READ permissions to a category for a group, if you don't want users to see that.

The actual PHP/SQL code of that can be found in the include/plugin_internal.inc.php file, the "serendipity_category_plugin" class.

I hope that helps you further,
have fun,
Garvin.