Yes, I have a WordPress Multisite. But on the main site, I use the Broadcast plugin to broadcast all posts to the main site. So, I activated the plugin only on the main site.

EDIT: I cleared Flarum and WordPress cache, and now it works successfully also on the other sites of my Network without any problem. Thank you very much 😉

2 months later

@clarkwinkelmann

Is it possible to use this plugin without linking flarum accounts to wordpress accounts, that is, so that only flarum accounts are required and WP accounts in general are not used (and not required) or created?

I only need the WP site to show comments from flarum, and for a created new post on WP to create a new thread on the flarum forum. Is it possible to do that?

    jaclas yes, absolutely!

    In the extension there are 2 "features" that can be independently toggled. If you only enable the Comments Integration, the extension will create the comment discussions and add the iframe to WordPress. When users attempt to comment, it will only prompt them to login or create an account within Flarum directly. You can use Flarum social login extensions to add more login options within Flarum.

      clarkwinkelmann

      Thanks, one more question.
      Is it possible that after a new post there would be a forum thread created, but below that post on WP there would only be a link to that forum thread, but without the comment content (not an iframe just an <a> tag)? This link would be with a description such as "Click here to discuss". And clicking would redirect (open a second browser tab) to the forum thread, where there would be a full discussion?

        jaclas that's not a feature at this time, but I could implement it.

        You could also change this locally by overriding the comments template in a theme or directly in my plugin. Only issue is that I don't think there's a way to build a permalink to the non-iframe page with the information available in WordPress. I would have to add a new endpoint to Flarum as well.

        11 days later

        Is it possible to prevent a user creation, so that only wordpress users can access the forum?

          Version 1.8.2 - September 16, 2023

          • Fix admin page breaking when other extensions try to customize the style of the header.

          This fixes the incompatibility with Asirem Theme.

          2 months later

          Hello @clarkwinkelmann

          First af all, great plugin! I saw your demo video and I was sold so I bought the subscription of your plugin :-D .

          I did not manage to get it working yet, though. I get the error ERR_TOO_MANY_REDIRECTS when trying to login (Wordpress pop up). Removing cookies did not help. I think I have set up everything correctly, but still there must be something wrong. Maybe with Nginx, I don't know.

          I have checked the Networks tab in Chrome Dev, it keeps redirecting from:

          https://novacustom.com/forum/auth/wordpress?continue=1&token= + token

          To:

          https://novacustom.com/newlogin?redirect_to=https%3A%2F%2Fnovacustom.com%2Fforum%2Fauth%2Fwordpress

          What can I check to solve this? I use HidemyWPGhost to keep my website secure. I'm afraid of disabling the whole plugin ... Is this the problem indeed? Or is there anything else I can try?

          I'm looking forward to your reply, many thanks in advance!

            wessel-novacustom

            I have managed to fix this by myself by making this change in my Nginx configuration!

            I changed this line:
            try_files $uri /forum/index.php$query_string
            To:
            try_files $uri /forum/index.php?$query_string

              wessel-novacustom glad you found a solution.

              It had to be related to the rewrites/try rules of WP and Flarum which are nested, you need to make sure everything under /forum/ is handled by Flarum's index.php

              a month later

              Version 1.8.3 - January 5, 2024

              • Fix open redirect vulnerability in logout script

              Only the Flarum extension needs updating. The WordPress plugin has not received any change.

              Forum data and credentials were never at risk, this was just a bad practice that could potentially harm the forum domain reputation if used to facilitate spam. It could also potentially be abused in a phishing attack against the users of the forum to make a malicious link look more legitimate.

              The same vulnerability existed in Flarum core and was fixed in Flarum 1.8.5. This extension requires a patch because it uses a modified version of Flarum's logout controller that also contained the vulnerability. You don't need to add the WordPress domain name to the new redirectDomains config key, as the global login and logout feature doesn't use that Flarum mechanism.

              2 months later

              Thanks for this really great plugin. Installing it with the documentation was pretty straight forward. But maybe I did somewhere something wrong.

              Login from wordpress / comment section

              On the wordpress site: When I want to comment the blog acrticle I cant login or register. Error message says something like

              Oops! Something went wrong there. Please reload the page or try again.

              Login or register for a new account on the flarum site still works fine.

              Picture resizing

              Some pictures on the flarum site in the content excerpt are looking wired. The width of the picure is changed to fit in the frame, but the height remains. Like this:

              I tried to geht rid of th e picture with whitelist of HTML tags with p,ul but that seems not to work with my blog.

              Previous blog postings

              All the previous postings on the blog site have instead the comments frame this message:

              This post doesn't have a comment thread yet. If you are the blog administrator, publish the post, or disable and re-enable comments to start a thread.

              I can use “Bulk Edit” on the posting site to turn of the comments an on again. But there about 3000 postings. Is there any easier, smarter way to that?

              Where to change words

              Where can I change some words like on the flarum site in the excerpt WorpdPress Post. Also I want to change the read on blog and Read more button into my language.

              On the Wordpress Site I want to change the word comments in to the site language as well.

                Flab sorry if I skip over some of your questions, I'll reply to the most pressing points and read again your post later to make sure I didn't forget anything.

                For the "Something went wrong", there should be more info in the Flarum or webserver log file, see https://docs.flarum.org/troubleshoot for how to find it.

                For the picture size, I assume it's the post thumbnail rather than an image in the post content. I don't remember if my extension has a setting to toggle its visibility, probably not. But I could add a setting for that. The post preview on the Flarum side is displayed with some very simple CSS, which you should be able to override from the forum custom CSS if you wish. I don't remember seeing that issue with the image ratio but I'll take a look at whether I can fix it. It could also be caused by the CSS from other Flarum extension.

                There is currently no way to automatically create comment threads for existing WP posts. This is a feature I planned to add but have not completed yet. The only solution at the moment is to manually toggle comments off and on again on each WP post. If you need this feature I can move it up my TODO list and work on it in the coming weeks.

                To change texts on the Flarum side, you can use the Linguist extension https://discuss.flarum.org/d/7026-linguist-customize-translations-with-ease I think all texts should be translatable but if you can't find one let me know and I'll look into it.

                On the WP side (outside of the iframe), I don't think my extension provides any text at all (except the admin panel setting names). The comment count is re-using the translation from the WP built-in themes, so it should already be translated by WP language packs. Texts inside the iframe are managed in Flarum.

                  clarkwinkelmann

                  Login from wordpress / comment section

                  Content of the storage/log
                  https://pastes.io/a6fg6fxaze

                  Picture resizing

                  In the admin panel both options Show WordPress post thumbnail above excerpt and Show WordPress post thumbnail in Flarum discussion list are switched off.
                  The image is in the begining of the post content, not the post thumbnail.
                  Unfortunately I dont know how to write anything in CSS.

                  Previous blog postings

                  If you need this feature I can move it up my TODO list and work on it in the coming weeks.

                  That would be a really nice to have feature and will save a lots of clicks.

                  Where to change words ✅

                  To change texts on the Flarum side, you can use the Linguist extension https://discuss.flarum.org/d/7026-linguist-customize-translations-with-ease I think all texts should be translatable but if you can't find one let me know and I'll look into it.

                  I could find everything with the linguist extension.

                    Flab I don't remember 100% and I'll need to check the code again but it's possible that the thumbnail settings only apply to new and updated WP posts.

                    Once I implement the import tool, it will also solve this issue as it will allow re-syncing all post previews in addition to the comment threads.

                      hrvoje_hr Thank you for your kind offer. You will find a sample posting with strange looking picture over https://kominote.de/d/42-zusammen-f%C3%BCr-mehr-respekt

                      clarkwinkelmann The new import tool sounds great.

                      I still have the login problem when I want to login from the comment section at the wordpress site. Does this log file from storage/log help?
                      https://paste.quest/?56772ec7b1af43bd#8BTy3qZwSwDSBc49p2rLhGApzsp4KPE2MY9K4HZQoYYR

                        Flab you could use this to hide the image:

                        .KilowhatWordpressSummaryPost-Article img {
                            display: none;
                        }

                        However it is better to allow only the "p" HTML tag in the extension settings ("Whitelist of HTML tags to keep in the excerpt" section)

                        Flab I still have the login problem when I want to login from the comment section at the wordpress site. Does this log file from storage/log help?

                        It seems unlikely that those errors are related to login. The 3 WP logs are just information and not errors. The 2 instances of the same error must have happened during the deletion of a post.

                        The post deletion error is curious because I haven't seen it before. I'm not sure if it could be caused by my extension. It's probably caused by either discussion_user.last_read_post_number or discussions.last_post_number being NULL. This could be caused by malformed data after migrating from another software, or is related to posts/discussions that have been manually created by an extension, possibly my WP extension. I would need to test on my development server to see if I observe this issue.

                        Can you share your php flarum info and confirm whether you migrated data from another platform? Also if you remember deleting Flarum posts, do you remember if it was inside a WP comment thread or unrelated?