XenForo Background message to a specific user

El Bana

Active member
Registered
Joined
Jul 25, 2024
Messages
142
Reaction score
131
Points
43
In extra.less:


CSS:
.message-background (@mbUserName; @mbBackgroundUrl; @mbBackground-size; @mbBackground-position: false) {
 
  .message[data-author="@{mbUserName}"] .message-inner {
    background-image: linear-gradient(to top, @xf-contentBg, fade(@xf-contentBg, 60%)), @mbBackgroundUrl;
  background-position: @mbBackground-position;
  background-size: @mbBackground-size;
}
.message[data-author="@{mbUserName}"] .message-cell.message-cell--user {
   background: transparent;
}
}
// Example
.message-background (admin; url(https://i.imgur.com/W1yqxKS.jpg); cover; left);

replace 'admin' with your nickname

1722526970334
 
Back
Top