Was working on a similar extension but it would mostly replicate what you see on Reddit where the original poster has a label/flare next to their username after their first posts to indicate that they are the OP 🙂 keep it short and sweet with a little tooltip on it to indicate "Original Poster".

Thanks, is nice to hear extension are in development!

Will be useful know from dev Flarum team if,
the behavior of the CSS can be fixed in core of Flarum or,
for having this working author label also on page refresh or direct discussion link,
CSS will be never enough and need an extension.

Less extension we can have, better is.
https://discuss.flarum.org/d/26007-adding-author-label-to-posts/23

I know one forum that had a system like this set up and it worked perfectly. I'll try to work on an ext for it.

peopleinside Looks like this probably happens because the "user" object is compared (see https://github.com/flarum/core/blob/d4e3254395fa03a0653218a543e23ad9de76ae77/js/src/forum/components/Post.js#L135-L137) and may differ between the session user & the discussion user. The solution would probably be to compare their IDs or specific data instead of the entire object.

I can confirm this is a Flarum core bug.

    a month later

    sometimes the changing of such addon can be good to attract visitors. U don't want to show them everything. The error of it showing from discussion click and not direct link, could be an additional , don't you think?

    5 months later

    It looks nicer and simpler that way. But it may take time for users to understand what it means 😁

    article.CommentPost.Post.Post--by-start-user span.username:after {
        background: @hero-bg!important;
        border-radius: 4px;
        padding: 4px 7px 4px 7px;
        color: @muted-color!important;
        margin-left: 14px;
        font-family: "Font Awesome 5 Free";
        content: "\f075";
    }

      Gatsu I have no idea about this subject. I am currently actively using it on my own site and it is in the right place.

        2 months later

        JohnP
        I have similar code I view in this thread some months ago but now I update to Flarum 1.2 version and this resource not working for me.

        This is my code:

        div.PostStream div.PostStream-item:not(:first-child) article.CommentPost.Post.Post--by-start-user .Post-header h3:after
        {
        content: "Author";
        background: #F05D1D;
        border-radius: 4px;
        padding-left: 10px;
        padding-right: 10px;
        color: #fff;
        margin-left: 14px;
        }

        It´s strange that not working with a minimal flarum update no?
        In v104 working perfect and now in v120 not view any label with same code.

        Any other user stay in Flarum v120 have possibility to testing the same code?

        Walys I modified this code, yes this code does not work for me as far as I have experienced. I'll try to find the selector in my spare time.

          6 days later

          Umutcan Hi Lauren,

          I open a new thread with this problem and the user @datlechin view this other selector Post--by-actor to review.
          The problem whith this selector is that only view the author label the OP user when signin in his account. Not view for all users and visitors.

          I testing with others selector but not have view the good selector to working perfect as same has other old flarum version.

          10 days later

          Justoverclock Hi Just!

          One question about.
          Now in Flarum new version the Custom CSS not working any more so need to go with "author label" via plugin.
          I am interesting in add this label in my online forum.

          I view the Plugin in github created by @Dem13n but not have any update many months ago.
          You said some months ago that works fine, but now when the new flarum update all is ok?

          I only have one Flarum installation online, for the moment not have any domains for testing external plugin. And in this case not found any original thread in this forum with chat about this plugin.

          Maybe possible working in new flarum version?

          • This plugin have the possibility to change the "label" for other word in the admin? Maybe "OP" or other similar word in spanish language in my case.
          • Have the possibility to label only all the replies sending by OP, but not label the first thread message? Similar that working with "custom CSS" ?

          thanks!

            Justoverclock Thanks for testing Just!
            The extension no have any admin menu?

            • Have the label in the first message for the thread? or only in the replies made for the OP ? In my case prefer thath only have the label in the replies, not in the first message.
            • About change the label through linguist, need to install more plugins, and for the moment prefer working with "the minimun" possible in my small online project.

            yes if i remember well is only on the replies.

            you can edit the yml file inside the vendor folder (i do not recommend this btw)