XF İçin Özel Avatar Çerçevesi

  • Konbuyu başlatan Michaelgen
  • Başlangıç tarihi

[XFB] Konu Bilgileri

Konu Hakkında Merhaba, tarihinde Şablon değişiklikleri kategorisinde Michaelgen tarafından oluşturulan XF İçin Özel Avatar Çerçevesi başlıklı konuyu okuyorsunuz. Bu konu şimdiye dek 73 kez görüntülenmiş, 0 yorum ve 0 tepki puanı almıştır...
Kategori Adı Şablon değişiklikleri
Konu Başlığı XF İçin Özel Avatar Çerçevesi
Konbuyu başlatan Michaelgen
Başlangıç tarihi
Cevaplar
Görüntüleme
İlk mesaj tepki puanı
Son Mesaj Yazan Michaelgen
  • Michaelgen

  • 1706730338092.png

    Değerli coldFrm üyeleri , konuda sizlere nasıl yukarıdaki gibi özel avatar Çerçevesi yapabilirsiniz hakkında kodlar vereceğim. Çerçeve boyutunu ayarlayabilirsiniz.


    Bunu extra.less dosyasına yapıştırın


    Kod:
    .avatar-frame-container {
        width: 200px;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-repeat: no-repeat;
        margin-top: -115px; 
    }
    
    
    .avatar-frame {
        background-repeat: no-repeat;
        position: absolute;
        display: block;
        width: 135px;
        height: 135px;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: -1px;
        margin-top: -3px;
    }
    
    
    .owner { background-image: url("images/avatar-frame-owner.png"); }
    .admin { background-image: url("images/avatar-frame-admin.png"); }
    
    
    .message-avatar-frame {
        z-index: 1;
        width: 135px;
        height: 135px;
    }

    Bu kodu <div class="message-avatar-wrapper"> altındaki şablon olan message_macro'da değiştirin


    Kod:
    <div class="message-avatar-wrapper">     
                <div class="avatar-frame-container">
                      
                      
    
                        <xf:if is="{$user.user_group_id} == 3">
                            <div class="avatar-frame admin"> 
                              
                        <xf:elseif is="{$user.user_group_id} == 4"/>
                            <div class="avatar-frame mod">
                              
                         <xf:elseif is="{$user.user_group_id} == 10"/>
                            <div class="avatar-frame admin">
                              
    
                        </xf:if>
                          
    
    <xf:if is="{$user.user_group_id} == 3 || {$user.user_group_id} == 4 || {$user.user_group_id} == 10">
    
    
    
            </div>     
        </xf:if> 
            </div>
     

    Create an account or login to comment

    You must be a member in order to leave a comment

    Create account

    Create an account on our community. It's easy!

    Log in

    Already have an account? Log in here.

    Üst
    AdBlock Detected

    We get it, advertisements are annoying!

    Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

    I've Disabled AdBlock    No Thanks