Customizing for an Open Online Community Platform

I'm presently assessing unacms for the purpose of constructing an online community platform. I've set up Spacenook, which aligns with my vision. However, I aim for all visitors to freely browse posts, feeds, discussions, and events without needing to log in initially. They should only be prompted to log in when they wish to create new posts, add comments, or like content. Despite reviewing the documentation multiple times, I'm unsure how to implement this feature. Additionally, I'm seeking guidance on expanding the categories. Your help is greatly appreciated.

  • 400
  • More
Replies (6)
    • Hello @Olu Ade !

      By default, the guests users in UNA can browse all your mentioned parts in the area. With the attempts to create new content they will get the message

      NOT LOGGED IN USERS CAN'T 'CREATE NEW [item]'.

      You may add the login block to every necessary "Create new" page via the Studio->Pages app and make it visible for the Unauthenticated level only.

      See more details in our docs:

      https://unacms.com/wiki/Studio

      https://unacms.com/wiki/Permissions-Builder

      https://unacms.com/wiki/Pages-Builder

      • Many thanks for your assistance, I have another question please, is there an API to create post/discussions? Many Thanks

        • Yes, guess this link will help you https://unacms.com/wiki/Dev-API . Every app has the

          BxBaseModGeneralModule::serviceEntityAdd
          

          method

          • Thank you for your response. I reviewed the link and noticed that the method BxBaseModGeneralModule::serviceEntityAdd($iAccount, $aValues) requires two parameters. Could you provide an example of what should be passed to this method? I checked the documentation but couldn't find any relevant information.

            • The method takes the profile ID as the first argument (it has the value of the result of the bx_get_logged_profile_id() function) and the array with values like

              array(
                     'title' => 'your title',
                     'text' => 'text",
                    )
              

              The keys of this array should be in the list of the form's fields.

              https://ci.una.io/docs/classBxBaseModGeneralModule.html#ab4caacfc70fdee0858e10345183d1426

              • Thank you very much for your assistance with my request; I truly appreciate it.

                I'm uncertain if the suggestion will work for me, so I'd like to clarify my requirements.

                I'm currently evaluating UNA because our existing platform no longer meets our needs. So far, UNA appears to be a good fit, but there's a crucial feature on our current platform that I'm unsure is available in UNA: the ability to automatically create posts/discussions via an external API.

                In our current setup, we create content on a separate system and use a cron job to post it to our platform. Is there a way to achieve this in UNA? If not, is there any documentation explaining the relationships between entities that need to be populated when creating a post/discussion? This is the main obstacle preventing us from transitioning to UNA.

                Thank you again.

                Login or Join to comment.