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

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

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

Фото Смотревших Профиль для SocialEngine 3.20+

Discussion in 'Моды - Mods' started by Taronha, Dec 21, 2010.

  1. Taronha Thread starter User


    Offline
    Message Count:
    86
    Likes Received:
    0
    [IMG]

    Viewed Profile Picture - простая модификация добавляющая вывод фотографий пользователей, которые просматривали ваш профиль в SocialEngine 3.20+.

    Открываем user_home.php
    там находим
    PHP:
    // RETRIEVE VIEWS AND VIEWERS IF NECESSARY
    $profile_views 0$profile_viewers = Array();
    $view_query $database->database_query("SELECT profileview_views, profileview_viewers FROM se_profileviews WHERE profileview_user_id='{$user->user_info['user_id']}'"); if($database->database_num_rows($view_query) == 1) { $views $database->database_fetch_assoc($view_query);
    $profile_views $views['profileview_views'];
    if(
    $views['profileview_viewers'] == "") { $views['profileview_viewers'] = "''";
    }
    $viewer_query $database->database_query("SELECT user_id, user_username, user_fname, user_lname FROM se_users WHERE user_id IN ({$views['profileview_viewers']})"); while($viewer_info $database->database_fetch_assoc($viewer_query)) {$viewer = new se_user();
    $viewer->user_info['user_id'] = $viewer_info['user_id'];
    $viewer->user_info['user_username'] = $viewer_info['user_username'];
    $viewer->user_info['user_fname'] = $viewer_info['user_fname']; $viewer->user_info['user_lname'] = $viewer_info['user_lname']; $viewer->user_displayname();
     
    // SET PROFILE VIEWERS
    $profile_viewers[] = $viewer; } $profile_viewers_array explode(","$views['profileview_viewers']); usort($profile_viewerscreate_function('$a,$b''global $profile_viewers_array; if(array_search($a->user_info["user_id"], $profile_viewers_array) == array_search($b->user_info["user_id"], $profile_viewers_array)) { return 0; } else { return (array_search($a->user_info["user_id"], $profile_viewers_array) < array_search($b->user_info["user_id"], $profile_viewers_array)) ? -1 : 1; }')); }
    и заменяем на это
    PHP:
    // RETRIEVE VIEWS AND VIEWERS IF NECESSARY
    $profile_views 0$profile_viewers = Array();
    $view_query $database->database_query("SELECT profileview_views, profileview_viewers FROM se_profileviews WHERE profileview_user_id='{$user->user_info['user_id']}'");
     
    if(
    $database->database_num_rows($view_query) == 1) { $views $database->database_fetch_assoc($view_query);
    $profile_views $views['profileview_views'];
    if(
    $views['profileview_viewers'] == "") { $views['profileview_viewers'] = "''";
    }
    $viewer_query $database->database_query("SELECT user_id, user_photo, user_username, user_fname, user_lname FROM se_users WHERE user_id IN ({$views['profileview_viewers']})"); while($viewer_info $database->database_fetch_assoc($viewer_query)) { $viewer = new se_user();
    $viewer->user_info['user_id'] = $viewer_info['user_id'];
    $viewer->user_info['user_photo'] = $viewer_info['user_photo'];
    $viewer->user_info['user_username'] = $viewer_info['user_username'];
    $viewer->user_info['user_fname'] = $viewer_info['user_fname'];
    $viewer->user_info['user_lname'] = $viewer_info['user_lname'];
    $viewer->user_displayname();
     
    // SET PROFILE VIEWERS
    $profile_viewers[] = $viewer; } $profile_viewers_array explode(","$views['profileview_viewers']); usort($profile_viewerscreate_function('$a,$b''global $profile_viewers_array; if(array_search($a->user_info["user_id"], $profile_viewers_array) == array_search($b->user_info["user_id"], $profile_viewers_array)) { return 0; } else { return (array_search($a->user_info["user_id"], $profile_viewers_array) < array_search($b->user_info["user_id"], $profile_viewers_array)) ? -1 : 1; }')); }

    после открываем user_home.tpl
    находим вот это

    PHP:
    {* SHOW NUMBER OF TIMES PROFILE HAS BEEN VIEWED *}
    <
    div><img src='./images/icons/newviews16.gif' border='0' class='icon' />{lang_sprintf id=740 1=$profile_views}{if $profile_viewers != 0}[ <a href='user_home.php?task=resetviews'>{lang_print id=741}</a> ]{/if}
     
    {* 
    WHO VIEWED MY PROFILE LINK *}
    {if 
    $user->user_info.user_saveviews == 1}{if $profile_viewers|@count != 0}<div style='margin-top: 10px;'> <a href='javascript:void(0);' onclick="$('profile_viewers').style.display='block';this.style.display='none';">{lang_print id=1064}</a><div id='profile_viewers' style='display: none; max-height: 400px; overflow: auto;'> {lang_print id=1182}{section name=viewer_loop loop=$profile_viewers} <a href='{$url->url_create("profile", $profile_viewers[viewer_loop]->user_info.user_username)}'>{$profile_viewers[viewer_loop]->user_displayname}</a>{if $smarty.section.viewer_loop.last !== TRUE}, {/if}{/section}</div></div>{else} {lang_print id=1063}{/if}{/if}</div></td></tr> </table><div class='spacer10'></div>
    и заменяем на это

    PHP:
    {* SHOW NUMBER OF TIMES PROFILE HAS BEEN VIEWED *}
    {if 
    $user->user_info.user_saveviews == 1}{if $profile_viewers|@count != 0}<table cellpadding='0' cellspacing='0' width='100%'><tr><td class='header'><img src='./images/icons/newviews16.gif' border='0' class='icon' /> {lang_print id=739}</td></tr><tr><tdclass='home_box'><div>{lang_sprintf id=740 1=$profile_views}
    {* 
    WHO VIEWED MY PROFILE LINK *}
    <
    div style='border-top:1px solid #DDDDDD; padding-top:5px; margin-top: 10px;'><a href='javascript:void(0);' onclick="$('profile_viewers').style.display='block';this.style.display='none';">{lang_print id=1064}</a><div id='profile_viewers' style='display: none; max-height: 400px; overflow: auto;'>{section name=viewer_loop loop=$profile_viewers}<a style='color:#333' href='{$url->url_create("profile", $profile_viewers[viewer_loop]->user_info.user_username)}'><img src='{$profile_viewers[viewer_loop]->user_photo('./images/nophoto.gif', TRUE)}' border='0' width='40' height='40'></a>{if $smarty.section.viewer_loop.last !== TRUE} {/if}{/section} </div></div></div></td></tr></table><div class='spacer10'></div>{/if}{/if}
  2. lem1x Active member


    Offline
    Message Count:
    166
    Likes Received:
    68
    Напишите нормально пожалуйста
    Code:
    Так
    PHP:
    Или так
    САИДКА likes this.
  3. Taronha Thread starter User


    Offline
    Message Count:
    86
    Likes Received:
    0
    Открываем user_home.php
    там находим

    PHP:
    // RETRIEVE VIEWS AND VIEWERS IF NECESSARY $profile_views = 0; $profile_viewers = Array(); $view_query = $database->database_query("SELECT profileview_views, profileview_viewers FROM se_profileviews WHERE profileview_user_id='{$user->user_info['user_id']}'"); if($database->database_num_rows($view_query) == 1) { $views = $database->database_fetch_assoc($view_query); $profile_views = $views['profileview_views']; if($views['profileview_viewers'] == "") { $views['profileview_viewers'] = "''"; } $viewer_query = $database->database_query("SELECT user_id, user_username, user_fname, user_lname FROM se_users WHERE user_id IN ({$views['profileview_viewers']})"); while($viewer_info = $database->database_fetch_assoc($viewer_query)) {$viewer = new se_user(); $viewer->user_info['user_id'] = $viewer_info['user_id']; $viewer->user_info['user_username'] = $viewer_info['user_username']; $viewer->user_info['user_fname'] = $viewer_info['user_fname']; $viewer->user_info['user_lname'] = $viewer_info['user_lname']; $viewer->user_displayname(); // SET PROFILE VIEWERS $profile_viewers[] = $viewer; } $profile_viewers_array = explode(",", $views['profileview_viewers']); usort($profile_viewers, create_function('$a,$b', 'global $profile_viewers_array; if(array_search($a->user_info["user_id"], $profile_viewers_array) == array_search($b->user_info["user_id"], $profile_viewers_array)) { return 0; } else { return (array_search($a->user_info["user_id"], $profile_viewers_array) < array_search($b->user_info["user_id"], $profile_viewers_array)) ? -1 : 1; }')); }
    и заменяем на это

    PHP:
    // RETRIEVE VIEWS AND VIEWERS IF NECESSARY $profile_views = 0; $profile_viewers = Array(); $view_query = $database->database_query("SELECT profileview_views, profileview_viewers FROM se_profileviews WHERE profileview_user_id='{$user->user_info['user_id']}'"); if($database->database_num_rows($view_query) == 1) { $views = $database->database_fetch_assoc($view_query); $profile_views = $views['profileview_views']; if($views['profileview_viewers'] == "") { $views['profileview_viewers'] = "''"; } $viewer_query = $database->database_query("SELECT user_id, user_photo, user_username, user_fname, user_lname FROM se_users WHERE user_id IN ({$views['profileview_viewers']})"); while($viewer_info = $database->database_fetch_assoc($viewer_query)) { $viewer = new se_user(); $viewer->user_info['user_id'] = $viewer_info['user_id']; $viewer->user_info['user_photo'] = $viewer_info['user_photo']; $viewer->user_info['user_username'] = $viewer_info['user_username']; $viewer->user_info['user_fname'] = $viewer_info['user_fname']; $viewer->user_info['user_lname'] = $viewer_info['user_lname']; $viewer->user_displayname(); // SET PROFILE VIEWERS $profile_viewers[] = $viewer; } $profile_viewers_array = explode(",", $views['profileview_viewers']); usort($profile_viewers, create_function('$a,$b', 'global $profile_viewers_array; if(array_search($a->user_info["user_id"], $profile_viewers_array) == array_search($b->user_info["user_id"], $profile_viewers_array)) { return 0; } else { return (array_search($a->user_info["user_id"], $profile_viewers_array) < array_search($b->user_info["user_id"], $profile_viewers_array)) ? -1 : 1; }')); }
    после открываем user_home.tpl
    находим вот это

    PHP:
    {* SHOW NUMBER OF TIMES PROFILE HAS BEEN VIEWED *}<div><img src='./images/icons/newviews16.gif' border='0' class='icon' />{lang_sprintf id=740 1=$profile_views}{if $profile_viewers != 0}[ <a href='user_home.php?task=resetviews'>{lang_print id=741}</a> ]{/if} {* WHO VIEWED MY PROFILE LINK *} {if $user->user_info.user_saveviews == 1}{if $profile_viewers|@count != 0}<div style='margin-top: 10px;'> <a href='javascript:void(0);' onclick="$('profile_viewers').style.display='block';this.style.display='none';">{lang_print id=1064}</a><div id='profile_viewers' style='display: none; max-height: 400px; overflow: auto;'> {lang_print id=1182}{section name=viewer_loop loop=$profile_viewers} <a href='{$url->url_create("profile", $profile_viewers[viewer_loop]->user_info.user_username)}'>{$profile_viewers[viewer_loop]->user_displayname}</a>{if $smarty.section.viewer_loop.last !== TRUE}, {/if}{/section}</div></div>{else} {lang_print id=1063}{/if}{/if}</div></td></tr> </table><div class='spacer10'></div>
    и заменяем на это
    PHP:
    {* SHOW NUMBER OF TIMES PROFILE HAS BEEN VIEWED *}{if $user->user_info.user_saveviews == 1}{if $profile_viewers|@count != 0}<table cellpadding='0' cellspacing='0' width='100%'><tr><td class='header'><img src='./images/icons/newviews16.gif' border='0' class='icon' /> {lang_print id=739}</td></tr><tr><tdclass='home_box'><div>{lang_sprintf id=740 1=$profile_views}{* WHO VIEWED MY PROFILE LINK *} <div style='border-top:1px solid #DDDDDD; padding-top:5px; margin-top: 10px;'><a href='javascript:void(0);' onclick="$('profile_viewers').style.display='block';this.style.display='none';">{lang_print id=1064}</a><div id='profile_viewers' style='display: none; max-height: 400px; overflow: auto;'>{section name=viewer_loop loop=$profile_viewers}<a style='color:#333' href='{$url->url_create("profile", $profile_viewers[viewer_loop]->user_info.user_username)}'><img src='{$profile_viewers[viewer_loop]->user_photo('./images/nophoto.gif', TRUE)}' border='0' width='40' height='40'></a>{if $smarty.section.viewer_loop.last !== TRUE} {/if}{/section} </div></div></div></td></tr></table><div class='spacer10'></div>{/if}{/if}
  4. nekromancer User


    Offline
    Message Count:
    193
    Likes Received:
    25
    My version of SE:
    4.2.0
    пользователи показываются не по дате, не знаю как они сортируются. кто поможет сделать по убыванию? аська 406106460. когда к тебе заходят в профиль чел 1, 2, 3 должно отоброжаться 3, 2, 1 но х знает как они отображаются, 1, 3, 2
  5. САИДКА Banned


    Offline
    • Banned
    Message Count:
    5
    Likes Received:
    0
    • Next time use Code Snippets! Just warning...
    Вот файл user_home.php
    PHP:

    <?php
    /* $Id: user_home.php 42 2009-01-29 04:55:14Z john $ */
    $page "user_home";
    include 
    "header.php";
     
    if(isset(
    $_GET['task'])) { $task $_GET['task']; } elseif(isset($_POST['task'])) { $task $_POST['task']; } else { $task "main"; }
     
    // RESET PROFILE VIEWS
    if($task == "resetviews")
    {
    $database->database_query("UPDATE se_profileviews SET profileview_views=0, profileview_viewers='' WHERE profileview_user_id='{$user->user_info['user_id']}' LIMIT 1");
    }
     
    // POPULATE USER SETTINGS ARRAY
    $user->user_settings();
     
    // GET NEWS ITEMS
    $news_array site_news();
    $smarty->assign_by_ref('news'$news_array);
     
    // RETRIEVE VIEWS AND VIEWERS IF NECESSARY $profile_views = 0; $profile_viewers = Array(); $view_query = $database->database_query("SELECT profileview_views, profileview_viewers FROM se_profileviews WHERE profileview_user_id='{$user->user_info['user_id']}'"); if($database->database_num_rows($view_query) == 1) { $views = $database->database_fetch_assoc($view_query); $profile_views = $views['profileview_views']; if($views['profileview_viewers'] == "") { $views['profileview_viewers'] = "''"; } $viewer_query = $database->database_query("SELECT user_id, user_photo, user_username, user_fname, user_lname FROM se_users WHERE user_id IN ({$views['profileview_viewers']})"); while($viewer_info = $database->database_fetch_assoc($viewer_query)) { $viewer = new se_user(); $viewer->user_info['user_id'] = $viewer_info['user_id']; $viewer->user_info['user_photo'] = $viewer_info['user_photo']; $viewer->user_info['user_username'] = $viewer_info['user_username']; $viewer->user_info['user_fname'] = $viewer_info['user_fname']; $viewer->user_info['user_lname'] = $viewer_info['user_lname']; $viewer->user_displayname(); // SET PROFILE VIEWERS $profile_viewers[] = $viewer; } $profile_viewers_array = explode(",", $views['profileview_viewers']); usort($profile_viewers, create_function('$a,$b', 'global $profile_viewers_array; if(array_search($a->user_info["user_id"], $profile_viewers_array) == array_search($b->user_info["user_id"], $profile_viewers_array)) { return 0; } else { return (array_search($a->user_info["user_id"], $profile_viewers_array) < array_search($b->user_info["user_id"], $profile_viewers_array)) ? -1 : 1; }')); }
     
    // CREATE ARRAY OF ACTION TYPES
    $actiontypes_array $actions->actions_allowed();
    $smarty->assign_by_ref('actiontypes'$actiontypes_array);
     
    // GET UPCOMING BIRTHDAYS, START BY CHECKING FOR BIRTHDAY PROFILE FIELDS
    $birthday_array friends_birthdays();
    $smarty->assign_by_ref('birthdays'$birthday_array);
     
    // Get actions feed - Has code in it that is preventing direct caching
    $actions_array $actions->actions_display($setting['setting_actions_visibility'], $setting['setting_actions_actionsperuser']);
    $smarty->assign_by_ref('actions'$actions_array);
     
    // ASSIGN SMARTY VARS AND INCLUDE FOOTER
    $smarty->assign('profile_views'$profile_views);
    $smarty->assign('profile_viewers'$profile_viewers);
    $smarty->assign('online_friends'online_friends() );
    $smarty->assign('total_friend_requests'$user->user_friend_total(10));
    include 
    "footer.php";
    ?>
    user_home.tpl
    PHP:

    {include file='header.tpl'}
    <
    div id="page_body" class="fl_r">
    <
    div id="header_wrap2">
    <
    div id="header_wrap1">
    <
    div id="header" style="">
    <
    h1 id="title">Новости</h1>
    </
    div>
    </
    div>
    </
    div>
    <
    div id="wrap_between"></div>
    <
    div id="wrap3"><div id="wrap2">
    <
    div id="wrap1">
    <
    div id="content">
    <
    div id="profile">
    {* 
    $Iduser_home.tpl 226 2009-10-28 23:57:07Z steve $ *}
     
    <
    table cellpadding='0' cellspacing='0' width='100%'>
    <
    tr>
     
    {* 
    BEGIN LEFT COLUMN *}
    <
    td class='home_left'>
     
    {* 
    ACTIVITY FEED PREFERENCES *}
    <
    div style='margin-bottom: 7px;'>
    <
    div class='page_header' style='width: 50%; float: left;'>{lang_print id=737}</div>
    <
    div style='width: 50%; float: right; text-align: right; padding-top: 13px;'>{if $setting.setting_actions_preference == 1} <a href='javascript:actionprefs();'>{lang_print id=1070}</a>{/if}</div>
    <
    div style='clear: both;'></div>
    </
    div>
     
    {if 
    $setting.setting_actions_preference == 1}
    {* 
    DIV FOR SPECIFYING ACTION PREFERENCES *}
    <
    div style='display: none;' id='actionprefs'>
    <
    div style='margin-top: 10px;'>{lang_print id=1069}</div>
    <
    br />
    <
    form action='misc_js.php' method='post' target='ajaxframe'>
    <
    table cellpadding='0' cellspacing='0'>
    {
    section name=actiontypes_loop loop=$actiontypes}
    <
    tr>
    <
    td>
    <
    input type='checkbox' name='actiontype[]' id='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}' value='{$actiontypes[actiontypes_loop].actiontype_id}'{if $actiontypes[actiontypes_loop].actiontype_selected == 1checked='checked'{/if} />
    <
    label for='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}'>{lang_print id=$actiontypes[actiontypes_loop].actiontype_desc}</label>
    </
    td>
    </
    tr>
    {/
    section}
    </
    table>
    <
    br />
    <
    input type='submit' class='button' value='{lang_print id=173}' />
    <
    input type='button' class='button' value='{lang_print id=39}' onClick='parent.TB_remove();' />
    <
    input type='hidden' name='task' value='save_actionprefs' />
    </
    form>
    </
    div>
     
    {* 
    JAVACRIPT FOR SPECIFYING ACTION PREFERENCES *}
    {
    literal}
    <
    script type="text/javascript">
    <!--
    function 
    actionprefs()
    {
    TB_show('{/literal}{lang_print id=1068}{literal}''#TB_inline?height=250&width=300&inlineId=actionprefs''''../images/trans.gif');
    }
    //-->
    </script>
    {/literal}
     
    {/if}
     
     
    {* SHOW RECENT ACTIVITY LIST *}
    <div class='home_whatsnew'>
     
    {* RECENT ACTIVITY ADVERTISEMENT BANNER *}
    {if $ads->ad_feed != ""}
    <div class='home_action' style='display: block; visibility: visible; padding-bottom: 10px;'>{$ads->ad_feed}</div>
    {/if}
     
    {* DISPLAY ACTIONS *}
    {he_wall_display object='userhome' object_id=$user->user_info.user_id}
    </div>
    </td>
     
    {* BEGIN RIGHT COLUMN *}
    <td class='home_right' width='220'>
     
    {* SHOW STATS AND NOTIFICATIONS *}
    <table cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td class='header'>{lang_print id=739}</td>
    </tr>
    <tr>
    <td class='home_box'>
    {* SHOW NUMBER OF TIMES PROFILE HAS BEEN VIEWED *}{if $user->user_info.user_saveviews == 1}{if $profile_viewers|@count != 0}<table cellpadding='0' cellspacing='0' width='100%'><tr><td class='header'><img src='./images/icons/newviews16.gif' border='0' class='icon' /> {lang_print id=739}</td></tr><tr><tdclass='home_box'><div>{lang_sprintf id=740 1=$profile_views}{* WHO VIEWED MY PROFILE LINK *} <div style='border-top:1px solid #DDDDDD; padding-top:5px; margin-top: 10px;'><a href='javascript:void(0);' onclick="$('profile_viewers').style.display='block';this.style.display='none';">{lang_print id=1064}</a><div id='profile_viewers' style='display: none; max-height: 400px; overflow: auto;'>{section name=viewer_loop loop=$profile_viewers}<a style='color:#333' href='{$url->url_create("profile", $profile_viewers[viewer_loop]->user_info.user_username)}'><img src='{$profile_viewers[viewer_loop]->user_photo('./images/nophoto.gif', TRUE)}' border='0' width='40' height='40'></a>{if $smarty.section.viewer_loop.last !== TRUE} {/if}{/section} </div></div></div></td></tr></table><div class='spacer10'></div>{/if}{/if}
     
    {* SHOW STATUS *}
    {if $user->level_info.level_profile_status != 0}
     
    {lang_javascript ids=773,1113 range=743-747}
    {literal}
    <script type="text/javascript">
    <!--
    SocialEngine.Viewer.user_status = '{/literal}{$user->user_info.user_status}{literal}';
    //-->
    </script>
    {/literal}
     
    <table cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td class='header'>{lang_print id=742}</td>
    </tr>
    <tr>
    <td class='home_box'>
    <table cellpadding='0' cellspacing='0'>
    <tr>
    <td valign='top'><img src='./images/icons/status16.gif' border='0' class='icon2' />&nbsp;&nbsp;</td>
    <td>
    <div id='ajax_status'>
    {if $user->user_info.user_status != ""}
    {assign var='status_date' value=$datetime->time_since($user->user_info.user_status_date)}
    {$user->user_displayname_short} <span id='ajax_currentstatus_value'>{$user->user_info.user_status}</span>
    <div style='padding-top: 5px;'>
    <div style='float: left; padding-right: 5px;'>[ <a href="javascript:void(0);" onClick="SocialEngine.Viewer.userStatusChange(); return false;">{lang_print id=745}</a> ]</div>
    <div class='home_updated'>
    {lang_print id=1113}
    <span id='ajax_currentstatus_date'>{lang_sprintf id=$status_date[0] 1=$status_date[1]}</span>
    </div>
    <div style='clear: both; height: 0px;'></div>
    </div>
    {else}
    <div><a href="javascript:void(0);" onclick="SocialEngine.Viewer.userStatusChange(); return false;">{lang_print id=743}</a></div>
    {/if}
    </div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <div class='spacer10'></div>
    {/if}
     
     
    {* SHOW LAST 3 NEWS ANNOUNCEMENTS *}
    {if $news|@count > 0}
    <table cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td class='header'>{lang_print id=664}</td>
    </tr>
    <tr>
    <td class='home_box'>
    {section name=news_loop loop=$news}
    <table cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td valign='top'>
    <b>{$news[news_loop].announcement_subject}</b><br />
    <i>{$news[news_loop].announcement_date}</i><br />
    {$news[news_loop].announcement_body}
    </td>
    </tr>
    </table>
    {if $smarty.section.news_loop.last == false}<br>{/if}
    {/section}
    </td>
    </tr>
    </table>
    <div class='spacer10'></div>
    {/if}
     
     
    {* SHOW ONLINE USERS IF MORE THAN ZERO *}
    {math assign='total_online_users' equation="x+y" x=$online_users[0]|@count y=$online_users[1]}
    {if $total_online_users > 0}
    <table cellpadding='0' cellspacing='0' class='portal_table' align='center' width='100%'>
    <tr>
    <td class='header'>{lang_print id=665} ({$total_online_users})</td>
    </tr>
    <tr>
    <td class='home_box'>
    {if $online_users[0]|@count == 0}
    {lang_sprintf id=977 1=$online_users[1]}
    {else}
    {capture assign='online_users_registered'}
    {section name=online_loop loop=$online_users[0]}
    {if $smarty.section.online_loop.rownum != 1}, {/if}
    <a href='{$url->url_create("profile", $online_users[0][online_loop]->user_info.user_username)}'>{$online_users[0][online_loop]->user_displayname}</a>
    {/section}
    {/capture}
    {lang_sprintf id=976 1=$online_users_registered 2=$online_users[1]}
    {/if}
    </td>
    </tr>
    </table>
    {* padding in portal_table class <div class='spacer10'></div> *}
    {/if}
    {* online friends *}
    {if $online_friends[2] != 0}
    <table cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td class='header'>{lang_print id=5354423}</td>
    </tr>
    <tr>
    <td class='home_box'>
    <table cellpadding='0' cellspacing='0' align='center' width='100%' style='margin-bottom: 10px;'>
    {section name=online_loop loop=$online_friends[0] max=6}
    {cycle name="startrow3" values="<tr>,"}
    {if $online_friends[0][online_loop]->user_info.user_username!=$user->user_info.user_username}
    <td class='portal_member' valign="bottom"{if (~$smarty.section.online_loop.index & 1) && $smarty.section.online_loop.last} colspan="2" style="width:100%;"{else} style="width:50%;"{/if}>
    <a href='{$url->url_create("profile",$online_friends[0][online_loop]->user_info.user_username)}'>{$online_friends[0][online_loop]->user_displayname|truncate:5:"...":true}</a><br />
    <a href='{$url->url_create('profile', $online_friends[0][online_loop]->user_info.user_username)}'><img src='{$online_friends[0][online_loop]->user_photo('./images/nophoto.gif', TRUE)}' class='photo' style='display: block; margin-left: auto; margin-right: auto;' width='60' height='60' border='0' alt="{lang_sprintf id=509 1=$online_friends[0][online_loop]->user_displayname_short}"></a>
    </td>
    {/if}
    {cycle name="endrow3" values=",</tr>"}
    {if (~$smarty.section.online_loop.index & 1) && $smarty.section.online_loop.last}</tr>{/if}
    {/section}
    </table>
    <br />
    <a href='user_friends_online.php'>{lang_print id=5354424}</a>
    </td>
    </tr>
    </table>
    <div class='spacer10'></div>
    {/if}
     
     
    {* online friends *}
     
    {* SHOW UPCOMING BIRTHDAYS *}
    <div class='header'>{lang_print id=1176}</div>
    <div class='network_content'>
    {section name=birthday_loop loop=$birthdays max=20}
    <div>
    <a href='{$url->url_create("profile", $birthdays[birthday_loop].birthday_user_username)}'>{$birthdays[birthday_loop].birthday_user_displayname}</a>
    - {$datetime->cdate("`$setting.setting_dateformat`", $birthdays[birthday_loop].birthday_date)}
    </div>
    {sectionelse}
    {lang_print id=1180}
    {/section}
    </div>
    <div class='spacer10'></div>
     
    {* PLUGIN RELATED USER HOME SIDEBAR *}
    {hook_foreach name=user_home var=user_home_args}
    {include file=$user_home_args.file}
    {/hook_foreach}
    </td>
    </tr>
    </table>
    </div></div>
    </div>
    </div></div>
    </div>
    {include file='footer.tpl'}
  6. Perizat User


    Offline
    Message Count:
    24
    Likes Received:
    13
    My version of SE:
    3.20
    Кто еще ставил? Все сделала как написано? статистика просмотра профиля вообще не показывает теперь...:(
  7. artimed User


    Offline
    Message Count:
    23
    Likes Received:
    0
    это же получается типа гости . а можно ли имя фамилию вывести ?
  8. Ортеп User


    Offline
    Message Count:
    27
    Likes Received:
    0
    а времья посещение страницы показывает?
  9. PaZiTiF User


    Offline
    Message Count:
    46
    Likes Received:
    2
    My version of SE:
    3.20
    а у кого есть мод "мои гости" на 3 ветку?? :)

Share This Page

All rights reserved SocEngine.ru ©