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

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

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

ORDER BY в блоке друзья

Discussion in 'Моды - Mods' started by Canvit, Aug 16, 2012.

  1. zqz User


    Offline
    Message Count:
    230
    Likes Received:
    9
    My version of SE:
    3.16
    подскажите как выровнять блок друзья онлайн также как блок друзья чтоб одинаковые были и поставить ограничения на количество букв в отображении фамилии и имя допустим на 11 букв!


    [IMG]

    Code:
    {* Друзья *}
     
    {if $total_friends != 0}
    <table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
      <tr>
        <td class='header'>  {lang_print id=653} ({$total_friends})
     
     
     
    {if $total_friends > 4}<a href='friends.php?user={$owner->user_info.user_username}'>{lang_print id=1021}</a>{/if}
     
     
        <table>
     
    <tr width='100%'>
    <td width='70%'>
       
          </td>
    <td width='30%'>
     
    </td></tr></table>
        </td>
      </tr>
      <tr width='100%'>
        <td class='profile'>
        <table>
            {section name=friend_loop loop=$friends max=6}
            <div align="center">
     
     
     
     
     
     
     
     
     
     
    <div style='width: 66px; float: left; padding: 10px 0px 0px 0px;'>
                  <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='glossy' width='50' heidht='50' 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>
     
            {/section}
                        </table>
     
        </td>
      </tr>
    </table>
    {/if}
     
    {* Конец друзья *}
     
     
     
    {* Друзья онлайн *}
     
    {if $owner->user_info.user_id == $owner->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'>
    Друзья онлайн ({$online_friends[0]|@count})
    {if $online_friends[0]|@count > 6}&nbsp;[ <a href='./user_friends_online.php'>все</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[0] max=6}{if $smarty.section.online_loop.rownum != 1} {/if}
    <div id='profile_friends' style='display: none;'></div>
    <div align="center">
    <div style='width: 66px; float: left;'>
     
     
     
    <a href='{$url->url_create("profile", $online_friends[0][online_loop]->user_info.user_username)}'>
    <img class="glossy" src='{$online_friends[0][online_loop]->user_photo('./images/nophoto.gif', TRUE)}' width='50' 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'>ffffffff</td></tr>
    </table>
    {/if}
     
    </td>
    </tr>
    </table>
    {/if} {/if}
    
  2. Gooos абырвалГ


    Offline
    • Admin
    Message Count:
    2,435
    Likes Received:
    645
    My version of SE:
    3.20
    PHP:
    {cycle values=",,<div style='clear: both; height: 10px;'></div>"}
    а имена я бы сунул в title и alt у картинок

Share This Page

All rights reserved SocEngine.ru ©