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
with
. 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
instead of myUsername, that will display unlinked usernames in the same colors if they were linked?
it replaces
Code:
/<h4 class="message-name"><xf:username user(.*)<\/h4>/isU
Code:
<div class="message-name myUsername">{$fallbackName}</div>
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>