inherit
147425
0
Jan 17, 2023 5:52:33 GMT -8
90gtvert
6
September 2009
90gtvert
|
Post by 90gtvert on Sept 19, 2017 2:49:37 GMT -8
Is there a way to mark the OP's posts in a thread? Maybe an image in their posts or in their mini-profile only in a thread that they created. My forum does a lot of tech help and troubleshooting and that would be useful. I've tried searching the support forum and plugins without luck. All I can find is a plugin to make threads that only the OP and staff can reply to, but that's not useful because all members need to be allowed to help by posting.
|
|
#eb7100
33409
0
1
May 6, 2024 0:49:12 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Sept 19, 2017 11:02:51 GMT -8
Hi, 90gtvert. This should be possible with a template modification and a bit of CSS. In Themes > Layout Templates > Thread > Post List find this line (usually line 2): And change it to this: This makes it so that when you view a thread a new class ( .by-op) is added to any posts by the author. Now if you add any HTML to the mini-profile you can choose to hide or show it based on the presence of this class. For example, if you add this to the mini-profile: You can add this to the style sheet to make it hide or show depending on whether or not the user is the OP. There are a number of other things that you can do based on the presence of this class such as change the colors of the post itself or other styling options but this is basically how to make the example you gave work.
|
|
inherit
147425
0
Jan 17, 2023 5:52:33 GMT -8
90gtvert
6
September 2009
90gtvert
|
Post by 90gtvert on Sept 19, 2017 12:00:31 GMT -8
Thanks very much for the reply/info.
|
|
inherit
147425
0
Jan 17, 2023 5:52:33 GMT -8
90gtvert
6
September 2009
90gtvert
|
Post by 90gtvert on Sept 19, 2017 15:41:44 GMT -8
The code works great. Thanks again. The only issue I see is that PMs all have crowns, but I suppose that's because of the way PMs are handled. It doesn't bother me anyway.
|
|
#eb7100
33409
0
1
May 6, 2024 0:49:12 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Sept 19, 2017 15:44:24 GMT -8
You can add this to the style sheet to hide them there.
|
|
inherit
147425
0
Jan 17, 2023 5:52:33 GMT -8
90gtvert
6
September 2009
90gtvert
|
Post by 90gtvert on Sept 22, 2017 15:51:38 GMT -8
Thanks again!
|
|