Automatic Badge for OP.
-
Could be possible with a helper, although I am not sure how you would pass the data to it @psychobunny can give you a better idea.
api/topic/slug route has the uid of the OP. And each post object also has the poster uid. So you have to compare those two uids in a helper and display the badge.
This code won't work but to give you an idea of how it could look.
<!-- IF function.isOriginalPoster(uid, postData.uid) --> <span>badge</span> <!- ENDIF function.isOriginalPoster -->
-
I would just do it via JS tbh
-
Going out on a limb here, since I don't know if you could draw ideas from it or not - but didn't @psychobunny create a plugin that allows for stylization of the administrators posts? Perhaps this would point you in the right direction -- or totally side-rail your idea. In which case, you didn't get this from me.
-
@Ted Yeah that would hook into the if.isAdmin hook, but there's no OriginalPoster like baris mentioned. I'd go down the js route, but, I'm still relatively new to javascriptage. So I may take a look at this, unless someone wants to beat me to it.
-
@Ted I say I'll look into it. Doesn't mean I will. I might google it for a few minutes.
-
@Ted All 3 will see me through.
-
I wouldn't mind putting this together for you. Not right now because I'm about to head to bed, but remind me via chat or something
-
Can you post it in a gist? @psychobunny
-
@psychobunny Will get room service to send you a wake up call.
-
Hello @psychobunny, this is room service, responding to @a_5mith's request to ensure that you are awake and prepared to attend the function. I'm afraid that you've missed the sponsored continental breakfast in the lounge. All we have left is bran muffins and toast.
-
@Ted This functionality will be done after 0.5.1 due to gh#1999