PHP:
{* BEGIN RIGHT COLUMN *}
{* MUSIC PLAYER *}
{if $music_allow}
{include file='music_in_profile.tpl'}
{/if}
{* END MUSIC PLAYER *}
{* 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}
{* SHOW PROFILE TAB BUTTONS *}
<table cellpadding='0' cellspacing='0'>
<tr>
<td valign='bottom'><table cellpadding='0' cellspacing='0'><tr><td class='profile_tab{if $v == 'profile'}2{/if}' id='profile_tabs_profile' onMouseUp="this.blur()"><a href='javascript:void(0);' onMouseDown="loadProfileTab('profile')" onMouseUp="this.blur()">{lang_print id=652}</a></td></tr></table></td>
{if $total_friends_all != 0}<td valign='bottom'><table cellpadding='0' cellspacing='0'><td class='profile_tab{if $v == 'friends'}2{/if}' id='profile_tabs_friends' onMouseUp="this.blur()"><a href='javascript:void(0);' onMouseDown="loadProfileTab('friends');" onMouseUp="this.blur()">{lang_print id=653}</a></td></tr></table></td>{/if}
{if $allowed_to_comment != 0 || $total_comments != 0}<td valign='bottom'><table cellpadding='0' cellspacing='0'><td class='profile_tab{if $v == 'comments'}2{/if}' id='profile_tabs_comments' onMouseUp="this.blur()"><a href='javascript:void(0);' onMouseDown="loadProfileTab('comments');SocialEngine.ProfileComments.getComments(1)" onMouseUp="this.blur()">{lang_print id=854}</a></td></tr></table></td>{/if}
{* PLUGIN RELATED PROFILE TABS *}
{foreach from=$global_plugins key=plugin_k item=plugin_v}
{if $plugin_v.menu_profile_tab != ''}
<td valign='bottom'><table cellpadding='0' cellspacing='0' style='float: left;'><td class='profile_tab{if $v == $plugin_k}2{/if}' id='profile_tabs_{$plugin_k}' onMouseUp="this.blur()"><a href='javascript:void(0);' onMouseDown="loadProfileTab('{$plugin_k}')" onMouseUp="this.blur()">{lang_print id=$plugin_v.menu_profile_tab.title}</a></td></tr></table></td>
{/if}
{/foreach}
<td width='100%' class='profile_tab_end'> </td>
</tr>
</table>
<div class='profile_content'>
{* PROFILE TAB *}
<div id='profile_profile'{if $v != 'profile'} style='display: none;'{/if}>
{* SHOW PROFILE CATS AND FIELDS *}
{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}
{* END PROFILE TABS AND FIELDS *}
{* 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";
var total_actions = {/literal}{$actions|@count}{literal};
function action_delete(action_id) {
$('action_' + action_id).style.display = 'none';
total_actions--;
if(total_actions == 0)
$('actions').style.display = "none";
}
//-->
</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="javascript:$('ajaxframe').src='misc_js.php?task=action_delete&action_id={$actions[actions_loop].action_id}'">
{/if}
</div>
{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}
{capture assign='action_text'}{lang_sprintf id=$actions[actions_loop].action_text 1=$actions[actions_loop].action_vars[0] 2=$actions[actions_loop].action_vars[1] 3=$actions[actions_loop].action_vars[2] 4=$actions[actions_loop].action_vars[3] 5=$actions[actions_loop].action_vars[4] 6=$actions[actions_loop].action_vars[5] 7=$actions[actions_loop].action_vars[6]}{/capture}
{$action_text|replace:"[media]":$action_media|choptext:50:"<br>"}
</td>
</tr>
</table>
</div>
{/section}
</div>
{/if}
{* END RECENT ACTIVITY *}
</div>
{* END PROFILE TAB *}
{* FRIENDS TAB *}
{if $total_friends_all != 0}
<div id='profile_friends'{if $v != 'friends'} style='display: none;'{/if}>
<div>
<div style='float: left; width: 50%;'>
<div class='profile_headline'>
{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})
</div>
</div>
<div style='float: right; width: 50%; text-align: right;'>
{if $search == ""}
<div id='profile_friends_searchbox_link'>
<a href='javascript:void(0);' onClick="$('profile_friends_searchbox_link').style.display='none';$('profile_friends_searchbox').style.display='block';$('profile_friends_searchbox_input').focus();">{lang_print id=1197}</a>
</div>
{/if}
<div id='profile_friends_searchbox' style='text-align: right;{if $search == ""} display: none;{/if}'>
<form action='profile.php' method='post'>
<input type='text' maxlength='100' size='30' class='text' name='search' value='{$search}' id='profile_friends_searchbox_input'>
<input type='submit' class='button' value='{lang_print id=646}'>
<input type='hidden' name='p' value='{$p}'>
<input type='hidden' name='v' value='friends'>
<input type='hidden' name='user' value='{$owner->user_info.user_username}'>
</form>
</div>
</div>
<div style='clear: both;'></div>
</div>
{* 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='profile.php?user={$owner->user_info.user_username}&v=friends'>{lang_print id=1022}</a>
{/if}
|
{if $m == 1}
{lang_print id=1020}
{else}
<a href='profile.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='profile.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}
| {lang_sprintf id=184 1=$p_start_friends 2=$total_friends} |
{else}
| {lang_sprintf id=185 1=$p_start_friends 2=$p_end_friends 3=$total_friends} |
{/if}
{if $p_friends != $maxpage_friends}<a href='profile.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'>
{if !$friends[friend_loop]->is_viewers_friend && !$friends[friend_loop]->is_viewers_blocklisted && $friends[friend_loop]->user_info.user_id != $user->user_info.user_id && $user->user_exists != 0}<div id='addfriend_{$friends[friend_loop]->user_info.user_id}'><a href="javascript:TB_show('{lang_print id=876}', 'user_friends_manage.php?user={$friends[friend_loop]->user_info.user_username}&TB_iframe=true&height=300&width=450', '', './images/trans.gif');"">{lang_print id=838}</a></div>{/if}
{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}<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>{/if}
</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='profile.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}
| {lang_sprintf id=184 1=$p_start_friends 2=$total_friends} |
{else}
| {lang_sprintf id=185 1=$p_start_friends 2=$p_end_friends 3=$total_friends} |
{/if}
{if $p_friends != $maxpage_friends}<a href='profile.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}
</div>
{/if}
{* END FRIENDS TAB *}
{* BEGIN COMMENTS TAB *}
{if $allowed_to_comment != 0 || $total_comments != 0}
{* SHOW COMMENT TAB *}
<div id='profile_comments'{if $v != 'comments'} style='display: none;'{/if}>
{* COMMENTS *}
<div>{if $total_comments != 0} [ <a href='profile_comments.php?user={$owner->user_info.user_username}'>{$profile25} {$profile32}</a> ]{/if}
{if $user->user_exists != 0} <div style='text-align: right; position: relative; top: -15px;'><a href='user_graffiti.php?user={$owner->user_info.user_username}'>{$profile50}ГРАФФИТИ</a></div>{/if}</div>
{literal}
<script type="text/javascript">
function insertsmile(dat)
{
comment_body.focus();
comment_body.value += dat+' ';
}
</script>
{/literal}
<div id="profile_{$owner->user_info.user_id}_postcomment"></div>
{$asmiles}<br>
<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: 10pt;
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>
</div>
{/if}
{* END COMMENTS *}
{* PLUGIN RELATED PROFILE TABS *}
{foreach from=$global_plugins key=plugin_k item=plugin_v}
{if $plugin_v.menu_profile_tab != ''}
<div id='profile_{$plugin_k}'{if $v != $plugin_k} style='display: none;'{/if}>
{include file=$plugin_v.menu_profile_tab.file}
</div>
{/if}
{/foreach}
{/if}
{* END PRIVACY IF STATEMENT *}
</div>
{* END RIGHT COLUMN *}
У кого этот шаб стоит и кто его переделывал ... поделитесь интересным, плиз.