public function process() { vB::$vbulletin->input->clean_array_gpc('p', array('userid' => TYPE_UINT, 'tab' => TYPE_NOHTML, 'mindateline' => TYPE_UNIXTIME, 'maxdateline' => TYPE_UNIXTIME, 'minscore' => TYPE_NUM, 'minid' => TYPE_STR, 'maxid' => TYPE_STR, 'pagenumber' => TYPE_UINT, 'perpage' => TYPE_UINT)); vB::$vbulletin->GPC['ajax'] = 1; vB_dB_Assertor::init(vB::$vbulletin->db, vB::$vbulletin->userinfo); vB_ProfileCustomize::getUserTheme(vB::$vbulletin->GPC['userid']); $userhastheme = vB_ProfileCustomize::getUserThemeType(vB::$vbulletin->GPC['userid']) == 1 ? 1 : 0; $showusercss = vB::$vbulletin->userinfo['options'] & vB::$vbulletin->bf_misc_useroptions['showusercss'] ? 1 : 0; if ($userhastheme and $showusercss) { define('AS_PROFILE', true); } $userinfo = verify_id('user', vB::$vbulletin->GPC['userid'], 1, 1); $this->fetchMemberStreamSql(vB::$vbulletin->GPC['tab'], $userinfo['userid']); $this->processExclusions(); $this->setPage(1, vB::$vbulletin->GPC['perpage']); $result = $this->fetchStream(); $this->processAjax($result); }
$usercss_switch_phrase = $vbphrase['show_user_customizations']; } if (!isset($vbulletin->bf_ugp_usercsspermissions['canusetheme'])) { $canusetheme = false; } else { $canusetheme = $vbulletin->userinfo['permissions']['usercsspermissions'] & $vbulletin->bf_ugp_usercsspermissions['canusetheme'] ? true : false; } $cancustomize = $vbulletin->userinfo['permissions']['usercsspermissions'] & $vbulletin->bf_ugp_usercsspermissions['cancustomize'] ? true : false; //Fairly complex permissions check. Does the admin allow customization? $show_customize_profile = (bool) ($vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_profile_styling']); //Even if so, there are a number of reasons not to show the link. if (!intval($vbulletin->userinfo['userid']) or $vbulletin->userinfo['userid'] != intval($userinfo['userid']) or !$canusetheme and !$cancustomize) { $show_customize_profile = false; } vB_dB_Assertor::init($vbulletin->db, $vbulletin->userinfo); $usertheme = vB_ProfileCustomize::getUserTheme($vbulletin->GPC['userid']); $show['userhastheme'] = vB_ProfileCustomize::getUserThemeType($vbulletin->GPC['userid']) == 1 ? 1 : 0; if ($show['userhastheme'] and $show['showusercss']) { define('AS_PROFILE', true); } ($hook = vBulletinHook::fetch_hook('member_build_blocks_start')) ? eval($hook) : false; if (!empty($vbulletin->GPC['tab']) and isset($blocklist["{$vbulletin->GPC['tab']}"])) { $selected_tab = $vbulletin->GPC['tab']; } else { $selected_tab = ''; } foreach ($blocklist as $blockid => $blockinfo) { $blockobj = $blockfactory->fetch($blockinfo['class']); // added a new param for $blocklist var 'wrap'. if it's set to true, // the block html will be wrapped by memberinfo_block template. // but if this may not be what you want, then set it to false.