Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
Comment 'Then JS array will h...' to 'Edit "Who Can Post" selection field'
Comment to Edit "Who Can Post" selection field
    •  ·  LeonidS
    •  ·  In reply to
      Genesis
    •  ·  2021-09-13T06:28:01+0000

    Then JS array will have a look like:

    const aVars = [2, 4, 5, 6, 7, 8, 'c', 's'];

    6 is laready a value for the "Selected friends" option.

      •  ·  Genesis
      •  ·  In reply to
        LeonidS
      •  ·  2021-09-13T12:56:49+0000

      I still shows up. I think it's different. 6 doesn't remove it. It's in the list with "group", "friend", "space" in the apps like albums. In the timeline, it says "persons" instead of "friend". 6 is for "selected friends".

      Here's two more screenshots.

      remove friend post.jpg 11.3 KB
      remove persons.jpg 12.4 KB
        •  ·  LeonidS
        •  ·  In reply to
          Genesis
        •  ·  2021-10-03T08:03:03+0000

        If you need to hide the freidsna dn persons variants then the code in the RAW block will have the next view (but the "Asynchronous Mode" for the "Create Post" block should be disabled):

        <script language="javascript">
        const aVars = ['PERSONS', 'FRIENDS'];
        aVars.forEach(reduce_vars);
        function reduce_vars (sItem)
        {
        $(".sys-privacy-group").children().remove('optgroup[label=' + sItem + ']');
        }
        </script>

      See more...
      • Features
      • Pricing
      • Forum
      • Blog
      • Market
      • About
      • Copyright
      • Contact
      • Terms
      • Privacy
      • 𝕏
      Search
      UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
    • Platform
      • Features
      • Core CMS
    • Resources
      • Documentation
      • Marketplace
      • Discussions
      • Support Groups
      • API Reference
      • UNA CMS on GitHub
      • Webinars
      • Blog
    • Community
      • Discussions
      • Groups
      • Webinars
    • Pricing
    • Are you sure?
      Please, enter a value here