Remote Avatar Size Control

Eklenti geliştirme bölümü.

entegre

İleti bqra 24.06.2006, 02:36

----- Remote Avatar Size Control Modülünü, importal kullanıcı menüsü ve importal kullanıcı menüsü[ALEXIS] e entegre etme -----
düzenliyeceğiniz dosyaların yedeğini almayı unutmayın


Kod: Tümünü seç
#
#--------------[AÇ]----------------
#

blocks/blocks_imp_user_block.php

#
#-------------[BUL]----------------
#

               $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $userdata['user_avatar'] . '" alt="" border="0" />' : '';

#
#-----[BUNUNLA DEĞİŞTİR]-----
#

                if ( $board_config['allow_avatar_remote'] )
                  {
                    if ( ($userdata['user_avatar_height'] && $userdata['user_avatar_height'] > 0) &&
                     ($userdata['user_avatar_width'] && $userdata['user_avatar_width'] > 0) )
                      {
                        $avatar_img = '<img src="' . $userdata['user_avatar'] . '" height="' . $userdata['user_avatar_height'] . '" width="' . $userdata['user_avatar_width'] . '" alt="" border="0" />';
                      }
                      else  // No width/height in the user's profile
                       {
                        $avatar_img = '<img src="' . $userdata['user_avatar'] . '" alt="" border="0" />';
                       }
                   }
                      else  // remote avatars not allowed
                        $avatar_img = '';

#
#--------------[AÇ]-----------------
#

blocks/blocks_imp_user_menu.php

#
#--------------[BUL]-----------------
#

         $avatar_img_ind = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $userdata['user_avatar'] . '" alt="" border="0" />' : '';

#
#-------[BUNULA DEĞİŞTİR]------
#

                if ( $board_config['allow_avatar_remote'] )
                  {
                    if ( ($userdata['user_avatar_height'] && $userdata['user_avatar_height'] > 0) &&
                     ($userdata['user_avatar_width'] && $userdata['user_avatar_width'] > 0) )
                      {
                        $avatar_img_ind = '<img src="' . $userdata['user_avatar'] . '" height="' . $userdata['user_avatar_height'] . '" width="' . $userdata['user_avatar_width'] . '" alt="" border="0" />';
                      }
                      else  // No width/height in the user's profile
                       {
                        $avatar_img_ind = '<img src="' . $userdata['user_avatar'] . '" alt="" border="0" />';
                       }
                   }
                      else  // remote avatars not allowed
                        $avatar_img_ind = '';

#
#--------[KAYDET & KAPAT]---------
#


--------- Remote Avatar Size Control Modülünü, Avatars in Memberlist 1.0.2 ye Entegre Etme---------



Kod: Tümünü seç
#
#----------------[AÇ]---------------------
#

memberlist.php

#
#----------------[BUL]--------------------
#

$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar

#
#----------[SATIRIN SONUNA EKLE]----
#

, user_avatar_width, user_avatar_height

#
#----------------[BUL]--------------------
#

               $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $row['user_avatar'] . '" alt="" border="0" />' : '';

#
#-----------[BUNUNLA DEĞİŞTİR]--------
#

            if ( $board_config['allow_avatar_remote'] )
            {
               if ( ($row['user_avatar_height'] && $row['user_avatar_height'] > 0) &&
                     ($row['user_avatar_width'] && $row['user_avatar_width'] > 0) )
               {
                  $poster_avatar = '<img src="' . $row['user_avatar'] . '" height="' . $row['user_avatar_height'] . '" width="' . $row['user_avatar_width'] . '" alt="" border="0" />';
               }
               else  // No width/height in the user's profile
               {
                  $poster_avatar = '<img src="' . $row['user_avatar'] . '" alt="" border="0" />';
               }
            }
            else  // remote avatars not allowed
               $poster_avatar = '';

#
#-----------[KAYDET & KAPAT]--------------
#



bqra
Kullanıcı avatarı
bqra
Üye
Üye
 
İleti: 50
Kayıt: 16.01.2006, 23:13
Konum: İstanbul

İleti alperen 24.06.2006, 08:10

Sabri ünal bunu plus için staff ve profil bölümlerine uyarlıyabilirmisin ?
alperen
Üye
Üye
 
İleti: 89
Kayıt: 01.04.2006, 13:26


Eklenti Geliştirme



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron