# Theme : Barebones # Template : profile show # Author : Simple:Press # # The 'profile-show' template is used to display a user profile # # -------------------------------------------------------------------------------------- global $spDevice; sp_SectionStart('tagClass=spHeadContainer', 'head'); sp_load_template('spHead.php'); sp_SectionEnd('', 'head'); sp_SectionStart('tagClass=spBodyContainer', 'body'); sp_SectionStart('tagClass=spProfileShowSection', 'profileShow'); # output header displaying profile display name sp_SectionStart('tagClass=spProfileShowHeaderSection', 'profileHeader'); sp_ProfileShowHeader('onlineIcon=&offlineIcon=', __sp('%USER%')); sp_SectionEnd('', 'profileHeader'); # output section for basic user info sp_SectionStart('tagClass=spProfileShowBasicSection', 'profileBasic'); # show avatar and rank sp_SectionStart('tagClass=spProfileShowAvatarSection spLeft', 'profileAvatarRank'); sp_SectionStart('tagClass=spPlainSection spCenter', ''); sp_UserAvatar('context=user&link=', $spProfileUser); sp_UserForumRank('', $spProfileUser->rank); sp_UserSpecialRank('', $spProfileUser->special_rank); if (function_exists('sp_UserReputationLevel')) { sp_UserReputationLevel('', $spProfileUser); } sp_SectionEnd(); sp_SectionEnd('', 'profileAvatarRank'); # show profile info
<?php # -------------------------------------------------------------------------------------- # # Simple:Press Template # Theme : css-only # Template : profile show popup # Author : Simple:Press # # 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');
# -------------------------------------------------------------------------------------- # # Simple:Press Template # Theme : Barebones # Template : profile popup show # Author : Simple:Press # # The 'profile-show' template is used to display a user profile in a popup # # -------------------------------------------------------------------------------------- global $spDevice; sp_SectionStart('tagClass=spProfileShowSection spCenter', 'profileShow'); # output header displaying profile display name sp_SectionStart('tagClass=spProfileShowHeaderSection spCenter', 'profileHeader'); sp_ProfileShowHeader('tagClass=spProfileShowHeader spCenter&onlineStatus=0', __sp('%USER%')); sp_ProfileShowLink('tagClass=spButton spProfileShowHeaderEdit spCenter', __sp('(View Full Profile)')); sp_SectionEnd('', 'profileHeader'); sp_InsertBreak(); # output section for basic user info sp_SectionStart('tagClass=spProfileShowBasicSection', 'profileBasic'); # show avatar and rank sp_SectionStart('tagClass=spProfileShowInfoSection spLeft', 'profileAvatarRank'); sp_SectionStart('tagClass=spPlainSection spCenter', ''); sp_UserAvatar('context=user&link=', $spProfileUser); sp_UserForumRank('', $spProfileUser->rank); sp_UserSpecialRank('', $spProfileUser->special_rank); if (function_exists('sp_UserReputationLevel')) { sp_UserReputationLevel('', $spProfileUser); } sp_SectionEnd();