• Extensions
  • Discussion and post author and date change

Author Change

License Latest Stable Version Total Downloads Donate

Let mods update the author and date of discussions and posts.

The author edit button is added underneath the title/tag edit button for discussions and under the content edit button for posts.

Author edit

Users with "Update author" permission must also have the "View user list" permission to be able to search for users.

Date edit

The field uses the native datetime-local picker in browsers that support it (at the time of writing, Chrome/Edge/Opera).
The field format in supported browser will match your browser/operating system language and country setting.

The time in the modal is UTC.

Other

The first post of a discussion and the discussion itself are not automatically synced.
You will probably want to edit the data in both places.

This extension was written live on YouTube.
Watch the video on the Clark writes code channel: Author part, Date part.
Support me on Patreon!

Installation

composer require clarkwinkelmann/flarum-ext-author-change

Support

This extension is under active maintenance.

Bugfixes and compatibility updates will be published for free as time allows.

You can contact me to sponsor additional features.

Support is offered on a "best effort" basis through the Flarum community thread.

Links

    Already released a hotfix for the user search dropdown going out of screen 🙉 I noticed it during the stream but forgot to check back on it at the end.

    Also added screenshots and link to the stream in the first post

    • [deleted]

    @clarkwinkelmann doesn't seem to be working for me - in the console, I see the below

    Uncaught TypeError: r.forEach is not a function
        at n.view (forum-5c08f059.js:34)
        at forum-5c08f059.js:1
        at Array.map (<anonymous>)
        at n.view (forum-5c08f059.js:1)
        at n.e.view (forum-5c08f059.js:34)
        at n.e.render (forum-5c08f059.js:1)
        at Object.o [as view] (forum-5c08f059.js:1)
        at P (forum-5c08f059.js:1)
        at forum-5c08f059.js:1
        at M (forum-5c08f059.js:1)

      Yes same here. I don't see any user name coming up in the search dropdown even after typing the correct one. Maybe clashing with some other extension or something? I have informed him. He said that he will look into it today evening. I had paid him to make this extension. I am happy to be of some insignificant help to the always helpful Flarum community here.

        [deleted] nitaaikumar I have identified an incompatibility with fof/user-directory and I suppose that's an extension you have on both of your forums.

        The new version fixes that issue and also makes it more likely to work with other future extensions. There are new "no results" messages, and a special "[extension conflict]" message that can appear instead of an empty user list. Hopefully no one should ever see the latest.

        You can update with composer update clarkwinkelmann/flarum-ext-author-change

        Note to translators: new translations were added and one has changed name.

          13 days later

          Pushed version 0.1.3 which automatically closes the modal after a successful change, like other Flarum modals do.

          You can update with composer update clarkwinkelmann/flarum-ext-author-change

          Pushed version 0.1.4 which updates the metadata of the discussion (last post author and participants count) when editing a post. In previous versions, editing the author of the last post would not be reflected in the discussion list.

          You can update with composer update clarkwinkelmann/flarum-ext-author-change

          2 months later

          Littlegolden what would that be ? Is it related to an existing extension ?

          All this extension does is add a way to change an existing property from core, the discussion/post author.

            clarkwinkelmann
            Let me give you an example. It may use the function I said in the following situations.

            If there is a discussion, it is a software update announcement issued by the forum administrator. There are three administrators, and each administrator posts an announcement in one language (totally 3 languages, because the users on this forum are from different countries). Is it possible to add a feature to mark "Discussion published by *** and *** in cooperation" or "Discussion co-edited by *** and ***" at the top of the discussion.

            Honestly, because I need Google Translate to browse the Flarum forums, I read the description of your plugin at the beginning, I was really thought that this plugin has what I said, not just the author who can change the discussion.


            我给您举个例子吧,可能在下面的情况会使用到我说的功能。

            假如有一个讨论,它是论坛管理员发布的一个软件更新公告,有三个管理员,每一个管理员用一种语言发布公告(因为这个论坛上的用户是来自不同国家的)。是否可以增加一个功能,以便在讨论顶部标注“本公告由and共同编辑”。

            老实说,因为我浏览 Flarum 论坛需要谷歌翻译,我一开始看完您的插件说明,真的以为这个插件有我说的功能,而不仅仅是可以更改讨论的作者。

              Littlegolden

              Please refrain from posting content in this forum in other languages than English even if it's just a translation of the same content in English or it's intended only for a readership of that language. This is against our Community Guidelines.

              If not using a tag set aside for multilingual use, post in English only. We can't help if we can't read you!

              Thanks for respecting these rules in the future.

              2 months later

              I just changed a discussions's author, but it only changed the author which displied in the Home Page Discussion List. -> The discussion.
              In the Discussion Page, the author still is me.... haddn't been changed...
              image.png
              image.png