Информация
Code:
{section name=cat_loop loop=$cats}
{section name=subcat_loop loop=$cats[cat_loop].subcats}
<div class='profile_headline{if !$smarty.section.subcat_loop.first}2{/if}'><b>{lang_print id=$cats[cat_loop].subcats[subcat_loop].subcat_title}</b></div>
<table cellpadding='0' cellspacing='0'>
{* LOOP THROUGH FIELDS IN TAB, ONLY SHOW FIELDS THAT HAVE BEEN FILLED IN *}
{section name=field_loop loop=$cats[cat_loop].subcats[subcat_loop].fields}
<tr>
<td valign='top' style='padding-right: 10px;' nowrap='nowrap'>
{lang_print id=$cats[cat_loop].subcats[subcat_loop].fields[field_loop].field_title}:
</td>
<td>
<div class='profile_field_value'>{$cats[cat_loop].subcats[subcat_loop].fields[field_loop].field_value_formatted}</div>
{if $cats[cat_loop].subcats[subcat_loop].fields[field_loop].field_special == 1 && $cats[cat_loop].subcats[subcat_loop].fields[field_loop].field_value|substr:0:4 != "0000"} ({lang_sprintf id=852 1=$datetime->age($cats[cat_loop].subcats[subcat_loop].fields[field_loop].field_value)}){/if}
</td>
</tr>
{/section}
</table>
{/section}
{/section}
--- добавлено: Jan 9, 2012 1:45 PM ---
Стена
Если используешь обычные комментарии
Code:
{* COMMENTS *}
<div id="profile_{$owner->user_info.user_id}_postcomment"></div>
<div id="profile_{$owner->user_info.user_id}_comments" style='margin-left: auto; margin-right: auto;'></div>
{lang_javascript ids=39,155,175,182,183,184,185,187,784,787,829,830,831,832,833,834,835,854,856,891,1025,1026,1032,1034,1071}
{literal}
<style type='text/css'>
div.comment_headline {
font-size: 13px;
margin-bottom: 7px;
font-weight: bold;
padding: 0px;
border: none;
background: none;
color: #555555;
}
</style>
{/literal}
<script type="text/javascript">
SocialEngine.ProfileComments = new SocialEngineAPI.Comments({ldelim}
'canComment' : {if $allowed_to_comment}true{else}false{/if},
'commentHTML' : '{$setting.setting_comment_html|replace:",":", "}',
'commentCode' : {if $setting.setting_comment_code}true{else}false{/if},
'type' : 'profile',
'typeIdentifier' : 'user_id',
'typeID' : {$owner->user_info.user_id},
'typeTab' : 'users',
'typeCol' : 'user',
'initialTotal' : {$total_comments|default:0},
'paginate' : true,
'cpp' : 10,
'commentLinks' : {literal}{'reply' : true, 'walltowall' : true}{/literal}
{rdelim});
SocialEngine.RegisterModule(SocialEngine.ProfileComments);
// Backwards
function addComment(is_error, comment_body, comment_date)
{ldelim}
SocialEngine.ProfileComments.addComment(is_error, comment_body, comment_date);
{rdelim}
function getComments(direction)
{ldelim}
SocialEngine.ProfileComments.getComments(direction);
{rdelim}
</script>
--- добавлено: Jan 9, 2012 1:46 PM ---
если плагин wall
то вставляешь куда тебе нужно {include file='profile_he_wall_tab.tpl'}