} sp_SectionStart('tagClass=spTopicPostContainer', 'postlist'); # Start the Post Loop # ---------------------------------------------------------------------- if (sp_has_posts()) { while (sp_loop_posts()) { sp_the_post(); # Start the 'post' section # ---------------------------------------------------------------------- sp_SectionStart('tagClass=spTopicPostSection', 'post'); sp_PostIndexAnchor(); sp_PostForumToolButton('', '', __sp('Open the forum toolset')); # Column 1 of the post row # ---------------------------------------------------------------------- sp_ColumnStart('tagClass=spUserSection spLeft&width=15%&height=50px'); sp_PostIndexUserDate('tagClass=spPostUserDate spCenter'); sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user', $spThisPostUser); sp_PostIndexUserName('tagClass=spPostUserName spCenter'); sp_PostIndexUserLocation('tagClass=spPostUserLocation spCenter'); sp_PostIndexUserRank('tagClass=spPostUserRank spCenter'); sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter'); sp_PostIndexUserMemberships('tagClass=spPostUserMemberships spCenter'); sp_PostIndexUserPosts('tagClass=spPostUserPosts spCenter', __sp('Forum Posts: %COUNT%')); if (function_exists('sp_PostIndexCubePoints')) { sp_PostIndexCubePoints('tagClass=spPostUserCubePoints spCenter', __sp('CubePoints')); } if (function_exists('sp_PostIndexMyCred')) { sp_PostIndexMyCred('tagClass=spPostUserMyCred spCenter', __sp('MyCred '), __sp('MyCred')); } sp_PostIndexUserRegistered('tagClass=spPostUserRegistered spCenter', __sp('Member Since:<br /> %DATE%')); sp_PostIndexUserStatus('tagClass=spCenter spPostUserStatus', __sp('Online'), __sp('Offline'));
sp_ColumnEnd(); # Column 2 of the post row # ---------------------------------------------------------------------- sp_ColumnStart('tagId=spColTopic2&tagClass=spPostSection spRight&width=0'); # Start the 'post' section # ---------------------------------------------------------------------- sp_SectionStart('tagClass=spPostActionSection', 'action'); sp_PostIndexPinned('tagClass=spStatusIcon spLeft', __sp('This post is pinned')); if (function_exists('sp_PostIndexPostByEmail')) { sp_PostIndexPostByEmail('tagClass=spStatusIcon spLeft', 'This post was sent by email'); } sp_PostIndexNumber('tagClass=spLabelBordered spLeft'); sp_PostIndexPermalink('tagClass=spButton spLeft', '', __sp('The post permalink')); sp_PostIndexEditHistory('tagClass=spButton spLeft', '', __sp('Edited by %USER% on %DATE%'), __sp('View edit history')); sp_PostIndexNewPost('tagClass=spLabelBordered spLeft', __sp('New')); sp_PostIndexUserDate('tagClass=spPostUserDate spLeft&stackdate=0&nicedate=0'); # Hover Over Tools # ---------------------------------------------------------------------- ?> <div class="spTransitionHoverContent"><?php sp_PostForumToolButton("tagClass=spPostActionLabel spLeft&hide=0&icon=", 'Tools', __sp('Open the forum toolset')); sp_PostIndexEdit('tagClass=spPostActionLabel spLeft&icon=', __sp('Edit'), __sp('Edit this post')); sp_PostIndexDelete('tagClass=spPostActionLabel spLeft&icon=', __sp('Delete'), __sp('Delete this post')); sp_PostIndexQuote('tagClass=spPostActionLabel spRight&icon=', __sp('Quote'), __sp('Quote this post')); if (function_exists('sp_thanks_thank_the_post')) { sp_thanks_thank_the_post('tagClass=spPostActionLabel spRight&iconThanks=&iconThanked=', __sp('Thank'), __sp('Thanked'), __sp('Add thanks to this post'), __sp('You have already thanked this post')); } sp_PostIndexPrint('tagClass=spPostActionLabel spRight&icon=', 'Print', __sp('Print this post')); if (function_exists('sp_PostIndexReportPost')) { sp_PostIndexReportPost('tagClass=spPostActionLabel spRight&icon=', __sp('Report'), __sp('Report this post to admin')); }