גישה לקטגוריה לאחר 10 פוסטים (חברות אוטומטית בקבוצה)

Hi guys,

we migrated a backup from NodeBB to Discourse for testing. In NodeBB we had a ticket exchange category that was only visible for active users with >= 10 posts to avoid scammers.

Setup before:

  • Group Ticket Exchange Access

  • Auto-join with rewards plugin (if >= 10 posts then add to group)

  • With category privileges only that group could access the category

In Discourse when I try to restrict the category to the migrated group and its members only, I can edit the permissions but the Save Category button stays disabled (see screenshot). Any idea why?

Second issue: What’s missing is the automatic join rule (>= 10 posts). Could this be done natively, maybe by adjusting trust level, or do I need a plugin?

Category permissions in Discourse are based on group memberships. So for a category to be accessible only for users with at least 10 posts, you would need a group to which users are added automatically after 10 posts.
If you only want to avoid scammers, I think you could switch to using the trust level system of Discourse and allow only users with trust level 1 or 2 and up to access that category.
But trust levels are more based on reading and spending time interacting with different topics in the community than about posting.
Without a plugin, you cannot add requirements. You can only adjust the ones that Discourse provides. Trust level one is only based on reading.

activity default setting
Read posts 30 tl1 requires read posts
Visit topics 5 tl1 requires topics entered
Total reading time 10 tl1 requires time spent mins

Trust level 2 requirements offer more criteria. You can include things like days visited, likes received, and replies to topics created by others. So it could be configured quite close to your current 10 posts.

activity default setting
Read posts 100 tl2 requires read posts
Visit topics 20 tl2 requires topics entered
total reading time 60 tl2 requires time spent mins
Days visited 15 tl2 requires days visited
Likes received 1 tl2 requires likes received
Likes given 1 tl2 requires likes given
Reply to topic 3 tl2 requires topic reply count

If you don’t want to use the built-in trust level system, take a look at Discourse Dynamic Groups, which allows adding users to other groups automatically based on some criteria. Or you create a custom badge and use the User Group Membership Management Through Badges automation

Currently not, but I am interested to find out. Are you admin or moderator? Is there anything special about the group or category? If you look at the “Allgemeines” section without changing anything, is the save button disabled there too?

4 לייקים

I just got it working. I had to change something else in another section of the category settings to get the button activated. Might have something to do with the migration.

Thanks a lot for showing the different solutions. I think we will try the core trust level system with some adjustments for level 2 and add two groups to the category permissions. For new users we would use trust level 2, for already qualified users from nodebb we add the migrated access group. That should work I guess. Thanks again, I already like Discourse :slight_smile:

לייק 1

Was it the name, category color, or something else? Perhaps someone else will encounter this problem at some point and then find this topic using the search function. So sharing which setting had to be changed can be helpful for future readers.

לייק 1

You are absolutely right. I changed the category color in General section. I didn’t specify because I think it doesn’t matter which other setting you change. It just seems that only a group change in Permissions didn’t have an effect on the Save button in my case.