Пример #1
0
 /**
  * Check for mod posts or restricted posts or ignored
  *
  * @param	array	[Array of author data, uses getAuthor if none]
  * @param	array	[Array of status owner information uses $this->_internalData['StatusOwner'] if none]
  * @return	bool
  */
 protected function _okToPost($author = null, $owner = null)
 {
     $author = $author === null ? $this->getAuthor() : $author;
     $owner = $owner === null ? $this->_internalData['StatusOwner'] : $owner;
     /* Restricted Posting */
     if ($author['restrict_post']) {
         if ($author['restrict_post'] == 1) {
             return FALSE;
         }
         $post_arr = IPSMember::processBanEntry($author['restrict_post']);
         if (time() >= $post_arr['date_end']) {
             /* Update this member's profile */
             IPSMember::save($author['member_id'], array('core' => array('restrict_post' => 0)));
         } else {
             return FALSE;
         }
     }
     /* Moderated Posting */
     if ($author['mod_posts']) {
         if ($author['mod_posts'] == 1) {
             return FALSE;
         } else {
             $mod_arr = IPSMember::processBanEntry($author['mod_posts']);
             if (time() >= $mod_arr['date_end']) {
                 /* Update this member's profile */
                 IPSMember::save($author['member_id'], array('core' => array('mod_posts' => 0)));
             } else {
                 return FALSE;
             }
         }
     }
     /* Member is ignoring you! */
     if (IPSMember::checkIgnoredStatus($author['member_id'], $owner['member_id'], 'messages')) {
         return false;
     }
     return TRUE;
 }
 function profileModern($tabs = array(), $member = array(), $comments = "", $friends = array(), $visitors = array(), $default_tab = 'posts', $default_tab_content = '', $fields = null)
 {
     $IPBHTML = "";
     $this->registry->templateStriping['visitors'] = array(FALSE, "row1", "row2");
     $IPBHTML .= "" . $this->registry->getClass('output')->addJSModule("rating", "0") . "\n" . $this->registry->getClass('output')->addJSModule("profile", "0") . "\n<script type='text/javascript'>\n//<![CDATA[\n\tipb.profile.viewingProfile = parseInt( {$member['member_id']} );\n\tipb.templates['remove_friend'] = \"<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=remove&amp;member_id={$member['member_id']}", 'public', ''), "", "") . "' title='{$this->lang->words['remove_friend']}'><img src='{$this->settings['img_url']}/user_delete.png' alt='{$this->lang->words['remove_friend']}' /> {$this->lang->words['remove_as_friend']}</a>\";\n\tipb.templates['add_friend'] = \"<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=add&amp;member_id={$member['member_id']}", 'public', ''), "", "") . "' title='{$this->lang->words['add_friend']}'><img src='{$this->settings['img_url']}/user_add.png' alt='{$this->lang->words['add_friend']}' /> {$this->lang->words['add_friend']}</a>\";\n\tipb.templates['edit_status'] = \"<span id='edit_status'><input type='text' class='input_text' style='width: 60%' id='updated_status' maxlength='150' /> <input type='submit' value='{$this->lang->words['save']}' class='input_submit' id='save_status' /> &nbsp;<a href='#' id='cancel_status' class='cancel' title='{$this->lang->words['cancel']}'>{$this->lang->words['cancel']}</a></span>\";\n\t\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($member['member_id']) ? "\n\t\t\tipb.profile.isFriend = true;\n\t\t" : "\n\t\t\tipb.profile.isFriend = false;\n\t\t") . "" : "") . "\n//]]>\n</script>\n<!--SKINNOTE: Added report link - feel free to change around -->\n" . ($this->memberData['member_id'] && $member['member_id'] != $this->memberData['member_id'] ? "\n\t<ul class='topic_buttons'>\n\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=reports&amp;section=reports&amp;rcom=profiles&amp;member_id={$member['member_id']}", 'public', ''), "", "") . "'>" . $this->registry->getClass('output')->getReplacement("user_icon") . " {$this->lang->words['report_member']}</a></li>\n\t</ul>\n" : "") . "\n\t\n" . ($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] || $this->memberData['g_is_supmod'] == 1 ? "<!--SKINNOTE: If you are a mod and are looking at your own profile, you get two edit links - not really needed -->\n\t<ul class='topic_buttons'>\n\t\t" . ($this->memberData['g_is_supmod'] == 1 && $member['member_id'] != $this->memberData['member_id'] ? "\n\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;do=editmember&amp;auth_key={$this->member->form_hash}&amp;member={$member['member_id']}", 'public', ''), "", "") . "'>" . $this->registry->getClass('output')->getReplacement("user_icon") . " {$this->lang->words['supmod_edit_member']}</a></li>\n\t\t" : "") . "\n\t\t" . ($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] ? "\n\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=usercp&amp;tab=members", 'public', ''), "", "") . "'>" . $this->registry->getClass('output')->getReplacement("user_edit_icon") . " {$this->lang->words['edit_profile']}</a></li>\n\t\t" : "") . "\t\t\n\t</ul>" : "") . "\n<div class='vcard'>\n\t<h2 class='maintitle'>\n\t\t<span class='left'><span class=\"fn nickname\">{$member['members_display_name']}</span>{$this->lang->words['m_profile_title']}</span>\n\t\t" . ($this->settings['pp_allow_member_rate'] ? "<span class='rating'>\n\t\t\t\t" . ($this->memberData['member_id'] == $member['member_id'] || !$this->memberData['member_id'] ? "{$this->lang->words['m_rating']} \n\t\t\t\t\t\t" . ($member['pp_rating_real'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "<span id='rating_text' class='desc'></span>" : "{$this->lang->words['m_rating']} \n\t\t\t\t\t\t<a href='#' id='user_rate_1' title='{$this->lang->words['m_rate_1']}'>" . ($member['pp_rating_real'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a><a href='#' id='user_rate_2' title='{$this->lang->words['m_rate_2']}'>" . ($member['pp_rating_real'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a><a href='#' id='user_rate_3' title='{$this->lang->words['m_rate_3']}'>" . ($member['pp_rating_real'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a><a href='#' id='user_rate_4' title='{$this->lang->words['m_rate_4']}'>" . ($member['pp_rating_real'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a><a href='#' id='user_rate_5' title='{$this->lang->words['m_rate_5']}'>" . ($member['pp_rating_real'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a> <span id='rating_text' class='desc'></span>\n\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\trating = new ipb.rating( 'user_rate_', { \n\t\t\t\t\t\t\t\t\t\t\turl: '" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&module=ajax&section=rate&member_id={$member['member_id']}", 'public', ''), "", "") . "&md5check=' + ipb.vars['secure_hash'],\n\t\t\t\t\t\t\t\t\t\t\tcur_rating: " . (isset($member['pp_rating_real']) ? "{$member['pp_rating_real']}" : "0") . ",\n\t\t\t\t\t\t\t\t\t\t\trated: null,\n\t\t\t\t\t\t\t\t\t\t\tallow_rate: ( {$this->memberData['member_id']} != 0 ) ? 1 : 0,\n\t\t\t\t\t\t\t\t\t\t\tshow_rate_text: false\n\t\t\t\t\t\t\t\t\t\t  } );\n\t\t\t\t\t</script>") . "\n\t\t\t</span>" : "") . "\t\t\n\t</h2>\n\t\n\t<div id='profile_overview' class='left'>\n\t\t<div class='personal_info clear general_box alt'>\n\t\t\t<img class=\"photo\" src='{$member['pp_main_photo']}' alt=\"{$member['members_display_name']}{$this->lang->words['users_photo']}\"  />\n\t\t\t" . ($member['warn_percent'] !== NULL ? "<div class='warn_panel clear rounded'>\n\t\t\t\t\t" . ($member['can_edit_warn'] ? "\n\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;type=add&amp;mid={$member['member_id']}&amp;t=0&amp;st=0", 'public', ''), "", "") . "' title='{$this->lang->words['warn_increase']}'><img src='{$this->settings['img_url']}/warn_add.gif' alt='{$this->lang->words['add']}' class='warn_edit up' /></a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;type=minus&amp;mid={$member['member_id']}&amp;t=0&amp;st=0", 'public', ''), "", "") . "' title='{$this->lang->words['warn_decrease']}'><img src='{$this->settings['img_url']}/warn_minus.gif' alt='{$this->lang->words['minus']}' class='warn_edit down'  /></a>\n\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t<!-- SKINNOTE: Has link to open AJAX popup warn logs  -->\n\t\t\t\t\t\t<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;do=view&amp;mid={$member['member_id']}", 'public', ''), "", "") . "' id='warn_link_xxx_{$member['member_id']}' title='{$this->lang->words['warn_view_history']}' class='warn_link'>{$this->lang->words['warn_status']}</a></strong>\n\t\t\t\t\t" . ($member['warn_percent'] >= 80 ? "\n\t\t\t\t\t\t<p class='progress_bar user_warn limit' title='{$this->lang->words['warn_level']} {$member['warn_percent']}%'>\n\t\t\t\t\t" : "\n\t\t\t\t\t\t<p class='progress_bar user_warn' title='{$this->lang->words['warn_level']} {$member['warn_percent']}%'>\n\t\t\t\t\t") . "\n\t\t\t\t\t\t\t<span style='width: {$member['warn_percent']}%'><span>{$this->lang->words['warn_level']} {$member['warn_percent']}%</span></span>\n\t\t\t\t\t\t</p>\n\t\t\t\t</div>" : "") . "\n\t\t\t<ul>\n\t\t\t\t" . ($member['spamStatus'] !== NULL && $member['member_id'] != $this->memberData['member_id'] ? "" . ($member['spamStatus'] === TRUE ? "\n\t\t\t\t\t\t<li><a href='#' onclick=\"return ipb.global.toggleFlagSpammer({$member['member_id']}, false)\">" . $this->registry->getClass('output')->getReplacement("spammer_on") . " {$this->lang->words['spm_on']}</a></li>\n\t\t\t\t\t" : "\n\t\t\t\t\t\t<li><a href='{$this->settings['base_url']}&amp;app=forums&amp;module=moderate&amp;section=moderate&amp;do=setAsSpammer&amp;member_id={$member['member_id']}&amp;auth_key={$this->member->form_hash}' onclick=\"return ipb.global.toggleFlagSpammer({$member['member_id']}, true)\">" . $this->registry->getClass('output')->getReplacement("spammer_off") . " {$this->lang->words['spm_off']}</a></li>\n\t\t\t\t\t") . "" : "") . "\n\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $member['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<li id='friend_toggle'>\n\t\t\t\t\t\t" . (IPSMember::checkFriendStatus($member['member_id']) ? "\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=remove&amp;member_id={$member['member_id']}&amp;secure_key={$this->member->form_hash}", 'public', ''), "", "") . "' title='{$this->lang->words['remove_friend']}'><img src='{$this->settings['img_url']}/user_delete.png' alt='{$this->lang->words['remove_friend']}' /> {$this->lang->words['remove_as_friend']}</a>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=add&amp;member_id={$member['member_id']}&amp;secure_key={$this->member->form_hash}", 'public', ''), "", "") . "' title='{$this->lang->words['add_friend']}'><img src='{$this->settings['img_url']}/user_add.png' alt='{$this->lang->words['add_friend']}' /> {$this->lang->words['add_me_friend']}</a>\n\t\t\t\t\t\t") . "\n\t\t\t\t\t</li>" : "") . "\n\t\t\t\t" . (($member['member_id'] != $this->memberData['member_id'] and $this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members')) ? "\n\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['member_id']}", 'public', ''), "", "") . "' title='{$this->lang->words['pm_this_member']}'>" . $this->registry->getClass('output')->getReplacement("send_msg") . " {$this->lang->words['send_message']}</a></li>\n\t\t\t\t" : "") . "\n\t\t\t\t" . ($member['member_id'] != $this->memberData['member_id'] ? "<!--<li id='ignore_toggle'>\n\t\t\t\t\t\t" . (IPSMember::checkIgnoredStatus($member['member_id']) ? "\n\t\t\t\t\t\t\t<a href='#' title='{$this->lang->words['unignore']}'>" . $this->registry->getClass('output')->getReplacement("ignore_user") . " {$this->lang->words['unignore']}</a>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t<a href='#' title='{$this->lang->words['ignore']}'>" . $this->registry->getClass('output')->getReplacement("ignore_user") . " {$this->lang->words['ignore']}</a>\n\t\t\t\t\t\t") . "\n\t\t\t\t\t</li>-->" : "") . "\n\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_posts&amp;mid={$member['member_id']}&amp;search_filter_app[forums]=1&amp;view_by_title=1", 'public', ''), "", "") . "'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . " {$this->lang->words['find_topics']}</a></li>\n\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_posts&amp;mid={$member['member_id']}" . (!in_array($this->settings['search_method'], array('traditional', 'sphinx')) ? "&amp;search_filter_app[forums]=1" : "") . "", 'public', ''), "", "") . "'>" . $this->registry->getClass('output')->getReplacement("find_posts_link") . " {$this->lang->words['find_posts']}</a></li>\n\t\t\t\t" . ($this->memberData['g_mem_info'] && $this->settings['auth_allow_dnames'] ? "\n\t\t\t\t\t<li id='dname_history'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=dname&amp;id={$member['member_id']}", 'public', ''), "", "") . "' title='{$this->lang->words['view_dname_history']}'>" . $this->registry->getClass('output')->getReplacement("display_name") . " {$this->lang->words['display_name_history']}</a></li>\n\t\t\t\t" : "") . "\n\t\t\t</ul>\n\t\t</div>\n\t\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] ? "" . ($member['pp_reputation_points'] > 0 ? "\n\t\t\t\t<div class='reputation positive'>\n\t\t\t" : "") . "\n\t\t\t" . ($member['pp_reputation_points'] < 0 ? "\n\t\t\t\t<div class='reputation negative'>\n\t\t\t" : "") . "\n\t\t\t" . ($member['pp_reputation_points'] == 0 ? "\n\t\t\t\t<div class='reputation zero'>\n\t\t\t" : "") . "\n\t\t\t\t\t<span class='number'>{$this->lang->words['m_reputation']} {$member['pp_reputation_points']}</span>\n\t\t\t\t\t" . ($member['author_reputation'] && $member['author_reputation']['text'] ? "\n\t\t\t\t\t\t<span class='title'>{$member['author_reputation']['text']}</span>\n\t\t\t\t\t" : "") . "\n\t\t\t\t\t" . ($member['author_reputation'] && $member['author_reputation']['image'] ? "\n\t\t\t\t\t\t<span class='image'><img src='{$member['author_reputation']['image']}' alt='{$this->lang->words['m_reputation']}' /></span>\n\t\t\t\t\t" : "") . "\n\t\t\t\t</div>" : "") . "\n\t\t<div class='info'>\n\t\t\t<dl>\n\t\t\t\t<dt>{$this->lang->words['m_group']}</dt>\n\t\t\t\t<dd>{$member['g_title']}</dd>\n\t\t\t\t<dt>{$this->lang->words['m_posts']}</dt>\n\t\t\t\t<dd " . (!$this->settings['disable_profile_stats'] ? "title='{$member['_total_pct']}% {$this->lang->words['total_percent']}'" : "") . ">" . $this->registry->getClass('class_localization')->formatNumber($member['posts']) . "" . (!$this->settings['disable_profile_stats'] ? " ({$member['_posts_day']} {$this->lang->words['posts_per_day']})" : "") . "</dd>\n\t\t\t\t" . ((!$this->settings['disable_profile_stats'] and $member['favorite_id']) ? "\n\t\t\t\t\t<dt>{$this->lang->words['m_active_in']}</dt>\n\t\t\t\t\t<dd title='{$member['_fav_percent']}% {$this->lang->words['fav_percent']}'>\n\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showforum={$member['favorite_id']}", 'public', ''), "{$this->registry->class_forums->forum_by_id[$member['favorite_id']]['name_seo']}", "showforum") . "'>{$this->registry->class_forums->forum_by_id[$member['favorite_id']]['name']}</a> ({$member['_fav_posts']} {$this->lang->words['fav_posts']})\n\t\t\t\t\t</dd>\n\t\t\t\t" : "") . "\n\t\t\t\t<dt>{$this->lang->words['m_member_since']}</dt>\n\t\t\t\t<dd>" . $this->registry->getClass('class_localization')->getDate($member['joined'], "joined", 0) . "</dd>\n\t\t\t\t<dt>{$this->lang->words['m_profile_views']}</dt>\n\t\t\t\t<dd>" . $this->registry->getClass('class_localization')->formatNumber($member['members_profile_views']) . "</dd>\n\t\t\t\t<dt>{$this->lang->words['m_last_active']}</dt>\n\t\t\t\t<dd>" . ($member['_online'] ? "" . $this->registry->getClass('output')->getReplacement("user_online") . "" : "" . $this->registry->getClass('output')->getReplacement("user_offline") . "") . " {$member['_last_active']}</dd>\n\t\t\t\t<dt>{$this->lang->words['m_currently']}</dt>\n\t\t\t\t<dd>" . ($member['_online'] ? "\n\t\t\t\t\t\t{$member['online_extra']}\n\t\t\t\t\t" : "\n\t\t\t\t\t\t{$this->lang->words['online_offline']}\n\t\t\t\t\t") . "\n\t\t\t\t</dd>\n\t\t\t</dl>\n\t\t</div>\n\t\t\n\t\t" . ($member['custom_fields'] ? "\n\t\t\t" . $this->__f__4deb8619bfd18efab8fb544053a37913($tabs, $member, $comments, $friends, $visitors, $default_tab, $default_tab_content, $fields) . "\t\t" : "") . "\n\t\t\n\t\t" . ($member['pp_setting_count_visitors'] ? "<div class='general_box alt' id='latest_visitors'>\n\t\t\t\t<h3 class='bar'>{$this->lang->words['latest_visitors']}</h3>\n\t\t\t\t" . (is_array($visitors) && count($visitors) ? "\n\t\t\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t" . $this->__f__3df8a44529406be52a05390b4d6e1b1f($tabs, $member, $comments, $friends, $visitors, $default_tab, $default_tab_content, $fields) . "\t\t\t\t\t</ul>\n\t\t\t\t" : "\n\t\t\t\t\t<p class='no_messages'>{$this->lang->words['no_latest_visitors']}</p>\n\t\t\t\t") . "\n\t\t\t</div>" : "") . "\n\t</div>\n\t<div id='main_profile_body' class='right'>\n\t\t<div class='message user_status in_profile' id='status_box'>\n\t\t\t" . $this->registry->getClass('output')->getReplacement("user_status") . "&nbsp;&nbsp; <span class='user'><strong>{$member['members_display_name']}</strong></span> <span class='status' id='status_holder'>" . ($member['pp_status'] ? "{$member['pp_status']}" : "<em>{$this->lang->words['not_set_status']}</em>") . "</span>\n\t\t\t\n\t\t\t" . (($member['member_id'] == $this->memberData['member_id'] and !$this->memberData['gbw_no_status_update']) ? "\n\t\t\t\t<form id='update_status_form' action='{$this->settings['base_url']}app=members&amp;module=profile&amp;section=status' method='post'>\n\t\t\t\t\t<fieldset>\n\t\t\t\t\t<input type='hidden' name='k' value='{$this->member->form_hash}' />\n\t\t\t\t\t\t{$this->lang->words['update_to']} <input type='text' class='text' name='new_status' /> <input type='submit' value='{$this->lang->words['update']}' />\n\t\t\t\t\t</fieldset>\n\t\t\t\t</form>\n\t\t\t" : "") . "\n\t\t</div>\n\t\t<br />\n\t\t\n\t\t<div class='recent_activity'>\n\t\t\t<ol class='tab_bar no_title mini'>\n\t\t\t\t" . $this->__f__11da9e8a532f3c51a215d0bb4cdaba06($tabs, $member, $comments, $friends, $visitors, $default_tab, $default_tab_content, $fields) . "\t\t\t</ol>\n\t\t\t<div id='tab_content' class='row1 profile_pane'>\n\t\t\t\t<div id='tab_{$default_tab}'>\n\t\t\t\t\t{$default_tab_content}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<script type='text/javascript'>\n\t\t\tipb.profile.activeTab = '{$default_tab}';\n\t\t</script>\n\t\n\t\t<div class='about_contact'>\n\t\t\t<div class='about_info left general_box row2'>\n\t\t\t\t<h3 class='bar'>{$this->lang->words['my_info']}</h3>\n\t\t\t\t<dl>\n\t\t\t\t\t" . ($member['title'] != '' ? "\n\t\t\t\t\t\t<dt>{$this->lang->words['m_member_title']}</dt>\n\t\t\t\t\t\t<dd>{$member['title']}</dd>\n\t\t\t\t\t" : "") . "\n\t\t\t\t\t<dt>{$this->lang->words['m_age_prefix']}</dt>\n\t\t\t\t\t" . ($member['_age'] > 0 ? "\n\t\t\t\t\t\t<dd>{$member['_age']} {$this->lang->words['m_years_old']}</dd>\n\t\t\t\t\t" : "\n\t\t\t\t\t\t<dd>{$this->lang->words['m_age_unknown']}</dd>\n\t\t\t\t\t") . "\n\t\t\t\t\t<dt>{$this->lang->words['m_birthday_prefix']}</dt>\n\t\t\t\t\t" . ($member['bday_day'] ? "<!-- SKINNOTE: We should use the localized date formatting for this -->\n\t\t\t\t\t\t<dd>{$member['_bday_month']} {$member['bday_day']}" . ($member['bday_year'] ? ", {$member['bday_year']}" : "") . "</dd>" : "\n\t\t\t\t\t\t<dd>{$this->lang->words['m_bday_unknown']}</dd>\n\t\t\t\t\t") . "\n\t\t\t\t\t" . ($member['custom_fields']['profile_info'] != "" ? "\n\t\t\t\t\t\t" . $this->__f__6dc75556bd3870b5038b6b8c16d94b4d($tabs, $member, $comments, $friends, $visitors, $default_tab, $default_tab_content, $fields) . "\t\t\t\t\t" : "") . "\n\t\t\t\t</dl>\n\t\t\t</div>\n\t\n\t\t\t<div class='contact_info right general_box row2'>\n\t\t\t\t<h3 class='bar'>{$this->lang->words['contact_info']}</h3>\n\t\t\t\t<dl>\n\t\t\t\t\t\n\t\t\t\t\t<dt>{$this->lang->words['m_email']}</dt>\n\t\t\t\t\t<dd class='clearfix'>\n\t\t\t\t\t\t" . ($this->memberData['g_access_cp'] == 1 ? "\n\t\t\t\t\t\t\t<a href='mailto:{$member['email']}'>{$member['email']}</a>\n\t\t\t\t\t\t" : "" . (!$member['hide_email'] ? "\n\t\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=contact&amp;do=Mail&amp;MID={$member['member_id']}", 'public', ''), "", "") . "'>{$this->lang->words['click_to_email']}</a>\n\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t<em>{$this->lang->words['private']}</em>\n\t\t\t\t\t\t\t") . "") . "\t\t\t\t\t\t\n\t\t\t\t\t</dd>\t\n\t\t\t\t\t" . (is_array($member['custom_fields']['contact']) ? "\n\t\t\t\t\t\t" . $this->__f__2e87633dd0e4cd852396744278609d94($tabs, $member, $comments, $friends, $visitors, $default_tab, $default_tab_content, $fields) . "\t\t\t\t\t" : "") . "\n\t\t\t\t</dl>\n\t\t\t</div>\n\t\t</div>\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends'] and $member['pp_setting_count_friends']) ? "<div class='friend_list clear' id='friend_list'>\n\t\t\t<h3 class='bar'>{$this->lang->words['m_title_friends']}</h3>\n\t\t\t" . ((is_array($friends) and count($friends)) ? "<ul class='clearfix'>\n\t\t\t\t" . $this->__f__993ef088f456ab4187ab53142611315f($tabs, $member, $comments, $friends, $visitors, $default_tab, $default_tab_content, $fields) . "\t\t\t\t</ul>\n\t\t\t\t" . ($member['_total_approved_friends'] > $member['_total_displayed_friends'] ? "<p class='clear'>\n\t\t\t\t\t<em>{$this->lang->words['showing_50_rand_friends']} {$member['_total_approved_friends']}</em>\n\t\t\t\t\t" . ($member['_total_approved_friends'] > 50 ? "\n\t\t\t\t\t\t&nbsp;(<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=view&amp;member_id={$member['member_id']}", 'public', ''), "", "") . "' id='view-all-friends'>{$this->lang->words['friends_view_all']}</a></strong>)\n\t\t\t\t\t" : "") . "\n\t\t\t\t</p>" : "") . "" : "\n\t\t\t\t<p>\n\t\t\t\t\t<em>{$member['members_display_name']} {$this->lang->words['no_friends_yet']}</em>\n\t\t\t\t</p>\n\t\t\t") . "\n\t\t</div>" : "") . "\n\t\n\t\t" . ($member['pp_setting_count_comments'] > 0 ? "<div class='comments' id='comment_wrap'>\n\t\t\t\t<h3 class='bar'>{$this->lang->words['m_title_comments']}</h3>\n\t\t\t\t" . ($this->memberData['member_id'] ? "\n\t\t\t\t\t<form id='commentForm' action='{$this->settings['base_url']}app=members&amp;module=profile&amp;section=comments&amp;do=add_new_comment' method='post'>\n\t\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t\t<input type='hidden' name='member_id' value='{$member['member_id']}' />\n\t\t\t\t\t\t\t<div id='post_comment' class='clear row2'>\n\t\t\t\t\t\t\t\t<img src='{$this->memberData['pp_mini_photo']}' width='{$this->memberData['pp_mini_width']}' height='{$this->memberData['pp_mini_height']}' alt='{$this->lang->words['your_photo']}' class='photo left clear' />\n\t\t\t\t\t\t\t\t<textarea class='input_textarea' cols='50' rows='3' id='comment_text' name='comment_text'></textarea>\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t<input type='submit' class='clear input_submit' value='{$this->lang->words['comment_submit_post']}' id='comment_submit' />\n\t\t\t\t\t\t\t\t<span class='desc' id='char_remain_wrap' style='display: none'>{$this->lang->words['chars_remaining']} <span id='char_remain'>400</span></span>\n\t\t\t\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\t\t\t\t\$('char_remain_wrap').show();\n\t\t\t\t\t\t\t\t\tipb.vars['max_comment_length'] = 400;\n\t\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t\t</div> \n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</form>\n\t\t\t\t\t<br />\n\t\t\t\t" : "") . "\n\t\t\t\t" . ($comments ? "\n\t\t\t\t\t{$comments}\n\t\t\t\t" : "\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<em>{$member['members_display_name']} {$this->lang->words['no_profile_comments']}</em>\n\t\t\t\t\t</p>\n\t\t\t\t") . "\n\t\t\t</div>" : "") . "\n\t</div>\n</div>\n" . $this->registry->getClass('output')->getTemplate('global')->include_highlighter() . "";
     return $IPBHTML;
 }