·
Added a discussion

Can I hide users of a certain membership level in the user list?

  • 1709
Comments
    • you can hide certain levels, from showing in people, by making it invisible to them, sure.
      if you hide certain page blocks from "standard" then premium can see him, but standard cannot.
      so in the people page, if you dont want standard to have access to see who is premium, you can hide ...hmmm, warum .. warum... warum...
      i see what you're asking, i am uncertain right now.
      are you wanting to hide say, "account" or "premium" from standard?
      or say hide "account" from "premium" ? or vis a vis?
      this is an interesting question..

      • Thank you for your reply, Omar Amer ! I want to hide my "Beginner" level from all other users. So in /page/persons-home everyone should be listed, except the Beginners.

        • in page/persons-home all user levels should have visibility except beginner to persons home (layout in the page editor) (settings)>> visible to " ".
          and also in pages>> persons home in studio, make a block that gives the beginners their own view, (visible for beginners only, and no other levels.) put it at the top, you will probably need to make custom sql entries for this, since things like bx_post_entity etc i do not believe can be forked into multiple display levels like that by default,
          i think using the html or raw skeleton would be best for this. although i have not done this myself..
          this is a question best suited for LeonidS, or alex t...

          • Maybe it could be done the other way around: create a new block with Standard and Plus users, this way excluding the Beginners. But I don't know how to do this either. Can someone point in the direction of a tutorial for this?

            • Hello Achim Wagenknecht !

              No, if the user already has the confirmed profile then he will be visible for others. You may limit only his activity and actions.

              • Thank you for the clarification! But maybe I could customize a user list with the serviceBrowseByAcl method? It's mentioned here: https://github.com/unaio/una/issues/2709 . How can I use this?

                • Yes, it's possible. You need to create the new "service" block via Studio->Developer->Pages->Persons->the necessary page and place the following content there:

                  array (
                   'module' => 'bx_persons',
                   'method' => 'browse_by_acl',
                   'params' => 
                   array (
                    0 => 
                    array (3, 7, 8),
                   ),
                  )
                  

                  Where is the bold line - the ids of necessary mem levels (can be checked in Studio->Permissions page, just hover on any links there like "36 actions" and you will see the URL like studio/builder_permissions.php?page=actions&level=7 where the bold part means what you need).

                  • Sounds great, thank you! But I can't find the "service" block. Shouldn't it be in the "Add New Block" window, section "Skeletons"? I tried "raw" and "custom", but both display the source code rather then the profiles. System and modules are all up to date, cache deleted.

                    • It should be done via Developer app, not Pages.

                      • Thank you! Now I have the desired list. 😀

                        • Is there an easy way for this list to be configured to show the newest users first?

                          • @LeonidS I have entered this array but when I click to save, I just get a neverending loading ring and it won't submit. If I remove the code from the field then the Save button will work but then there is no code applied (obviously). Is something wrong with my code that is not letting it submit for some reason?

                            array (

                             'module' => 'bx_persons',

                             'method' => 'browse_by_acl',

                             'params' => 

                             array (

                              0 => 

                              array (11),

                            ),

                            • Hi @Corey Dozier !

                              I corrected my previous post - in this editor mode, the post has lost the closing ) symbol.

                                Login or Join to comment.