本文整理汇总了PHP中SocialManager::display_individual_user方法的典型用法代码示例。如果您正苦于以下问题:PHP SocialManager::display_individual_user方法的具体用法?PHP SocialManager::display_individual_user怎么用?PHP SocialManager::display_individual_user使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SocialManager
的用法示例。
在下文中一共展示了SocialManager::display_individual_user方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$language_file = array('index','registration','messages','userInfo');
$cidReset = true;
require_once 'main/inc/global.inc.php';
/**
* Access permissions check
*/
api_block_anonymous_users();
/**
* Treat URL arguments
*/
$array_keys = array_keys($_GET);
if (!empty($array_keys)) {
$username = substr($array_keys[0],0,20); // max len of an username
$friend_id = UserManager::get_user_id_from_username($username);
if ($friend_id) {
SocialManager::display_individual_user($friend_id);
} else {
// we cant find your friend
header('Location: whoisonline.php');
exit;
}
} else {
// we cant find your friend
header('Location: whoisonline.php');
exit;
}
示例2: isset
if (!isset($_GET['id'])) {
if (api_get_setting('allow_social_tool') == 'true') {
if (!api_is_anonymous()) {
$query = isset($_GET['q']) ? $_GET['q'] : null;
$social_right_content .= '<div class="span9">' . UserManager::get_search_form($query) . '</div>';
}
}
$social_right_content .= SocialManager::display_user_list($user_list);
}
}
if (isset($_GET['id'])) {
if (api_get_setting('allow_social_tool') == 'true') {
header("Location: " . api_get_path(WEB_CODE_PATH) . "social/profile.php?u=" . intval($_GET['id']));
exit;
} else {
SocialManager::display_individual_user($_GET['id']);
}
}
} else {
api_not_allowed();
exit;
}
$app['title'] = get_lang('UsersOnLineList');
$tpl = $app['template'];
if (api_get_setting('allow_social_tool') == 'true' && !api_is_anonymous()) {
$tpl->setHelp('Groups');
$tpl->assign('social_left_content', $social_left_content);
$tpl->assign('social_right_content', $social_right_content);
$social_layout = $tpl->get_template('layout/social_layout.tpl');
$tpl->display($social_layout);
} else {
示例3: isset
if (api_get_setting('allow_social_tool') == 'true') {
if (!api_is_anonymous()) {
$query = isset($_GET['q']) ? $_GET['q'] : null;
$social_search .= UserManager::get_search_form($query);
}
}
//$social_right_content .= SocialManager::display_user_list($user_list);
}
}
$whoisonline_list .= SocialManager::display_user_list($user_list);
if (isset($_GET['id'])) {
if (api_get_setting('allow_social_tool') == 'true' && api_user_is_login()) {
header("Location: " . api_get_path(WEB_CODE_PATH) . "social/profile.php?u=" . intval($_GET['id']));
exit;
} else {
$social_right_content .= SocialManager::display_individual_user($_GET['id']);
}
}
} else {
api_not_allowed();
exit;
}
$tpl = new Template(get_lang('UsersOnLineList'));
if (api_get_setting('allow_social_tool') == 'true' && !api_is_anonymous()) {
$tpl->assign('whoisonline', $whoisonline_list);
$tpl->assign('social_search', $social_search);
$social_layout = $tpl->get_template('social/whoisonline.tpl');
$tpl->display($social_layout);
} else {
$content = $social_right_content;
$tpl->assign('actions', $actions);