vahidbanei Hi, sorry for the late reply, please update the ext and test it again!

composer require irmmr/flarum-ext-rtl:dev-main
php flarum cache:clear
2 years later

Hello

Hope you are all well

When I enable the alternative voting layout feature in posts, I get an error formatting the discussions, so that some containers appear on top of each other:

The ones that appear on the left, I think they are supposed to appear on the right below the user’s picture.

In addition, for some programming reason, the alternative voting layout cannot be used in posts, in other words, they are not clickable.

Note that the problem also appears on the home page if the feature is selected to appear on the All Discussions page.

Thanks in advance

    @irmmr
    Thank you for developing the extension. I have used this extension. Please pay attention to the red area in the image below. This part causes the width of the displayed text in posts to be reduced. Please provide a solution for this issue.

      Hi alirezam , how are you?
      I got some help from a specialist here who helped me fix this and other related issues in the right to left extention.
      Here are some codes that if you add them to your custom CSS from your forum it will improve:

      /* Remove unnecessary spacing for post stream (RTL v0.1.4, fixed in main) */
      @media @tablet-up {
        .DiscussionPage-stream {
          margin-left: unset !important;
          margin-right: unset !important;
        }
      }

      Please let me know the result.

      a month later

      Updated to Flarum 1.8.8

      composer require irmmr/flarum-ext-rtl:dev-main

      Medelinor Hello there,

      If what you mean by the alternative voting layout feature in posts is fof/gamification, I have also added this plugin to the list of RTL plugins. I hope there won't be any issues. Otherwise, I would appreciate it if you could explain more.

      Also, I apologize for responding so late. I hope you are doing well.

        10 days later

        Hi irmmr I hope you are well

        Please note that I use translation.

        Exactly what I meant, and I was also wondering if the alternate voting layout appears to the right of the profile picture on the discussion page, or in flat dimensions below the picture. Or the left side of the replies:

        Also note that enabling the alternate voting layout in the discussion list does not generally show the arrow or icon:

        Notice in the last image on the left that when the alternative voting layout is enabled, the number of comments and number of views change places inconveniently.

        I have enabled both of these options on my forum, and will leave them enabled so you can have a closer look at the topic.

        I apologize for the delay in responding for reasons beyond my control

        Thank you very much

          Medelinor

          Hello, thank you.
          The issues you mentioned are not related to this extension at all. For example, you can deactivate theRTL support. After deactivating it, you will notice that the same problems you mentioned still persist with LTR as well. In other words, the Flarum discussion views and FoF gamification extensions create some UI issues together.
          Regarding the repositioning of the up/down voting box, these aspects have not been manipulated by the RTL support; they have only been prepared for right-to-left direction.

          If you disable the extension and take a look at Flarum with a LTR view, you will still see the same errors.

          In any case, if you're interested, you can use the additional CSS below to fix some bugs, but I don't recommend it because the errors exist in a basic form:

          .item-discussion-views {
              margin-top: -21px;
          }
          
          @media @tablet-up {
              .Post-votes.alternateLayout {
                 top: -60px;
                 right: -70px !important;
              }
          }

          If you still think I'm mistaken or have overlooked something, let me know. If the box isn't positioned correctly, change the numbers.

          Good luck!

            irmmr Hi again

            I didn't know this, thanks a lot for the clarification, is there a document or something I can look at to know the things related to RTL extension to help improve the interface.

            Thank you very much, this code helped me, I really appreciate it

              Medelinor

              You're welcome, I didn't do anything.
              I'm not sure if such a document exists.

              I'm glad your problem is at least partially resolved.

                Update 0.1.6

                composer require irmmr/flarum-ext-rtl
                • The ability to enable and disable RTL.
                • The ability to enable RTL based on the selected language in the forum.
                • Creating RTL files fundamentally by the compiler instead of rewriting CSS/LESS files.
                • Change all local files to RTL version.
                • Creating RTL for the admin panel.

                The additional CSS you added for rtl direction may cause issues for your forum.

                Soon, the /*rtl:ignore*/ directive and other related commands will be added to the extension. Added in 0.1.8 version.

                  Hi @irmmr Hope you are doing well

                  Can I know if this part of the forum has anything to do with the RTL extension?
                  I mean, there are some things that could be improved, and if it is related to the extension, I would be happy to share them with you to work on.

                  It's about the badges section, and here are some screenshots showing some of the places I go:

                  And:

                  Note that in the first image some of the words need to be moved to the right, and in the second image, a space needs to be added in the green vertical line.

                  Thanks in advance

                    Medelinor

                    Hi, thank you very much for reporting the issues.
                    I checked your forum. It seems that FreeFlarum has not updated the extensions it uses yet. The changes I mentioned in the last reply and some other changes have not been applied to FreeFlarum forums yet. That's why these issues may not exist in newer versions. With the update of this extension, such errors are likely to no longer exist.

                    It seems that FreeFlarum is using version 0.1.5 of the extension. The latest version I released is 0.1.9. If you think I'm mistaken and that these issues exist in the new version as well, please let me know. Thank you!