• Oturum Aç
  • Hesap Oluştur

[1.8]  MyBB Forum Takımı Sayfasına Avatar Ekleme

mybbturk    0

    • avatar

    mybbturk  06-18-2018, 06:35 PM

    Kredi:
    #1
    FTP > showteam.php açın.

    Bunu bulun:
    Kod:
    $query = $db->simple_select("users", "uid, username, displaygroup, usergroup, ignorelist, hideemail, receivepms, lastactive, lastvisit, invisible, away", "displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username')); 


    Değiştirin:
    Kod:
    $query = $db->simple_select("users", "uid, username, displaygroup, if(avatar='', './images/default_avatar.png',avatar) as avatar, usergroup, ignorelist, hideemail, receivepms, lastactive, lastvisit, invisible, away", "displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));


    Admin Kp > Temalar Şablonlar > Şablonlar > Kullanılan Tema > Forum Yöneticileri - [showteam] Şablonlar > showteam_usergroup_user açıp bu kod ile değiştirin.
    Kod:
    <tr>
    <td width="75%" class="{$bgcolor}">
    <img src="{$user['avatar']}" alt="Avatarı" title="Avatarı" width="40px" height="40px" />
    <img src="{$theme['imgdir']}/buddy_{$status}.png" title="{$lang->$status}" alt="{$lang->$status}" style="vertical-align: middle;" /><a href="{$user['profilelink']}"><strong>{$user['username']}</strong></a></td>
    <td width="15%" class="{$bgcolor}">{$user['lastvisit']}</td>
    <td width="5%" class="{$bgcolor}"><div class="postbit_buttons">{$emailcode}</div></td>
    <td width="5%" class="{$bgcolor}"><div class="postbit_buttons">{$pmcode}</div></td>
    </tr>


    Hello World!:

    - No messages were found.
    I believe... whatever doesn't kill you, simply makes you stranger.
    Beğeni

Konuyu Okuyanlar: 1 Ziyaretçi