9yN75.png

Avatar Frames xf2

audiodk

Registered
#1
Could someone help me figure this out. I am trying to add frames to the avatars in xf2. I see you have a way to do it with xf1. Can someone please help?

this is my code I have in extra.less (but does not work):
PHP:
/* Avatar Framework */
.message-avatar-wrapper {
    top: 13px;
}

.message-avatar-frame-group3 {
    background-image: url('images/avatar-frame-admin.png') no-repeat center;
}

.message-avatar-frame {
    position: absolute;
    z-index: 1;
    display: block;
    width: 135px;
    height: 130px;
}

@media (max-width: @xf-responsiveMedium) {
    .message-avatar-frame {
        display: none;
    }
    
    .message-avatar-wrapper {
        top: unset !important;
    }
    
    .message-avatar {
        min-height: unset;
    }
}
I am using:
1546615661748.png
1546615782011.png
for an addon and theme
 

Similar threads

XenForo Rocks

Team Member
Administrator
Moderator
+Lifetime VIP+
Contributor
ViP
True Member
Suppliers
Registered
#2
It's not really that hard to do for xf 2, just use same tutorial that we have for xf1 it would be just few temple name changes but will be similar and conditional changes. I guess to check member group you would use ismemberof template condition.
 
Last edited:

Similar threads

Top