[hoangkiso] Avatar First letter from username in postbit

Thảo luận trong 'Thiết Kế Web' bắt đầu bởi Quy Ẩn Giang Hồ, 12/9/14.

  1. Quy Ẩn Giang Hồ

    Quy Ẩn Giang Hồ Administrator
    Thành viên BQT

    Bài viết:
    3,084
    Được thích:
    23
    Điểm thành tích:
    38
    Xu:
    0Xu
    Demo online: https://taitailieu.edu.vn/threads/11255-download-office-2013-full-crack-key-ban-quyen-ban-chinh-thuc-rtm.html

    Info:

    Getting alphabet The first of names user as a avatar.

    How to install:

    • Download attachments
    • Import file product-hoangkiso_avatar.xml

    Open postbit or postbit_legacy, add anywhere code:

    Mã:
    {vb:raw ad_location.hoangkiso_avatar_show}
    additional.css:

    Mã:
    .khung {
    float: left;
    margin: 3px 5px;
    }
    .pavatar {
    color: white;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    float: left;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 30px;
    cursor: default;
    }
    Way displayed avatar member is already avatar

    Find :
    PHP:
                    <vb:if condition="$show['avatar']">
                        <
    class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                            <
    vb:if condition="$post.avatarurl">
                                [
    IMG]{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                            <vb:else />
                                [IMG]{vb:stylevar imgdir_misc}/unknown.gif" 
    />
                            </
    vb:if>
                        
                    </
    vb:if>
    And change :

    PHP:
                    <vb:if condition="$show['avatar']">
                        <
    class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                            <
    vb:if condition="$post.avatarurl">
                                [
    IMG]{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                            <vb:else />
                                [IMG]{vb:stylevar imgdir_misc}/unknown.gif" 
    />
                            </
    vb:if>
                        
                    <
    vb:else />
                        {
    vb:raw ad_location.hoangkiso_avatar_show}
                    </
    vb:if>
    Thats all.
     

    Các file đính kèm:

Đang tải...