function sp_do_sp_ShowSpecialRanksTag($userid, $args = '') { #check if forum displayed if (sp_abort_display_forum()) { return; } if (empty($userid)) { return; } $defs = array('tagClass' => 'spSpecialRankTag', 'titleClass' => 'spSpecialRankTag', 'badgeClass' => 'spSpecialRankTag', 'showTitle' => 1, 'showBadge' => 1, 'echo' => 1); $a = wp_parse_args($args, $defs); extract($a, EXTR_SKIP); $echo = (int) $echo; $thisUser = sp_get_user($userid); include_once SF_PLUGIN_DIR . '/forum/content/sp-common-view-functions.php'; $data = sp_UserSpecialRank($a, $thisUser->special_rank); if ($echo) { echo $data; } else { return $data; } }
# The 'profile-show' template is used to display a user profile in popup # # -------------------------------------------------------------------------------------- sp_SectionStart('tagClass=spProfileShowSection', 'profileShow'); # output header displaying profile display name sp_SectionStart('tagClass=spProfileShowHeaderSection', 'profileHeader'); sp_ProfileShowHeader('', __sp('Viewing Profile - %USER%')); sp_SectionEnd('', 'profileHeader'); # output section for basic user info sp_SectionStart('tagClass=spProfileShowBasicSection', 'profileBasic'); # show avatar and rank sp_ColumnStart('tagClass=spProfileShowAvatarSection spLeft&width=25%', 'profileAvatarRank'); sp_SectionStart('tagClass=spPlainSection spCenter', ''); sp_UserAvatar('context=user&link=', $spProfileUser); sp_UserForumRank('', $spProfileUser->rank); sp_UserSpecialRank('', $spProfileUser->special_rank); sp_UserMembership('', $spProfileUser->memberships); if (function_exists('sp_UserReputationLevel')) { sp_UserReputationLevel('', $spProfileUser); } sp_SectionEnd(); sp_ColumnEnd('', 'profileAvatarRank'); # show profile info sp_ColumnStart('tagClass=spProfileShowInfoSection spRight&width=65%', 'profileInfo'); sp_ProfileShowDisplayName('', __sp('Username')); sp_ProfileShowFirstName('', __sp('First Name')); sp_ProfileShowLastName('', __sp('Last Name')); sp_ProfileShowLocation('', __sp('Location')); sp_ProfileShowWebsite('', __sp('Website')); sp_ProfileShowBio('', __sp('Bio')); sp_ColumnEnd('', 'profileInfo');