• Extensions
  • FriendsOfFlarum Byōbu, well integrated, advanced private discussions

IanM temporally where i can comment, edit code to be able to post a private message without 1 recipient required?

  • IanM replied to this.

    peopleinside I strongly don't recommend making even a temporary change like that. There's so much that can and will break in this extension if that's done..

    If you want to test private discussions in some way, I suggest you create a new user for this purpose and spam that new account..

      IanM thanks, I don't need test, just trying to be able to post a message sticky that can be seen from users.
      Due to recent changes I cannot post anymore this to anyone maybe for the issue related to users group message that is not working. I'm just seeing if I can have a quick fix but I cannot understand in the code what changed.

      I will have to wait to understand first if you are able to reproduce the issue that users group did not get the message so I cannot have a sticky post visible to all members.

      • IanM replied to this.

        peopleinside I will have to wait to understand first if you are able to reproduce the issue that users group did not get the message

        Yes, I can reproduce this, and I'm still looking into the problem.

        peopleinside I cannot have a sticky post visible to all members.

        I'm not sure a stickied private discussion for all members is the way to go here actually. Could you not create an 'Announcements' or similar tag with members only visibility permission and sticky a regular discussion to that for all members to see?

        JRay That fixed my issue. Thanks @ianm you rock!

        Awesome! Glad it's working for you now. Do let me know if you discover anything else amiss and I'll try and address it for you 🙂

          DursunCan

          php flarum cache:clear
          php flarum assets:publish

            IanM

            Yes, I can reproduce this, and I'm still looking into the problem.

            If this get fixed maybe all will be fixed for me as I can post a message to members and stick it and done.
            I will add a tag to hide from all discussion, I have already set this and is nice, works... also if I had to remove the block to edit tag in the code.

            • IanM replied to this.

              peopleinside Help me to understand what your end goal is with this sticky post?

              You want a sticky post that does not appear to guests? Is that correct?

                IanM
                I would love to see private discussions not listed in all discussion but currently there is no option that allow this.
                This will also help to prevent sticky private discussion to be sticky also on all discussion.

                Currently I cannot have a sticky private message visible to all members under private discussions because of the issue that if I post a message to members this is not visible to them and also not notified to any members.

                1. Issue: cannot decide with an option to hide private discussions from all discussions list
                2. Because of the issue on point 1 if i sticky a private message this will be sticky also on all discussion so I assigned a tag to hide from all discussion but still have all other private message without a tag listed in all discussion
                3. Currently I can create a private message to members but no one except admin will see it due to the issue you are able to reproduce.

                I want allow community users to send private message so I want sticky a post in private discussion with rules.

                • IanM replied to this.

                  What I can see here on discuss is that (maybe because of Websockets) if you remain on "Private Discussions" all discussions that are updated in the meantime get pushed to this category as well. So you can actually see normal discussions while browsing the Private Discussions Tab.

                  • IanM replied to this.

                    peopleinside I would love to see private discussions not listed in all discussion but currently there is no option that allow this.

                    This is not a feature of byobu, as I said here IanM - if a discussion is visible to the user, then it will always be included in 'All discussions'.

                    peopleinside Currently I cannot have a sticky private message visible to all members

                    Think about this for a moment. A private message to all members is then by nature not a private message. This is why I asked you to help me understand what your end goal is IanM so I might be able to offer a better way to achieve what you're asking.

                    GreXXL You are absolutely correct, this is a defect with the current websockets implementation. Once we get byobu to a good place, then we can speak to @Kyrne about potentially adding byobu support to his extension.

                    IanM

                    php flarum cache:clear
                    php flarum assets:publish

                    I have executed the above commands, it is not resolved.

                    • IanM replied to this.

                      DursunCan I meant, have you tried anything other than my suggestion?

                      Anyhow, I think I've found the problem. Can you please visit {your_forum_url}/api. Look for the keysbyobu.icon-badge and byobu.icon-postAction - what values do they hold at the moment?

                        1.0.0-beta.6

                        • Address issue where the default FA icons were not serialized if admin had set empty strings (DursunCan )
                        Installation
                        composer require fof/byobu:^1.0.0-beta.6
                        php flarum cache:clear

                        Hi, I got an error

                        <br />
                        <b>Fatal error</b>:  Uncaught Laminas\Diactoros\Exception\InvalidArgumentException: Unable to encode data to JSON in Laminas\Diactoros\Response\JsonResponse: Malformed UTF-8 characters, possibly incorrectly encoded in /www/forum/vendor/laminas/laminas-diactoros/src/Response/JsonResponse.php:144
                        Stack trace:
                        #0 /www/forum/vendor/laminas/laminas-diactoros/src/Response/JsonResponse.php(79): Laminas\Diactoros\Response\JsonResponse-&gt;jsonEncode()
                        #1 /www/forum/vendor/flarum/core/src/Api/JsonApiResponse.php(27): Laminas\Diactoros\Response\JsonResponse-&gt;__construct()
                        #2 /www/forum/vendor/flarum/core/src/Foundation/ErrorHandling/JsonApiFormatter.php(41): Flarum\Api\JsonApiResponse-&gt;__construct()
                        #3 /www/forum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(67): Flarum\Foundation\ErrorHandling\JsonApiFormatter-&gt;format()
                        #4 /www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors-&gt;process()
                        #5 /www/forum/vendor/flarum/core/src/Http/Mi in <b>/www/wwwroot/forum/vendor/laminas/laminas-diactoros/src/Response/JsonResponse.php</b> on line <b>144</b><br />

                        When I fresh my forum, it works well. However, continuing to post will still report an error.

                        • IanM replied to this.