1. Мы продолжаем публиковать интересные статьи на тему SocialEngine 4. Одна из статей посвящена правильному выбору сервера для вашей социальной сети, а другая содержит советы по увеличению производительности платформы. Также мы добавили большую статью о пользовательских уровнях. Ознакомиться со статьями вы можете в разделе Вопросы и Ответы SocialEngine 4.
  2. Вам кажется, что ваша версия SocialEngine 4, работает медленно?

    Голосуйте. Пишите свою версию системы, железо на чем работает и количество пользователей. Будем увеличивать производительность :-) Подробнее

  3. В связи с участившимися случаями попыток продажи пользователями форума различных "сборок" коммерческих социальных платформ, обычно основанных на SocialEngine 3, вводится новое правило для форума. Запрещается создание тем или размещение в уже созданных предложений о продаже или размещение ссылок на сайты, где происходит продажа "сборок". Пользователи, которые продолжат свою коммерческую деятельность в данном направлении, будут заблокированы. Подробнее.

[ХАК] Блок Мои Друзья ( как Вконтакте.ру )

Discussion in 'Хаки - Haks' started by ExTRANE, May 6, 2010.

  1. ExTRANE Thread starter Active member


    Offline
    Message Count:
    278
    Likes Received:
    62
    Пользуемся и говорим СпС))))))))))

    в profile.tpl пихаем куда душа пожылает (в то место где нужно выводить (для непонятливых))

    PHP:

    {* BEGIN all friend *}

    {if 
    $total_friends != 0}
    <
    table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
      <
    tr>
        <
    td class='header'>
        
        <
    table><tr width='100%'><td width='80%'>
          {
    lang_print id=653} ({$total_friends})
          </
    td><td width='20%'>
    {if 
    $total_friends 6}[&nbsp;<a href='ufriend.php?user={$owner->user_info.user_username}'>{lang_print id=1021}</a>&nbsp;]{/if}
    </
    td></tr></table>
        </
    td>
      </
    tr>
      <
    tr>
        <
    td class='profile'>
            {
    section name=friend_loop loop=$friends max=6}
            <
    div align="center">
        <
    div style='width: 100px; float: left;'>
                  <
    a href='{$url->url_create("profile",$friends[friend_loop]->user_info.user_username)}'>
                    <
    img src='{$friends[friend_loop]->user_photo('./images/nophoto.gif', TRUE)}' class='photo' width='60' border='0'>
                  </
    a>

                <
    div align="center">  
                  
    <
    a href='{$url->url_create('profile',$friends[friend_loop]->user_info.user_username)}'>{$friends[friend_loop]->user_displayname}</a></div>

    </
    div>
    </
    div>
        {
    cycle values=",<div style='clear: both; height: 10px;'></div>"}
            {/
    section}


        </
    td>
      </
    tr>
    </
    table>
    {/if}

    {* 
    END all friend *}

    Вся примудрость)
    Только для себя я зделал отдельную страницу со списком всех друзей!
    ufriend.php

    Вот их содержымое!

    PHP

    PHP:
    <?php

    /* $Id: profile.php 42 2009-01-29 04:55:14Z john $ */

    $page "ufriend";
    include 
    "header.php";

    // GET UPCOMING BIRTHDAYS, START BY CHECKING FOR BIRTHDAY PROFILE FIELDS
    $birthday_array friends_birthdays();

    $smarty->assign_by_ref('birthdays'$birthday_array);



    // DISPLAY ERROR PAGE IF USER IS NOT LOGGED IN AND ADMIN SETTING REQUIRES REGISTRATION
    if($user->user_exists == && $setting['setting_permission_profile'] == 0)
    {
      
    $page "error";
      
    $smarty->assign('error_header'639);
      
    $smarty->assign('error_message'656);
      
    $smarty->assign('error_submit'641);
      include 
    "footer.php";
    }

    // DISPLAY ERROR PAGE IF NO OWNER
    if($owner->user_exists == 0)
    {
      
    $page "error";
      
    $smarty->assign('error_header'639);
      
    $smarty->assign('error_message'828);
      
    $smarty->assign('error_submit'641);
      include 
    "footer.php";
    }

    // GET VIEW AND VARS
    if(isset($_POST['v'])) { $v $_POST['v']; } elseif(isset($_GET['v'])) { $v $_GET['v']; } else { $v "profile"; }
    if(isset(
    $_POST['search'])) { $search $_POST['search']; } elseif(isset($_GET['search'])) { $search $_GET['search']; } else { $search ""; }
    if(isset(
    $_POST['m'])) { $m $_POST['m']; } elseif(isset($_GET['m'])) { $m $_GET['m']; } else { $m 0; }
    if(isset(
    $_POST['p'])) { $p $_POST['p']; } elseif(isset($_GET['p'])) { $p $_GET['p']; } else { $p 1; }

    // VALIDATE VIEW VAR
    if($v != "profile" && $v != "friends" && $v != "comments" && !array_key_exists($v$global_plugins)) { $v "profile"; }

    // GET PRIVACY LEVEL
    $privacy_max $owner->user_privacy_max($user);
    $allowed_to_view = ($privacy_max $owner->user_info['user_privacy']);
    $is_profile_private = !$allowed_to_view;

    // CHECK IF USER IS ALLOWED TO COMMENT
    $allowed_to_comment = ($privacy_max $owner->user_info['user_comments']);


    // UPDATE PROFILE VIEWS IF PROFILE VISIBLE
    if($is_profile_private == && $user->user_info['user_id'] != $owner->user_info['user_id'])
    {
      
    $profile_viewers "";
      if( 
    $owner->user_info['user_saveviews'] )
      {
        
    $view_query $database->database_query("SELECT profileview_viewers FROM se_profileviews WHERE profileview_user_id='{$owner->user_info['user_id']}'");
        if(
    $database->database_num_rows($view_query) == 1)
        {
          
    $views $database->database_fetch_assoc($view_query);
          
    $profile_viewers $views['profileview_viewers'];
        }
        if( 
    $user->user_exists )
        {
          
    $profile_viewers_array explode(","$profile_viewers);
          if( 
    in_array($user->user_info['user_id'], $profile_viewers_array) )
          {
            
    array_splice($profile_viewers_arrayarray_search($user->user_info['user_id'], $profile_viewers_array), 1);
          }
          
    $profile_viewers_array[] = $user->user_info['user_id'];
          
    krsort($profile_viewers_array);
          
    $profile_viewers implode(","array_filter($profile_viewers_array));
        }
      }
      
    $database->database_query("INSERT INTO se_profileviews (profileview_user_id, profileview_views, profileview_viewers) VALUES ('{$owner->user_info['user_id']}', '1', '{$profile_viewers}') ON DUPLICATE KEY UPDATE profileview_views=profileview_views+1, profileview_viewers='{$profile_viewers}'");
    }


    // DELETE COMMENT NOTIFICATIONS IF VIEWING COMMENT PAGE
    if( $v == "comments" && $user->user_info['user_id'] == $owner->user_info['user_id'])
    {
      
    $database->database_query("DELETE FROM se_notifys WHERE notify_user_id='{$owner->user_info['user_id']}' AND notify_notifytype_id='3' AND notify_object_id='{$owner->user_info['user_id']}'");
    }

    // GET PROFILE COMMENTS
    $comment = new se_comment('profile''user_id'$owner->user_info['user_id']);
    $total_comments $comment->comment_total();

    // GET PROFILE FIELDS
    $field = new se_field("profile"$owner->profile_info);
    $field->cat_list(010"profilecat_id='{$owner->user_info['user_profilecat_id']}'""""");


    // SET WHERE CLAUSE FOR FRIEND LIST
    if($search != "")
    {
      
    $is_where 1;
      
    $where "(se_users.user_username LIKE '%$search%' OR CONCAT(se_users.user_fname, ' ', se_users.user_lname) LIKE '%$search%' OR se_users.user_email LIKE '%$search%')";
    }
    else
    {
      
    $is_where 0;
      
    $where "";
    }

    if(
    $m == && $user->user_exists == 1)
    {
      if(
    $where != "") { $where .= " AND "; }
      
    $where .= "(SELECT TRUE FROM se_friends AS t1 WHERE t1.friend_user_id1='{$user->user_info['user_id']}' AND t1.friend_user_id2=se_friends.friend_user_id2)";
    }

    // DECIDE WHETHER TO SHOW DETAILS
    $connection_types explode("<!>"trim($setting['setting_connection_types']));
    $show_details = ( count($connection_types) && $setting['setting_connection_other'] && $setting['setting_connection_explain'] );

    // GET TOTAL FRIENDS
    $total_friends $owner->user_friend_total(01$is_where$where);

    // MAKE FRIEND PAGES AND GET FRIEND ARRAY
    $friends_per_page 10;
    if(
    $v == "friends") { $p_friends $p; } else { $p_friends 1; }
    $page_vars_friends make_page($total_friends$friends_per_page$p_friends);
    $friends $owner->user_friend_list($page_vars_friends[0], $friends_per_page01"se_users.user_username"$where$show_details);

    // GET MASTER TOTAL OF FRIENDS
    $total_friends_all $owner->user_friend_total(0);

    // GET MASTER TOTAL OF ALL MUTUAL FRIENDS
    $total_friends_mut $owner->user_friend_total(010"(SELECT TRUE FROM se_friends AS t1 WHERE t1.friend_user_id1='{$user->user_info['user_id']}' AND t1.friend_user_id2=se_friends.friend_user_id2)");


    // GET CUSTOM PROFILE STYLE IF ALLOWED
    if( $owner->level_info['level_profile_style'] && !$is_profile_private )
    {
      
    $profilestyle_info $database->database_fetch_assoc($database->database_query("SELECT profilestyle_css FROM se_profilestyles WHERE profilestyle_user_id='{$owner->user_info['user_id']}' LIMIT 1"));
      
    $global_css $profilestyle_info[profilestyle_css];
    }
    elseif( 
    $owner->level_info['level_profile_style_sample'] && !$is_profile_private )
    {
      
    $profilestyle_info $database->database_fetch_assoc($database->database_query("SELECT stylesample_css FROM se_profilestyles LEFT JOIN se_stylesamples ON se_profilestyles.profilestyle_stylesample_id=se_stylesamples.stylesample_id WHERE profilestyle_user_id='{$owner->user_info['user_id']}' LIMIT 1"));
      
    $global_css $profilestyle_info['stylesample_css'];
    }


    // ENSURE CONECTIONS ARE ALLOWED FOR THIS USER AND THAT OWNER HAS NOT BLOCKED USER
    $is_friend $user->user_friended($owner->user_info['user_id']);
    if( 
    $user->user_friended($owner->user_info['user_id'], 0))
    {
      
    $is_friend_pending 2;
    }
    elseif( 
    $owner->user_friended($user->user_info['user_id'], 0) )
    {
      
    $is_friend_pending 1;
    }
    else
    {
      
    $is_friend_pending 0;
    }

    $friendship_allowed 1;
    switch(
    $setting['setting_connection_allow'])
    {
      case 
    "3":
        
    // ANYONE CAN INVITE EACH OTHER TO BE FRIENDS
        
    break;
      case 
    "2":
        
    // CHECK IF IN SAME SUBNETWORK
        
    if($user->user_info['user_subnet_id'] != $owner->user_info['user_subnet_id']) { $friendship_allowed 0; }
        break;
      case 
    "1":
        
    // CHECK IF FRIEND OF FRIEND
        
    if($user->user_friend_of_friend($owner->user_info['user_id']) == FALSE) { $friendship_allowed 0; }
        break;
      case 
    "0":
        
    // NO ONE CAN INVITE EACH OTHER TO BE FRIENDS
        
    $friendship_allowed 0;
        break;
    }

    if(
    $owner->user_blocked($user->user_info['user_id'])) { $friendship_allowed 0; }
    if(
    $is_friend) { $friendship_allowed 1; }


    // GET PHOTOS USER IS TAGGED IN
    $photo_query "";
    (
    $hook SE_Hook::exists('se_mediatag')) ? SE_Hook::call($hook, array()) : NULL;
    $total_photo_tags $database->database_num_rows($database->database_query($photo_query));


    // DETERMINE IF USER IS ONLINE
    $online_users_array online_users();
    if(
    in_array($owner->user_info['user_username'], $online_users_array[2])) { $is_online 1; } else { $is_online 0; }

    // GET PROFILE VIEWS
    $profile_views 0;
    $view_query $database->database_query("SELECT profileview_views, profileview_viewers FROM se_profileviews WHERE profileview_user_id='{$owner->user_info['user_id']}'");
    if(
    $database->database_num_rows($view_query) == 1)
    {
      
    $views $database->database_fetch_assoc($view_query);
      
    $profile_views $views['profileview_views'];
    }

    // SET GLOBAL PAGE TITLE
    $global_page_title[0] = 509;
    $global_page_title[1] = $owner->user_displayname;
    $global_page_description[0] = 1158;
    $global_page_description[1] = $owner->user_displayname;
    $global_page_description[2] = strip_tags(implode(" - "$field->field_values));

    // СМАЙЛЫ
    $asconf['smiles'] = "bad,biggrin,blum,blush,cray,crazy,dance,
    diablo,dirol,drinks,fool,good,kiss_mini,man_in_love,music,nea,pardon,
    rofl,rolleyes,sad,
    scratch_one-s_head,shok,shout,smile,unknw,wacko2,wink,yahoo,angel"
    ;
    $i 0;
    $smilies explode(","$asconf['smiles']);
            foreach(
    $smilies as $smile) {
                
    $i++; $smile trim($smile);
                
    $outsmile .= "<img class=\"smileys\" src=\"./templates/images/smiles/$smile.gif\" alt=\"$smile\" onclick=\"javascript:document.getElementById('comment_body') .value += ' :$smile:'\" />"; }

    // PROFILE PERCENT
    include './mods/_percentage.php';
    $profile_percent show_percent($owner->user_info[user_id]);
    // END OF PERCENT











    if(isset($_POST['task'])) { $task $_POST['task']; } elseif(isset($_GET['task'])) { $task $_GET['task']; } else { $task "main"; }

    // ENSURE GROUPS ARE ENABLED FOR THIS USER
    if( ~(int)$user->level_info['level_group_allow'] & )
    {
      
    header("Location: user_home.php");
      exit();
    }

    // SET VARIABLES AND INITIALIZE GROUP OBJECT
    $group = new se_group($user->user_info['user_id']);
    $sort_by "se_groupmembers.groupmember_rank DESC, se_groups.group_title";
    $where "(se_groupmembers.groupmember_status='1')";

    // GET TOTAL GROUPS
    $total_groups $group->group_total($where);

    // GET GROUPS ARRAY
    $group_array $group->group_list(0$total_groups$sort_by$where1);


    // GET GROUPS INVITED TO
    $invite_where "(se_groupmembers.groupmember_status='0' AND se_groupmembers.groupmember_approved='1')";
    $total_invites $group->group_total($invite_where);
    $invite_array $group->group_list(0$total_invites$sort_by$invite_where1);












    // ASSIGN VARIABLES AND INCLUDE FOOTER
    $smarty->assign('groups'$group_array);
    $smarty->assign('total_groups'$total_groups);
    $smarty->assign('invites'$invite_array);
    $smarty->assign('total_invites'$total_invites);
    $smarty->assign('v'$v);
    $smarty->assign('profile_views'$profile_views);
    $smarty->assign('cats'$field->cats);
    $smarty->assign('is_profile_private'$is_profile_private);
    $smarty->assign('allowed_to_comment'$allowed_to_comment);
    $smarty->assign('total_comments'$total_comments);
    $smarty->assign('total_photo_tags'$total_photo_tags);
    $smarty->assign('m'$m);
    $smarty->assign('search'$search);
    $smarty->assign('friends'$friends);
    $smarty->assign('total_friends'$total_friends);
    $smarty->assign('total_friends_all'$total_friends_all);
    $smarty->assign('total_friends_mut'$total_friends_mut);
    $smarty->assign('maxpage_friends'$page_vars_friends[2]);
    $smarty->assign('p_start_friends'$page_vars_friends[0]+1);
    $smarty->assign('p_end_friends'$page_vars_friends[0]+count($friends));
    $smarty->assign('p_friends'$page_vars_friends[1]);
    $smarty->assign('is_friend'$is_friend);
    $smarty->assign('asmiles'$outsmile);
    $smarty->assign('is_friend_pending'$is_friend_pending);
    $smarty->assign('friendship_allowed'$friendship_allowed);
    $smarty->assign('is_online'$is_online);
    $smarty->assign('actions'$actions->actions_display(0$setting['setting_actions_actionsonprofile'], "se_actions.action_user_id='{$owner->user_info['user_id']}'"));
    $smarty->assign('p_percent'$profile_percent);
    $smarty->assign('birthdays'$birthday_array);
    $smarty->assign('profile_views'$profile_views);
    $smarty->assign('profile_viewers'$profile_viewers);
    $smarty->assign('total_friend_requests'$user->user_friend_total(10));
    $smarty->assign('online_friends'online_friends());
    include 
    "footer.php";
    ?>

    TPL


    PHP:
    {include file='header.tpl'}


    {* 
    $Idprofile.tpl 162 2009-04-30 01:43:11Z john $ *}



    <
    table cellpadding='0' cellspacing='0' width='100%'>
    <
    tr>
    <
    td class='profile_leftside' width='200'>
      <
    div id="ibissamin">



    {
    literal}
    <
    style  type="text/css">
       
    #ibissamin  {
        
    min-width220px/* Минимальная ширина контейнера */
        
    max-width220px/* Минимальная ширина контейнера */
       
    }
      </
    style>
    {/
    literal}


    {* 
    BEGIN LEFT COLUMN *}


      {* 
    SHOW USER PHOTO *}
      <
    table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
      <
    tr>
      <
    td class='profile_photo'


        {if 
    $owner->user_info.user_rate != 0}
        {if 
    $owner->user_info.user_rate 900}
    <
    table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:0px;">
    <
    tr>
    <
    td style="border-top:1px solid #edcf0c;  background-color: #f5ebbb;" height="20px" valign="middle" align="left"><a style='text-decoration:none' href='rate.php?user={$owner->user_info.user_username}'><div  style="position:absolute; float:right; overflow:visible; color: #A9A26C; width:200px; font-weight:bold; text-align:center; font-family: arial, serif; line-height:20px"><font size=2>{math equation="x+y;" x=$owner->user_info.user_rate y=$p_percent} %</font></div></a><table width="{$owner->user_info.user_rate|truncate:2:true}%" border="0" cellspacing="0" cellpadding="0">
    <
    tr>
    <
    td style="background-color: #f0e39a;  font-weight:bold;" height="20px" valign="middle" align="right"></td>
    </
    tr>
    </
    table>
      </
    td>
     </
    tr>
    <
    tr><td height=7px></td></tr>
    </
    table>
        {/if}

        {if 
    $owner->user_info.user_rate 900}
    <
    table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:0px;">
    <
    tr>
    <
    td style="border-top:1px solid #edcf0c;  background-color: #F3EACB;" height="20px" valign="middle" align="left"><a style='text-decoration:none' href='rate.php?user={$owner->user_info.user_username}'><div style="position:absolute; float:right; overflow:visible; color: #A9A26C; width:200px; font-weight:bold; text-align:center; font-family: arial, serif; line-height:20px"><font size=2>{math equation="x+y;" x=$owner->user_info.user_rate y=$p_percent} %</font></div></a><table width="99%" border="0" cellspacing="0" cellpadding="0">
    <
    tr>
    <
    td style="background-color: #E1D7A2;  font-weight:bold;" height="20px" valign="middle" align="right"></td>
    </
    tr>
    </
    table>
      </
    td>
     </
    tr>
    <
    tr><td height=7px></td></tr>
    </
    table>
        {/if}
        {else}
    <
    table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:0px;">
    <
    tr>
    <
    td style="border-top:1px solid #c0ccd9; background-color: #eeeeee;" height="20px" valign="middle" align="left"><a style='text-decoration:none' href='rate.php?user={$owner->user_info.user_username}'><div style="position:absolute; float:right; overflow:visible; color: #8ba1bc; width:200px; font-weight:bold; text-align:center; line-height:20px"><font size=2>{$p_percent} %</font></div></a><table width="{$p_percent}%" border="0" cellspacing="0" cellpadding="0">
    <
    tr>
    <
    td style="background-color: #dae2e8; color: #8ba1bc; font-weight:bold;" height="20px" valign="middle" align="right"></td>
    </
    tr>
    </
    table>
      </
    td>
     </
    tr>
    <
    tr><td height=7px>
    </
    td></tr>
    </
    table>
        {/if}




    </
    td>
      </
    tr>
      </
    table>



      <
    table class='profile_menu' cellpadding='0' cellspacing='0' width='100%'>

      

    {if 
    $owner->user_info.user_rate >= 20}
        <
    tr><td class='profile_menu1' nowrap='nowrap'><a href='/user_editprofile.php'><img src='./images/icons/profile_edit16.gif' class='icon' border='0'>{lang_print id=69640915}</a></td></tr>
        {
    assign var='showmenu' value='1'}
        {else}
    {/if}



      {* 
    SHOW PHOTOS OF THIS PERSON *}
      {if 
    $total_photo_tags != 0}
        <
    tr><td class='profile_menu1' nowrap='nowrap'><a href='profile_photos.php?user={$owner->user_info.user_username}'><img src='./images/icons/photos16.gif' class='icon' border='0'>{lang_sprintf id=1204 1=$owner->user_displayname_short 2=$total_photo_tags}</a></td></tr>
        {
    assign var='showmenu' value='1'}
      {/if}


      {* 
    SHOW BUTTONS IF LOGGED IN AND VIEWING SOMEONE ELSE *}
      {if 
    $owner->user_info.user_id != $user->user_info.user_id}

        {* 
    SHOW ADD OR REMOVE FRIEND MENU ITEM *}
        {if 
    $friendship_allowed != && $user->user_exists != 0}
          <
    tr><td class='profile_menu1' nowrap='nowrap'>
            {* 
    JAVASCRIPT FOR CHANGING FRIEND MENU OPTION *}
            {
    literal}
            <
    script type="text/javascript">
            <!--
            function 
    friend_update(statusid) {
              if(
    status == 'pending') {
                if($(
    'addfriend_'+id))
                  $(
    'addfriend_'+id).style.display 'none';
                if($(
    'confirmfriend_'+id))
                  $(
    'confirmfriend_'+id).style.display 'none';
                if($(
    'pendingfriend_'+id))
                  $(
    'pendingfriend_'+id).style.display 'block';
                if($(
    'removefriend_'+id))
                  $(
    'removefriend_'+id).style.display 'none';
              } else if(
    status == 'remove') {
                if($(
    'addfriend_'+id))
                  $(
    'addfriend_'+id).style.display 'none';
                if($(
    'confirmfriend_'+id))
                  $(
    'confirmfriend_'+id).style.display 'none';
                if($(
    'pendingfriend_'+id))
                  $(
    'pendingfriend_'+id).style.display 'none';
                if($(
    'removefriend_'+id))
                  $(
    'removefriend_'+id).style.display 'block';
              } else if(
    status == 'add') {
                if($(
    'addfriend_'+id))
                  $(
    'addfriend_'+id).style.display 'block';
                if($(
    'confirmfriend_'+id))
                  $(
    'confirmfriend_'+id).style.display 'none';
                if($(
    'pendingfriend_'+id))
                  $(
    'pendingfriend_'+id).style.display 'none';
                if($(
    'removefriend_'+id))
                  $(
    'removefriend_'+id).style.display 'none';
              }
            }
            
    //-->
            
    </script>
            {/literal}
            <div id='addfriend_{$owner->user_info.user_id}'{if $is_friend == TRUE || $is_friend_pending != 0} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=876}', 'user_friends_manage.php?user={$owner->user_info.user_username}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');"><img src='./images/icons/addfriend16.gif' class='icon' border='0'>{lang_print id=838}</a></div>
            <div id='confirmfriend_{$owner->user_info.user_id}'{if $is_friend_pending != 1} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=887}', 'user_friends_manage.php?user={$owner->user_info.user_username}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');"><img src='./images/icons/addfriend16.gif' class='icon' border='0'>{lang_print id=885}</a></div>
            <div id='pendingfriend_{$owner->user_info.user_id}'{if $is_friend_pending != 2} style='display: none;'{/if} class='nolink'><img src='./images/icons/addfriend16.gif' class='icon' border='0'>{lang_print id=875}</div>
            <div id='removefriend_{$owner->user_info.user_id}'{if $is_friend == FALSE || $is_friend_pending != 0} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=837}', 'user_friends_manage.php?task=remove&user={$owner->user_info.user_username}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');"><img src='./images/icons/remove_friend16.gif' class='icon' border='0'>{lang_print id=837}</a></div>
          </td></tr>
          {assign var='showmenu' value='1'}
        {/if}

        {* SHOW SEND MESSAGE MENU ITEM *}
        {if ($user->level_info.level_message_allow == 2 || ($user->level_info.level_message_allow == 1 && $is_friend)) && $owner->level_info.level_message_allow != 0}
          <tr><td class='profile_menu1' nowrap='nowrap'><a href="javascript:TB_show('{lang_print id=784}', 'user_messages_new.php?to_user={$owner->user_displayname|escape:url}&to_id={$owner->user_info.user_username}&TB_iframe=true&height=400&width=450', '', './images/trans.gif');"><img src='./images/icons/sendmessage16.gif' class='icon' border='0'>{lang_print id=839}</a></td></tr>
          {assign var='showmenu' value='1'}
        {/if}

        {* SHOW SEND Gift menu *}
        {if $user->user_exists != 0}
          <tr><td class='profile_menu1' nowrap='nowrap'><a href = "mf_gifts_send.php?to={$owner->user_info.user_username}"><img src='./images/icons/gifts16.gif' class='icon' border='0'>{lang_print id=69662918}</a></td></tr>
          {assign var='showmenu' value='1'}
        {/if}

    {include file='profile_cofe_link.tpl'}

        {* SHOW REPORT THIS PERSON MENU ITEM *}
        {if $user->user_exists != 0}
          <tr><td class='profile_menu1' nowrap='nowrap'><a href="javascript:TB_show('{lang_print id=857}', 'user_report.php?return_url={$url->url_current()|escape:url}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');"><img src='./images/icons/report16.gif' class='icon' border='0'>{lang_print id=840}</a></td></tr>
          {assign var='showmenu' value='1'}
        {/if}

        {* SHOW BLOCK OR UNBLOCK THIS PERSON MENU ITEM *}
        {if $user->level_info.level_profile_block != 0}
          <tr><td class='profile_menu1' nowrap='nowrap'>
            <div id='unblock'{if $user->user_blocked($owner->user_info.user_id) == FALSE} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=869}', 'user_friends_block.php?task=unblock&user={$owner->user_info.user_username}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');"><img src='./images/icons/unblock16.gif' class='icon' border='0'>{lang_print id=841}</a></div>
            <div id='block'{if $user->user_blocked($owner->user_info.user_id) == TRUE} style='display: none;'{/if}><a href="javascript:TB_show('{lang_print id=868}', 'user_friends_block.php?task=block&user={$owner->user_info.user_username}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');"><img src='./images/icons/block16.gif' class='icon' border='0'>{lang_print id=842}</a></div>
          </td></tr>
          {assign var='showmenu' value='1'}
        {/if}

      {/if}


      {* PLUGIN RELATED PROFILE MENU ITEMS *}
      {hook_foreach name=profile_menu var=profile_menu_args}
        {assign var='showmenu' value='1'}
        <tr>
          <td class='profile_menu1' nowrap='nowrap'>
            <a href='{$profile_menu_args.file}'>
              <img src='./images/icons/{$profile_menu_args.icon}' class='icon' border='0' />
              {lang_sprintf id=$profile_menu_args.title 1=$profile_menu_args.title_1 2=$profile_menu_args.title_2}
            </a>
          </td>
        </tr>
      {/hook_foreach}

      </table>



      {if $showmenu == 1}
        <div style='height: 10px; font-size: 1pt;'>&nbsp;</div>
      {/if}



      {* DISPLAY IF PROFILE IS PRIVATE TO VIEWING USER *}
      {if $is_profile_private != 0}

        {* END LEFT COLUMN *}
        </td>
        <td class='profile_rightside'>
        {* BEGIN RIGHT COLUMN *}
      <div style='margin-left: auto; margin-right: auto; width: 700px;'>

    <table cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td>
    <div class='page_header'>{lang_sprintf id=786 1=$owner->user_displayname}</div>

    </td><td align="right">

    {if $is_online == 1}
    {lang_sprintf id=69655155 1=$owner->user_displayname_short}

    {/if}
    {if $is_online == 0}
    {lang_sprintf id=69646790 1=$owner->user_displayname_short}

    {/if}

    </td></tr></table>




    <br><hr><br>


          <img src='./images/icons/error48.gif' border='0' class='icon_big'>
          <div class='page_header'>{lang_print id=843}</div>
          {lang_print id=844}

    </div>




    {* BEGIN all friend *}

    {if $total_groups != 0}
    <table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
      <tr>
        <td class='header'>
          {lang_print id=653} ({$total_friends})
        </td>
      </tr>
      <tr>
        <td class='profile'>
            {section name=friend_loop loop=$friends max=6}
            <div align="center">
        <div style='width: 100px; float: left;'>
                  <a href='{$url->url_create("profile",$friends[friend_loop]->user_info.user_username)}'>
                    <img src='{$friends[friend_loop]->user_photo('./images/nophoto.gif', TRUE)}' class='photo' width='60' border='0'>
                  </a>

                <div align="center">  
                  
    <a href='{$url->url_create('profile',$friends[friend_loop]->user_info.user_username)}'>{$friends[friend_loop]->user_displayname}</a></div>

    </div>
    </div>
        {cycle values=",<div style='clear: both; height: 10px;'></div>"}
            {/section}
        </td>
      </tr>
    </table>
    {/if}

    {* END all friend *}




      {* END LEFT COLUMN *}
        </td>
        <td class='profile_rightside'>
        {* BEGIN RIGHT COLUMN *}

          <img src='./images/icons/error48.gif' border='0' class='icon_big'>
          <div class='page_header'>{lang_print id=843}</div>
          {lang_print id=844}

      {* DISPLAY ONLY IF PROFILE IS NOT PRIVATE TO VIEWING USER *}
      {else}



        {* BEGIN STATS *}
        <table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
        <tr><td class='header'>{lang_print id=24}</td></tr>
        <tr>
        <td class='profile'>
          <table cellpadding='0' cellspacing='0'>
          <tr><td width='80' valign='top'>{lang_print id=1120}</td><td><a href='search_advanced.php?cat_selected={$owner->profilecat_info.profilecat_id}'>{lang_print id=$owner->profilecat_info.profilecat_title}</a></td></tr>
          <tr><td valign='top'>{lang_print id=1119}</td><td>{lang_print id=$owner->subnet_info.subnet_name}</td></tr>
          <tr><td>{lang_print id=846}</td><td>{lang_sprintf id=740 1=$profile_views}</td></tr>
          {if $setting.setting_connection_allow != 0}<tr><td>{lang_print id=847}</td><td>{lang_sprintf id=848 1=$total_friends}</td></tr>{/if}
          {if $owner->user_info.user_dateupdated != ""}<tr><td>{lang_print id=1113}</td><td>{assign var='last_updated' value=$datetime->time_since($owner->user_info.user_dateupdated)}{lang_sprintf id=$last_updated[0] 1=$last_updated[1]}</td></tr>{/if}
          {if $owner->user_info.user_signupdate != ""}<tr><td>{lang_print id=850}</td><td>{$datetime->cdate("`$setting.setting_dateformat`", $datetime->timezone("`$owner->user_info.user_signupdate`", $global_timezone))}</td></tr>{/if}
          </table>
        </td>
        </tr>
        </table>
        {* END STATS *}


        {* PLUGIN RELATED PROFILE SIDEBAR *}
        {hook_foreach name=profile_side var=profile_side_args}
          {include file=$profile_side_args.file}
        {/hook_foreach}


      {* END LEFT COLUMN *}
      </td>
      <td class='profile_rightside'>
      {* BEGIN RIGHT COLUMN *}

        {* JAVASCRIPT FOR SWITCHING TABS *}
        {literal}
        <script type='text/javascript'>
        <!--
          var visible_tab = '{/literal}{$v}{literal}';
          function loadProfileTab(tabId)
          {
            if(tabId == visible_tab)
            {
              return false;
            }
            if($('profile_'+tabId))
            {
              $('profile_tabs_'+tabId).className='profile_tab2';
              $('profile_'+tabId).style.display = "block";
              if($('profile_tabs_'+visible_tab))
              {
                $('profile_tabs_'+visible_tab).className='profile_tab';
                $('profile_'+visible_tab).style.display = "none";
              }
              visible_tab = tabId;
            }
          }
        //-->
        </script>
        {/literal}

     


          <div style='margin-left: auto; margin-right: auto; min-width: 735px;'>
        {* SHOW PROFILE TAB BUTTONS *}
        <table cellpadding='0' cellspacing='0'>
        <tr>


        <td valign='bottom'><table cellpadding='0' cellspacing='0'><tr><td class='profile_tab' id='profile_tabs_profile'></td></tr></table></td>


        <td width='100%' class='profile_tab_end'></td>
        </tr>
        </table>

        <div class='profile_content'>

        {* PROFILE TAB *}


          {* SHOW RECENT ACTIVITY *}
          {if $actions|@count > 0}
            {literal}
            <script language="JavaScript">
            <!--
              Rollimage0 = new Image(10,12);
              Rollimage0.src = "./images/icons/action_delete1.gif";
              Rollimage1 = new Image(10,12);
              Rollimage1.src = "./images/icons/action_delete2.gif";
            //-->
            </script>
            {/literal}

            {* SHOW RECENT ACTIONS *}
            <div style='padding-bottom: 10px;' id='actions'>
              <div class='profile_headline2'><b>{lang_print id=851}</b></div>
              {section name=actions_loop loop=$actions}
                <div id='action_{$actions[actions_loop].action_id}' class='profile_action'>
                  <table cellpadding='0' cellspacing='0'>
                  <tr>
                  <td valign='top'><img src='./images/icons/{$actions[actions_loop].action_icon}' border='0' class='icon'></td>
                  <td valign='top' width='100%'>
                    <div class='profile_action_date'>
                      {assign var='action_date' value=$datetime->time_since($actions[actions_loop].action_date)}
                      {lang_sprintf id=$action_date[0] 1=$action_date[1]}
                      {* DISPLAY DELETE LINK IF NECESSARY *}
                      {if $setting.setting_actions_selfdelete == 1 && $actions[actions_loop].action_user_id == $user->user_info.user_id}
                        <img src='./images/icons/action_delete1.gif' style='vertical-align: middle; margin-left: 3px; cursor: pointer; cursor: hand;' border='0' onmouseover="this.src=Rollimage1.src;" onmouseout="this.src=Rollimage0.src;" onClick="SocialEngine.Viewer.userActionDelete({$actions[actions_loop].action_id});" />
                      {/if}
                    </div>
                    {assign var='action_media' value=''}
                    {if $actions[actions_loop].action_media !== FALSE}{capture assign='action_media'}{section name=action_media_loop loop=$actions[actions_loop].action_media}<a href='{$actions[actions_loop].action_media[action_media_loop].actionmedia_link}'><img src='{$actions[actions_loop].action_media[action_media_loop].actionmedia_path}' border='0' width='{$actions[actions_loop].action_media[action_media_loop].actionmedia_width}' class='recentaction_media'></a>{/section}{/capture}{/if}
                    {lang_sprintf assign=action_text id=$actions[actions_loop].action_text args=$actions[actions_loop].action_vars}
                    {$action_text|replace:"[media]":$action_media|choptext:50:"<br>"}
                  </td>
                  </tr>
                  </table>
                </div>
              {/section}
            </div>
          {/if}
          {* END RECENT ACTIVITY *}


        {* END PROFILE TAB *}





        {* FRIENDS TAB *}
        {if $total_friends_all != 0}

           <div style='padding: 10px; background: #F2F2F2; border: 1px solid #BBBBBB; font-weight: bold;'>
           <img src='./images/icons/back16.gif' border='0' class='button'><a href='javascript:history.back()'>{lang_print id=69667140}</a>
           </div>
        <br>
        
            <div>
              <div style='float: left; width: 50%;'>
              
                <font size="3"><b>
                  {if $m == 1}
                    {lang_sprintf id=1024 1=$owner->user_displayname_short}
                  {else}
                    {lang_sprintf id=930 1=$owner->user_displayname_short}
                  {/if} ({$total_friends})
                </b></font>
              </div>
              <div style='float: right; width: 50%; text-align: right;'>
              </div>
              <div style='clear: both;'></div>
            </div><br>

            {* IF MUTUAL FRIENDS EXIST, SHOW OPTION TO VIEW THEM *}
            {if $owner->user_info.user_id != $user->user_info.user_id && $total_friends_mut != 0}
              <div style='margin-bottom: 10px;'>
                {if $m != 1}
                  {lang_print id=1022}
                {else}
                  <a href='ufriend.php?user={$owner->user_info.user_username}&v=friends'>{lang_print id=1022}</a>
                {/if}
                &nbsp;|&nbsp;
                {if $m == 1}
                  {lang_print id=1020}
                {else}
                  <a href='ufriend.php?user={$owner->user_info.user_username}&v=friends&m=1'>{lang_print id=1020}</a>
                {/if}
              </div>
            {/if}

            {* DISPLAY NO RESULTS MESSAGE *}
            {if $search != "" && $total_friends == 0}
              <br>
              <table cellpadding='0' cellspacing='0'>
              <tr><td class='result'>
                <img src='./images/icons/bulb16.gif' border='0' class='icon'>{lang_sprintf id=934 1=$owner->user_displayname_short}
              </td></tr>
              </table>
            {elseif $m == 1 && $total_friends == 0}
              <br>
              <table cellpadding='0' cellspacing='0'>
              <tr><td class='result'>
                <img src='./images/icons/bulb16.gif' border='0' class='icon'>{lang_sprintf id=1023 1=$owner->user_displayname_short}
              </td></tr>
              </table>
            {/if}


            {* DISPLAY PAGINATION MENU IF APPLICABLE *}
            {if $maxpage_friends > 1}
              <div style='text-align: center;'>
                {if $p_friends != 1}<a href='ufriend.php?user={$owner->user_info.user_username}&v=friends&search={$search}&m={$m}&p={math equation='p-1' p=$p_friends}'>« {lang_print id=182}</a>{else}<font class='disabled'>« {lang_print id=182}</font>{/if}
                {if $p_start_friends == $p_end_friends}
                  &nbsp;|&nbsp; {lang_sprintf id=184 1=$p_start_friends 2=$total_friends} &nbsp;|&nbsp;
                {else}
                  &nbsp;|&nbsp; {lang_sprintf id=185 1=$p_start_friends 2=$p_end_friends 3=$total_friends} &nbsp;|&nbsp;
                {/if}
                {if $p_friends != $maxpage_friends}<a href='ufriend.php?user={$owner->user_info.user_username}&v=friends&search={$search}&m={$m}&p={math equation='p+1' p=$p_friends}'>{lang_print id=183} »</a>{else}<font class='disabled'>{lang_print id=183} »</font>{/if}
              </div>
            {/if}

            {* LOOP THROUGH FRIENDS *}
            {section name=friend_loop loop=$friends}
              <div class='browse_friends_result' style='overflow: hidden;'>
                <div class='profile_friend_photo'>
                  <a href='{$url->url_create("profile",$friends[friend_loop]->user_info.user_username)}'>
                    <img src='{$friends[friend_loop]->user_photo("./images/nophoto.gif")}' width='{$misc->photo_size($friends[friend_loop]->user_photo("./images/nophoto.gif"),"90","90","w")}' border='0' alt="{lang_sprintf id=509 1=$friends[friend_loop]->user_displayname_short}">
                  </a>
                </div>
                <div class='profile_friend_info'>
                  <div class='profile_friend_name'><a href='{$url->url_create('profile',$friends[friend_loop]->user_info.user_username)}'>{$friends[friend_loop]->user_displayname}</a></div>
                  <div class='profile_friend_details'>
                    {if $friends[friend_loop]->user_info.user_dateupdated != 0}<div>{lang_print id=849} {assign var='last_updated' value=$datetime->time_since($friends[friend_loop]->user_info.user_dateupdated)}{lang_sprintf id=$last_updated[0] 1=$last_updated[1]}</div>{/if}
                    {if $show_details != 0}
                      {if $friends[friend_loop]->friend_type != ""}<div>{lang_print id=882} {$friends[friend_loop]->friend_type}</div>{/if}
                      {if $friends[friend_loop]->friend_explain != ""}<div>{lang_print id=907} {$friends[friend_loop]->friend_explain}</div>{/if}
                    {/if}
                  </div>
                </div>
                <div class='profile_friend_options'>
                <ul id=navvmenu-v>
                  {if !$members[member_loop].member->is_viewer_blocklisted && ($user->level_info.level_message_allow == 2 || ($user->level_info.level_message_allow == 1 && $friends[friend_loop]->is_viewers_friend == 2)) && $friends[friend_loop]->user_info.user_id != $user->user_info.user_id}<li><a href="javascript:TB_show('{lang_print id=784}', 'user_messages_new.php?to_user={$friends[friend_loop]->user_displayname}&to_id={$friends[friend_loop]->user_info.user_username}&TB_iframe=true&height=400&width=450', '', './images/trans.gif');">{lang_print id=839}</a></li>{/if}
                </ul>
                </div>
                <div style='clear: both;'></div>
              </div>
            {/section}


            {* DISPLAY PAGINATION MENU IF APPLICABLE *}
            {if $maxpage_friends > 1}
              <div style='text-align: center;'>
                {if $p_friends != 1}<a href='ufriend.php?user={$owner->user_info.user_username}&v=friends&search={$search}&m={$m}&p={math equation='p-1' p=$p_friends}'>« {lang_print id=182}</a>{else}<font class='disabled'>« {lang_print id=182}</font>{/if}
                {if $p_start_friends == $p_end_friends}
                  &nbsp;|&nbsp; {lang_sprintf id=184 1=$p_start_friends 2=$total_friends} &nbsp;|&nbsp;
                {else}
                  &nbsp;|&nbsp; {lang_sprintf id=185 1=$p_start_friends 2=$p_end_friends 3=$total_friends} &nbsp;|&nbsp;
                {/if}
                {if $p_friends != $maxpage_friends}<a href='ufrind.php?user={$owner->user_info.user_username}&v=friends&search={$search}&m={$m}&p={math equation='p+1' p=$p_friends}'>{lang_print id=183} »</a>{else}<font class='disabled'>{lang_print id=183} »</font>{/if}
              </div>
            {/if}



        {/if}
        {* END FRIENDS TAB *}







     


        {* PLUGIN RELATED PROFILE TABS *}
        {hook_foreach name=profile_tab var=profile_tab_args}
          <div id='profile_{$profile_tab_args.name}'{if $v != $profile_tab_args.name} style='display: none;'{/if}>
            {include file=$profile_tab_args.file}
          </div>
        {/hook_foreach}


      {/if}
      {* END PRIVACY IF STATEMENT *}

      </div>

    {* END RIGHT COLUMN *}
    </td>
    </tr>
    </table>

    <br>
    <center>
    <div style='clear: both;'></div>


      <div style='width: 672px; padding: 1px; background: #FFFFFF; border: 1px solid #CCCCCC;'>

    <center><b>{lang_print id=69661768} </b><font color="blue">&lt;a href="http://{$smarty.server.SERVER_NAME}/{$user->user_info.user_username}"&gt;{lang_print id=69634713}&lt;/a&gt;</font></center>
    </div>

    </center>

    {include file='footer.tpl'}
    Кому нада правьте содержымое страниц ufriend самИ)))))) под себЯ)
    Хитров and zqz like this.
  2. FANG User


    Offline
    Message Count:
    69
    Likes Received:
    1
    а как сделать чтоб показывало сбоку в блоке онлайн друзья, сколько онлайн моих друзей.

    и ещё вопрос

    как сделать чтоб блок друзей можно было уберать, ну нажал на блок и он завернулся, потом обратно нажал он развернулся.
  3. ExTRANE Thread starter Active member


    Offline
    Message Count:
    278
    Likes Received:
    62
    Блок друзья онлайн!!!

    PHP:
    {* BEGIN friends ONLINE *}

                {if 
    $owner->user_info.user_id == $user->user_info.user_id}
    {if 
    $online_friends[0]|@count 0}
      <
    table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
      <
    tr><td class='header'>
     {
    lang_print id=69651531} ({$online_friends[0]|@count})
        {if 
    $online_friends[0]|@count 6}&nbsp;[ <a href='./user_friends_online.php'>{lang_print id=1021}</a> ]{/if}
      </
    td></tr>
      <
    tr>
      <
    td class='profile'>
      {* 
    SHOW ONLINE FRIENDS IF MORE THAN ZERO *}
      {
    math assign='total_online_friends' equation="x+y" x=$online_friends[0]|@count y=$online_friends[1]}
      {if 
    $total_online_friends 0}
      {if 
    $online_friends[0]|@count == 0}
          {
    lang_sprintf id=977 1=$online_friends[1]} 
        {else}
          {
    capture assign='online_friends_registered'}{section name=online_loop loop=$online_friends[0max=6}{if $smarty.section.online_loop.rownum != 1} {/if}
      <
    div id='profile_friends' style='display: none;'></div>
    <
    div align="center">
        <
    div style='width: 100px; float: left;'>



              <
    a href='{$url->url_create("profile", $online_friends[0][online_loop]->user_info.user_username)}'>
              <
    img class="photo" src='{$online_friends[0][online_loop]->user_photo('./images/nophoto.gif', TRUE)}' class='photo' width='60' border='0'></a>        


    <
    div align="center">
              <
    a href='{$url->url_create("profile", $online_friends[0][online_loop]->user_info.user_username)}'>{$online_friends[0][online_loop]->user_displayname}</a></div>
              {
    $online_users[0][online_loop]->user_username}

    </
    div>
    </
    div>
        {
    cycle values=",<div style='clear: both; height: 10px;'></div>"}
    {/
    section}{/capture}
          {
    $online_friends_registered}
        {/if}
        {else}
          <
    table cellpadding='0' cellspacing='0' align='center'>
          <
    tr><td class='result'><img src='./images/icons/bulb16.gif' border='0' class='icon'>{lang_print id=69654215}</td></tr>
          </
    table>
      {/if}
      
      </
    td>
      </
    tr>
      </
    table>
      {/if}  {/if}

    Это типа умного спойлера как в ВК )))
    Ну подумай сам как такое зделатЬ) ..
    зделаеш даш и я попользуюсЬ)))))))))))))))))))))))
    zqz likes this.
  4. widik User


    Offline
    Message Count:
    225
    Likes Received:
    15
    My version of phpFox:
    3.0.0
    а чем отличается этот мод от того что уже стоял на сайте ? скрины в студию !!!
  5. FANG User


    Offline
    Message Count:
    69
    Likes Received:
    1
    ExTRANE: конечно блок друзей онлайн "Отлично работает который ты дал"

    ну он используется только каждого пользователя в своем профиле, например когда заходишь в другого профиль пользователя, там не показывает его друзей онлайн а надо чтоб показывало, так же когда заходишь на профиль свой показывает твои пользователей онлайн и другие могут их видить если страница не закрыта.

    думаю понятно объяснил что именно нужно :)
  6. ExTRANE Thread starter Active member


    Offline
    Message Count:
    278
    Likes Received:
    62
    Тут ясно написано как в Вкоатакте.ру!!!
    ... читай посТ!!!!!!!!!!!!!!
  7. ExTRANE Thread starter Active member


    Offline
    Message Count:
    278
    Likes Received:
    62


    Нууу так и должно . на чужых не показуеТ)))
    Смастириш чтоб на чужых показывалО даш и я попользуюсЬ)))
  8. liner User


    Offline
    Message Count:
    78
    Likes Received:
    0
    друх, подскажи, у меня они отчего-то в один столбик.
    как их сделать в 2,3 и т.д. ?
  9. ExTRANE Thread starter Active member


    Offline
    Message Count:
    278
    Likes Received:
    62

    если я не ошибаюсь то тут вроде руководит тег <div> сколько столбцов, вот:

    PHP:
    {if $smarty.section.online_loop.rownum != 1} {/if} 
      <
    div id='profile_friends' style='display: none;'></div
    <
    div align="center"
    <
    div style='width: 100px; float: left;'>
    Именно это:

    PHP:
    <div style='width: 100px; float: left;'>
    Ты посмотри закрыт ли он! или подправь (хоть попробуй) width

    реально может быть что у тебя просто фотка аватара больше и оно не влазит в 3 столбца поетому все в один ... поставь width больше ...к примеру 120px
  10. aj7r User


    Offline
    Message Count:
    128
    Likes Received:
    39
    My version of SE:
    3.20
    Если они в один столбик то уменьшаем width: 100px; с шагом 5 (тоесть 95 потом 90 ...) пока не встанет ровно

Share This Page

All rights reserved SocEngine.ru ©