XF 2.3 XF class for username color (in post)?

Anatoliy

Well-known member
I made an add-on that makes some template modification. One of them - it unlinks Username for guests (message_macros template).
it replaces
Code:
/<h4 class="message-name"><xf:username user(.*)<\/h4>/isU
with
Code:
<div class="message-name myUsername">{$fallbackName}</div>
. I added myUsername class (with gray color) in extra.less, and it works just fine.

But I'm thinking about sharing this add-on with the community, and not everyone uses the default XF theme, so here is my question - can I use some XF class in
Code:
<div class="message-name myUsername">{$fallbackName}</div>
instead of myUsername, that will display unlinked usernames in the same colors if they were linked?
 
Back
Top Bottom