About default visibility

Hello,
How to set the default visibility of the Visible to field for disscussions, posts and others?
In the sys_privacy_groups table I can change the order but not the default one.
From forms app I couldnt find its list.
Any idea?

  • 500
  • More
Replies (16)
    • You may set the "Default value" for the "Visibility" field in Studio->Forms App->Posts module->Displays->Add Posts area (example for the "Posts" app). And don't please touch the "sys_privacy_groups" table. It may seriously corrupt the UNA's work.

      • Ok I found it but it is a manual text box.
        If I write there Members for example do you think that it will work?

        • May be I need to write the ID from the sys_privacy_groups :)

          • Hi, interesting question, but not sure that I understood your answer Leonid, or I did not understand the question.
            What I would like to do, for example, is to be able to set the visibility of the default profiles to "Member (only)".
            How am I doing this?

            • Yes the question is  to set default visibility of many things to Members.
              So that even the users don`t select a Visibility option the posted content will be seen by the members only.

              • So, that's what I would like to do, but I think Leonid was talking about the visibility of the fields ...

                • Yes I guess at first i couldn`t explain it clearly. Lets see what method he will show us :)

                  • Hi all!

                    Ok, let me clarify my previous answer with the example when the operator of UNA site wants to make the  "Members only" variant as the default value for "Privacy" (or "Visibility") field in the Groups app.

                    First of all, the operator should execute the next query in the database of the UNA site:

                    UPDATE `sys_privacy_groups` SET `active`=1, `visible`=1 WHERE `title`='_sys_ps_group_title_members' 

                    It's necessary to do because as the first step, by default, the "members" group is disabled.

                    After this stage, the operator should enter to the Studio->Forms App and find there the "Groups" module. In the appeared line need to click on "7 displays" link (the number can be different if the operator already added / deleted displays). 

                    In the new pages need to find the "Add Group" and click the "9 fields" link (this number can be different too).

                    In the new page find the "Privacy" field and click the "Pencil icon" in the same line.

                    In the appeared popup you should set the value in the "Default value" field. The "Members" group has "4" value in the system, so you need to set there "4" (2 - this is a "Me Only", 5 - "Friends",  the "Groups" app has the own variants like "c" letter means "Closed").

                    Now the "Create a new group" form will have the default value "Members only" in the "Privacy" field.

                    PS In the RC9 this way doesn't work for the "Posts" and "Discussions", but it is already fixed https://github.com/unaio/una/issues/1543 and will be available in the RC10.

                    • Yes it is clear now Leonid thanks a lot :)
                      PS
                      While I am replyin to this through the reply button again this came:
                       "{"id":5183,"parent_id":5182}"

                      • Thank you for the precision Leonid, in fact it is managed in the same way as any field that refers to a data list, we can choose the default, it's great! :-)

                        • Responding trial from Chromium Version 68.0.3440.106 (Developer Build) Mageia.Org 6 (64-bit)
                          -> Everything normal

                          • Responding from firefox esr 52.9.0 (64-bit)
                            Now the previous error  "{"id":5183,"parent_id":5182}"  didn`t happen
                            Everthing seems normal

                            • From my side in FF 61 it works fine...

                              • respond test with the firefox and chromium versions I mentioned :
                                In the first click to respond button, sometimes nothing happens

                                then in the second click the text box comes and when you send the message a page with {"id":5190,"parent_id":5188} comes only. But message is posted always.
                                I will try to cath the error in the browser console and write you.

                                • The detail of the error you are giving is for this bug https://una.io/page/view-discussion?id=1081

                                  Are you sure it does not only appear if you respond via a notification?

                                  • Hey Baloo, yes I've received same error message and it was also mentioned I think over in Online.me. I did click on ur link and thanks for bring this issue up as well.

                                    Login or Join to comment.