1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Restrict Permission by Number of Posts

Discussion in 'XenForo Questions and Support' started by bibitbunga, May 20, 2016.

  1. bibitbunga

    bibitbunga Member

    So I have a certain forum which I want to apply some restriction. Only members with minimal 30 posts that are allowed to create thread therem how may I do this?
    Thank you
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Create a user group and promotion which promotes members who have at least 30 posts to that group.

    Revoke the post new thread permission in that node for the registered user group, allow it for the promoted user group.
     
    bibitbunga likes this.
  3. bibitbunga

    bibitbunga Member

    how to promotes members who have at least 30 posts to that group?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. bibitbunga

    bibitbunga Member

    I have created the user group promotion. It should be over 500 members added to the new secondary group as ruled on promotion. But I check that the promoted users only added 1 by 1 within minutes. Not instant 500 members in that new promotion group. Is this normal? Thanks
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Only recently active members are promoted automatically.

    Run the Rebuild User Group Promotions under cache rebuild - admin.php?tools/rebuild
     
    bibitbunga likes this.
  7. bibitbunga

    bibitbunga Member

    Thank you! I have seen them coming as the new promoted group.

    I have set everything and want to make sure it is correct. How to view forum as other account? I want to see as other accounts to confirm.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    The permissions analyzer will confirm whether the member can/can't post threads in that forum.
     
  9. bibitbunga

    bibitbunga Member

    So are you saying we could not login as other account? I thought that we could because we are admin :D

    Anyway where can I see permissions analyzer?
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    There is no ability to log in to other member accounts.

    Use the ACP search at the top right and enter 'analyze'.

    Most things can be found using the ACP search.
     
    bibitbunga likes this.
  11. bibitbunga

    bibitbunga Member

    Thanks Paul :)
     
  12. Mr Lucky

    Mr Lucky Well-Known Member

    You can see what they see using Test permissions
     
    bibitbunga likes this.
  13. Brogan

    Brogan XenForo Moderator Staff Member

    I would advise against using the test permissions function.

    It has caveats and most people find it confusing.

    The analyze permissions function supersedes it.
     
    bibitbunga likes this.
  14. bibitbunga

    bibitbunga Member

    Paul, I have make a new promotion for "registered" members that have posted 30 messages will be promoted as "registered active"

    And then in this forum of mine where I want to restrict that people who would be able to post there has posted at least 30 posts, I have set the node permission. I set permission "NO/red" of post new threads for "registered" and I set "Yes/green" for "registered active".

    But it seems not work. I see some members that have posts below 30 (and I checked, they are not have secondary group "registered active" - just primary group "registered") and they are able to post. I see some threads made by "registered", where it should be "registered active" that has that access.

    Am I doing wrong? What is the difference between "NO/red" and "Grey/not set" in permission? I used the red one and hence the problem. And now I've changed to grey. Hope it would work..
     
  15. Martok

    Martok Well-Known Member

    Node permissions don't have a grey "Not Set (No)", they have a grey "Inherit". "Not Set (No)" is a user group permission.

    Red is "Never" and you should generally not use this as it cannot be overridden. You should use "Not Set (No)" in group permissions or "Revoke" in Node permissions instead.

    As Paul said, you need to set the Post New Thread permission in that node (ie in node permissions, not user group permissions) to "Revoke" for the registered user group, and set it to "Allow" in that node for the promoted user group.
     
  16. bibitbunga

    bibitbunga Member

    Hi Martok, this is the one I am questioning. To revoke the registered user group in that node permission, it is to choose grey or red?
     
  17. Mr Lucky

    Mr Lucky Well-Known Member

    Revoke is neither, it is orange.
     
    bibitbunga likes this.
  18. Martok

    Martok Well-Known Member

    Indeed, as @Mr Lucky says, Revoke in node permissions is orange.

    Screenshot_2016-06-02-08-37-16.png
     
    bibitbunga likes this.
  19. bibitbunga

    bibitbunga Member

    @Mr Lucky @Martok Oh I see! This explains why the non-promoted group still sees it! :D

    Ok, so the promoted group will include admins and moderators also, right? Because the only requirement is posts > 30..

    In the promoted group, should I set "edit thread by anyone" to revoke, never, or inherit? In order to make the administrators can edit thread, and the promoted ones not able to edit as they set in primary group's permission

    Sorry if I am confusing everyone :(
     
  20. Martok

    Martok Well-Known Member

    It will include everyone who meets the promotion requirements.

    If it's only the administrator user group that you want to have that permission then you give it to that user group, not the promoted user group. However if administrators are to have that permission everywhere, it should be assigned in their user group permissions, not in node permissions.

    I think you're getting confused over permissions and when to assign at group level (which are global permissions) and when to assign at node level (which are permissions specific to a forum/node). I suggest you (re-)read the guide on permissions:

    https://xenforo.com/community/resources/implementing-permissions-across-multiple-user-groups.358/

    https://xenforo.com/community/resources/understanding-permissions.360/
     
    bibitbunga likes this.

Share This Page