users and categories

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Mack

users and categories

Post by Mack »

Is there chance that every user have his own category, and cannot post in categories of other users?
I want give to every user his personal category to make post in it.

Thanks for answers
mack
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: users and categories

Post by garvinhicking »

Yes, that is possible. But only if the users are "editor" users. Then you can create categories which belong to editors by just unchecking the [ ] All Authors checkbox.

Entries in such a created category can only be posted there by the owners of the category and superuser users. Maybe also by "chief" users, but I haven't checked that out.

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Mack

Post by Mack »

Thanx for answer

But I mean, can user 'A' have his personal categories named 'AA' ?

And other users 'B' , 'C' , 'D' , etc. cannot write in category 'A'
Guest

Post by Guest »

I am sorry for a new post :) , but I found a new solution

Is it problem for you to write code, where will note be 'All authors - check box' only for users with level 0 (this is in manage categories)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
Is it problem for you to write code, where will note be 'All authors - check box' only for users with level 0 (this is in manage categories)
This is no problem. Just open serendipity_admin_category.inc.php and go to line 162 which should look like:

Code: Select all

    <tr>
        <th><label for="all_authors"><?php echo ALL_AUTHORS; ?></label></th>
        <td><input id="all_authors" type="checkbox" name="serendipity[cat][all_authors]" value="true" <?php echo (isset($this_cat['authorid']) && $this_cat['authorid'] == '0') ? 'checked="checked"' : ''; ?> /></td>
    </tr>
Just remove those lines. But we will not integrate this into the main release, since we previously had requests that "simple users" are able to create categories for all other users to post in...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Mack

Post by Mack »

Thank you, thank you, thank you!!

You save my life :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You're welcome - have fun! :)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply