if (function_exists('sp_PostIndexSendPm')) {
     sp_PostIndexSendPm('tagClass=spButton spRight', __sp('PM'), __sp('Send PM to this user'));
 }
 if (function_exists('sp_thanks_thank_the_post')) {
     sp_thanks_thank_the_post('tagClass=spButton spRight', __sp('Thank'), __sp('Thanked'), __sp('Add thanks to this post'), __sp('You have already thanked this post'));
 }
 sp_SectionEnd('', 'action');
 sp_InsertBreak();
 sp_SectionStart('tagClass=spPostContentSection', 'content');
 sp_PostIndexContent('', __sp('Awaiting Moderation'));
 sp_SectionEnd('', 'content');
 sp_InsertBreak();
 # Add Share This and/or Answers Topic to bottom of post content
 # ----------------------------------------------------------------------
 if (function_exists('sp_ShareThisTopicIndexTag') || function_exists('sp_AnswersTopicAnswer') || function_exists('sp_thanks_thanks_for_post')) {
     sp_ColumnStart('tagClass=spPluginSection spCenter&width=100%&height=40px');
     if (function_exists('sp_ShareThisTopicIndexTag')) {
         sp_ShareThisTopicIndexTag('tagClass=ShareThisTopicIndex spLeft');
     }
     if (function_exists('sp_AnswersTopicAnswer')) {
         if ($spThisPost->post_index == 1) {
             sp_AnswersTopicSeeAnswer('tagClass=spAnswersTopicSeeAnswer spButton spRight', __sp('See Answer'), __sp('Go to the post marked as the answer'));
         }
         sp_AnswersTopicAnswer('tagClass=spRight', __sp('Answers Post'), __sp('This post answers the topic'));
         sp_AnswersTopicPostIndexAnswer('tagClass=spButton spRight', __sp('Mark as Answer'), __sp('Mark this post as topic answer'), __sp('Unmark as Answer'), __sp('Unmark this post as topic answer'));
     }
     sp_ColumnEnd();
     if (function_exists('sp_thanks_thanks_for_post')) {
         sp_InsertBreak();
         sp_thanks_thanks_for_post();
     }
Exemplo n.º 2
0
sp_ListViewHead();
# Start the List Loop
# ----------------------------------------------------------------------
if (sp_has_list()) {
    while (sp_loop_list()) {
        sp_the_list();
        # Start the 'list' section
        # ----------------------------------------------------------------------
        sp_SectionStart('tagClass=spTopicListSection spTextLeft', 'list');
        sp_ListForumName('', __sp('Browse topics in %NAME%'));
        sp_InsertBreak();
        sp_ListViewBodyStart();
        sp_ColumnStart('tagClass=spColumnSection spRight&width=15%&height=20px');
        sp_ListNewPostButton('tagClass=spButton spRight', __sp('New: %COUNT%'), __sp('View the first new post in this topic'));
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=7%&height=20px');
        sp_ListTopicIcon();
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=74%&height=20px');
        sp_ListTopicName('', __sp('Browse the thread %NAME%'));
        sp_ListLastPost('iconClass=spIcon spLeft&height=0px', __sp('Last Post'));
        sp_ColumnEnd();
        sp_ListViewBodyEnd();
        sp_InsertBreak();
        sp_SectionEnd('', 'list');
    }
} else {
    sp_NoTopicsInListMessage('tagClass=spMessage', __sp('There were no topics found'));
}
sp_ListViewFoot();
sp_SectionEnd('', 'listView');
Exemplo n.º 3
0
                sp_InsertBreak('direction=left');
                sp_ForumIndexDescription('tagClass=spRowDescription');
                sp_ColumnEnd();
                # Column 3 of the forum row
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagId=spColGroup3&tagClass=spColumnSection spLeft&width=0&height=0px');
                sp_ForumIndexTopicCount('tagClass=spInRowCount spCenter', __sp(''), __sp(''));
                sp_ColumnEnd();
                # Column 4 of the forum row
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagId=spColGroup4&tagClass=spColumnSection spLeft&width=0&height=0px');
                sp_ForumIndexLastPost('tagClass=holder spLeft&order=TLDU&nicedate=1&date=0&time=1&stackdate=1&itemBreak= ', __sp(''), __sp('No Topics'));
                sp_ColumnEnd();
                # Column 5 of the forum row
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagId=spColGroup5&tagClass=spColumnSection spRight&width=0&height=0px');
                sp_ForumIndexLockIcon('tagClass=spIcon spRight', __sp('This forum is locked'));
                sp_ForumIndexAddIcon('tagClass=spIcon spRight', __sp('Add new topic in this forum'));
                sp_ForumIndexDeniedIcon('tagClass=spIcon spRight', __sp('No permission to start topics'));
                sp_ColumnEnd();
                sp_SectionEnd('', 'forum');
                sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png&topicCount=0', __sp('Sub-Forums:'), __sp('Browse topics in %NAME%'));
            }
        } else {
            sp_NoForumsInGroupMessage('tagClass=spMessage', __sp('There are no forums in this group'));
        }
        sp_SectionEnd('', 'forumList');
        sp_SectionEnd('', 'group');
    }
} else {
    sp_NoGroupMessage('tagClass=spMessage', __sp('The requested group does not exist or you do not have permission to view it'), __sp('No groups have been created yet'));
Exemplo n.º 4
0
sp_ColumnStart('tagClass=spColumnSection spLeft spOnlineStats&width=40%&height=0');
sp_OnlineStats('tagClass=spLeft', __sp('Most Users Ever Online: '), __sp('Currently Online: '), __sp('Currently Browsing this Page: '), __sp('Guest(s)'));
if (function_exists('sp_OnlinePageLink')) {
    sp_OnlinePageLink('', __sp('See All Online Activity'));
}
if (function_exists('sp_ListBirthdays')) {
    sp_ListBirthdays('tagClass=spCustomTag&spLeft', __sp('Members Birthdays'), __sp('Today'), __sp('Upcoming'));
}
sp_ColumnEnd();
sp_ColumnStart('tagClass=spColumnSection spRight spTopPosterStats&width=15%&height=0');
sp_TopPostersStats('tagClass=spRight', __sp('Top Posters: '));
sp_ColumnEnd();
sp_ColumnStart('tagClass=spColumnSection spRight spMembershipStats&width=20%&height=0');
sp_MembershipStats('tagClass=spRight', __sp('Member Stats: '), __sp('Members: %COUNT%'), __sp('Guest Posters: %COUNT%'), __sp('Moderators: %COUNT%'), __sp('Admins: %COUNT%'));
sp_ColumnEnd();
sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=17%&height=0');
sp_ForumStats('tagClass=spRight', __sp('Forum Stats: '), __sp('Groups: '), __sp('Forums: '), __sp('Topics: '), __sp('Posts: '));
sp_ColumnEnd();
sp_InsertBreak();
sp_NewMembers('tagClass=spLeft spNewMembers', __sp('Newest Members: '));
sp_InsertBreak();
sp_ModsList('tagClass=spLeft spModerators', __sp('Moderators: '));
sp_InsertBreak();
sp_AdminsList('tagClass=spLeft spAdministrators', __sp('Administrators: '));
sp_SectionEnd('tagClass=spClear', 'stats');
if (function_exists('sp_UserSelectOptions')) {
    sp_UserSelectOptions('tagClass=spCenter spLabelSmall', __sp('Theme:'), __sp('Language:'));
}
sp_InsertBreak();
# Start the 'about' section
# ----------------------------------------------------------------------
Exemplo n.º 5
0
sp_SectionEnd('', 'catlabels');
# Start the List Loop
# ----------------------------------------------------------------------
if (sp_has_list()) {
    while (sp_loop_list()) {
        sp_the_list();
        # Start the 'list' section
        # ----------------------------------------------------------------------
        sp_SectionStart('tagClass=spTopicListSection spTextLeft', 'list');
        sp_ListViewBodyStart();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=35%&height=0');
        sp_ListTopicName('', __sp('Go to %NAME%'));
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=35%&height=0');
        sp_ListForumName('', __sp('Browse topics in %NAME%'), __sp('New and Unread Posts'));
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=15%&height=0');
        sp_ListLastPost('iconClass=spIcon spLeft&break=1&icon=sp_goNewPost.png&labelLink=1', __sp(''));
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=7%&height=0');
        sp_ListNewPostButton('tagClass=spButton&icon=""&spLeft', __sp('%COUNT% New'), __sp('View the first new post in this topic'));
        sp_ColumnEnd();
        sp_ListViewBodyEnd();
        sp_InsertBreak();
        sp_SectionEnd('', 'list');
    }
} else {
    sp_NoTopicsInListMessage('tagClass=spMessage', __sp('There were no topics found'));
}
sp_ListViewFoot();
sp_SectionEnd('', 'listView');
Exemplo n.º 6
0
</div><?php 
            sp_ColumnEnd();
            # Column 4 of the forum row
            # ----------------------------------------------------------------------
            sp_ColumnStart('tagId=spColForum4&tagClass=spColumnSection spLeft&height=0px');
            sp_TopicIndexLastPost('tagClass=holder spLeft&nicedate=1&date=0&time=0&stackuser=0&stackdate=0&beforeUser=&labelLink=1&icon=sp_goNewPost.png', __sp(''));
            sp_InsertBreak();
            sp_TopicIndexStatusIcons('tagClass=spStatusIcon', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'));
            sp_InsertBreak();
            sp_ColumnEnd();
            # Column 3 of the forum row
            # ----------------------------------------------------------------------
            sp_ColumnStart('tagId=spColForum3&tagClass=spColumnCount spRight&width=0&height=0px');
            sp_TopicIndexViewCount('tagClass=spRowDescription spLeft&labelClass=spViewsLabel&numberClass=&before= &after= ', __sp(''), __sp(''));
            sp_ColumnEnd();
            sp_ColumnStart('tagId=spColForum3&tagClass=spColumnCount spRight&width=0&height=0px');
            sp_TopicIndexReplyCount('tagClass=spRowDescriptionBold spLeft&labelClass=spPostsLabel&numberClass=&', __sp(''), __sp(''));
            sp_ColumnEnd();
            sp_InsertBreak();
            sp_SectionEnd('', 'topic');
            ?>
</div><?php 
        }
    } else {
        sp_NoTopicsInForumMessage('tagClass=spMessage', __sp('There are no topics in this forum'));
    }
    sp_SectionEnd('', 'topiclist');
    sp_SectionEnd('', 'forum');
    # Start the bottom 'pagelinks' section
    sp_SectionStart('tagClass=spPageLinksBottomSection', 'pageLinks');
    sp_TopicIndexPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=0', __sp(''), __sp('Jump to page %PAGE%'), __sp('Jump to page'));
                sp_ColumnStart('tagClass=spColumnSection spRight&width=11%');
                sp_MemberListLastVisit('', __sp('Last Visit'));
                sp_ColumnEnd();
                # Column 4 of the member row - member registered
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagClass=spColumnSection spRight&width=11%');
                sp_MemberListRegistered('', __sp('Registered'));
                sp_ColumnEnd();
                # Column 3 of the member row - member post count
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagClass=spColumnSection spRight&width=8%');
                sp_MemberListPostCount('', __sp('Posts'));
                sp_ColumnEnd();
                # Column 2 of the member row - member rank and badge
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagClass=spColumnSection spRight&width=14%');
                sp_MemberListRank('', __sp('Forum Ranks'));
                sp_ColumnEnd();
                sp_SectionEnd('tagClass=spClear', 'member');
            }
        } else {
        }
        sp_SectionEnd('tagClass=spClear', 'memberGroup');
    }
    # Start the 'pageLinks' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spPlainSection', 'pageLinks');
    sp_MemberListPageLinks('', __sp('Page: '), __sp('Jump to page %PAGE% of members list'));
    sp_SectionEnd();
} else {
    sp_NoMembersListMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('There were no member lists found'));
Exemplo n.º 8
0
function sp_NewPostListAdmin($newposts)
{
    global $spVars, $spThisUser, $spGlobals, $spDevice;
    $alt = '';
    $nourl = '';
    if ($newposts) {
        $index = array();
        foreach ($newposts as $newpost) {
            $forumid = $newpost['forum_id'];
            $index[$forumid] = count($newpost['topics']);
        }
        # Set up the autoupdate url (for quicklinks refreshing)
        $updateUrl = SFHOMEURL . 'index.php?sp_ahah=autoupdate&amp;sfnonce=' . wp_create_nonce('forum-ahah');
        # Display section heading
        echo '<div class="spAdminQueueHeader">';
        echo '<a id="newpoststop"></a>';
        $options = sp_get_option('spAdminBar');
        if ($spThisUser->admin || $spThisUser->moderator) {
            $p = $spDevice == 'mobile' && current_theme_supports('sp-theme-responsive') ? SPABIMAGESMOB : SPABIMAGES;
            echo '<form class="sfsubhead" action="' . sp_url() . '" method="post" name="removequeue">';
            echo '<input type="hidden" name="doqueue" value="1" />';
            echo '<p class="spLeft">' . __('New/Unread Posts Management', 'spab') . '</p>';
            echo '<a class="spButton spRight" href="javascript:document.removequeue.submit();">' . sp_paint_icon('', $p, "sp_markRead.png") . __('Empty the Admin Postbag', 'spab') . '</a>';
            echo '</form>';
            $removal = true;
            $canremove = '1';
        }
        echo '</div>';
        # Start actual listing display
        echo '<div class="spInlineSection spMessageSuccess" id="spAdminQueueMsg"></div>';
        # Display new posts heading
        sp_SectionStart('tagClass=spAdminQueueSection', 'AdminQueue');
        echo '<p style="text-align:center" class="spAdminBarTitle">' . __('Forums and Topics', 'spab') . '</p>';
        # Start with main forum header
        foreach ($newposts as $newpost) {
            # Display forum name
            echo '<div id="spAdminQueueForum' . $newpost['forum_id'] . '" class="spAdminQueueForum">';
            sp_ColumnStart('tagClass=spColumnSection spLeft&height=30px&width=9%');
            $icon = !empty($newpost['forum_icon']) ? sp_paint_custom_icon('spRopwIcon', SFCUSTOMURL . $newpost['forum_icon']) : sp_paint_icon('spTowIcon', SPTHEMEICONSURL, 'sp_ForumIcon.png');
            echo $icon;
            sp_ColumnEnd();
            sp_ColumnStart('tagClass=spColumnSection spLeft&height=30px&width=90%');
            echo '<p class="spAdminForum">';
            echo '<a class="spRowName" href="' . sp_build_url($newpost['forum_slug'], '', 1, 0) . '">Forum: ' . $newpost['forum_name'] . '</a>';
            echo '</p>';
            echo '<input type="hidden" id="tcount' . $newpost['forum_id'] . '" value="' . $index[$newpost['forum_id']] . '" />';
            sp_ColumnEnd();
            echo '<div class="spClear"></div>';
            echo '</div>';
            # Now for each topic with new posts
            foreach ($newpost['topics'] as $topic) {
                $postcountmod = 0;
                $postcountord = 0;
                # a quick first pass to load the post count variables and check for spam
                $is_spam = false;
                foreach ($topic['posts'] as $post) {
                    if ($post['post_status'] != 0 ? $postcountmod++ : $postcountord++) {
                    }
                    if ($post['post_status'] == 2) {
                        $is_spam = true;
                    }
                    $lastpost_id = $post['post_id'];
                }
                # Display topics in forum
                $class = $postcountmod ? 'spSubmit spModButton' : 'spSubmit spUnreadButton';
                echo '<div id="spAdminQueueTopic' . $topic['topic_id'] . '" class="spAdminQueueTopic">';
                sp_ColumnStart('tagClass=spColumnSection spLeft&height=30px&width=10%');
                echo "<input type='button' name='openicon" . $topic['topic_id'] . "' class='" . $class . "' value='";
                echo esc_attr(__('View', 'spab'));
                if ($is_spam) {
                    echo "\n" . esc_attr(__('Spam', 'spab'));
                }
                echo "' onclick='spjToggleLayer(\"spAdminQueueThisTopic" . $topic['topic_id'] . "\");' />";
                echo '<input type="hidden" id="pcount' . $topic['topic_id'] . '" value="' . $topic['post_count'] . '" />';
                echo '<input type="hidden" id="pcountmod' . $topic['topic_id'] . '" value="' . $postcountmod . '" />';
                echo '<input type="hidden" id="pcountord' . $topic['topic_id'] . '" value="' . $postcountord . '" />';
                sp_ColumnEnd();
                sp_ColumnStart('tagClass=spColumnSection spLeft&height=30px&width=90%');
                echo '<p>' . sp_get_topic_newpost_url($newpost['forum_slug'], $topic['topic_slug'], $topic['topic_name'], $lastpost_id, $post['post_index']) . '</p>';
                $nourl = '';
                if ($topic['post_count'] == 1) {
                    $note = __('There is 1 new post in this topic', 'spab');
                } else {
                    $note = sprintf(__('There are %s new posts in this topic', 'spab'), $topic['post_count']);
                }
                echo '<p class="spLabelSmall">' . $note . '</p>';
                sp_ColumnEnd();
                echo '<div class="spClear"></div>';
                echo '</div>';
                # Start display of post information
                echo '<div id="spAdminQueuePost' . $topic['topic_id'] . '" class="spAdminQueuePost">';
                echo '<div id="spAdminQueueThisTopic' . $topic['topic_id'] . '" class="spPostSection spInlineSection">';
                echo '<p style="text-align:center" class="spAdminBarTitle">' . __('Post Details', 'spab') . '</p>';
                $pindex = 0;
                $mod_required = false;
                # Start the post display loop
                foreach ($topic['posts'] as $post) {
                    $is_spam = false;
                    if ($pindex > 0) {
                        echo '<hr>';
                    }
                    echo '<div id="spAdminQueueThisPost' . $post['post_id'] . '" class="spAdminQueueThisPost">';
                    $pindex++;
                    $lastpost = $pindex == $topic['post_count'] ? true : false;
                    if ($post['post_status'] != 0) {
                        $mod_required = true;
                        echo '<div class="spAdminQueueMod spRight">' . __('Awaiting moderation', 'spab');
                        if ($post['post_status'] == 2) {
                            $is_spam = true;
                            echo '<br />' . __('Akismet marked as spam', 'spab');
                        }
                        echo '</div>';
                    }
                    echo '<b>' . sp_filter_name_display($post['display_name']) . '</b><br /><small>' . $post['user_type'] . '</small>';
                    echo '<br /><small>' . sprintf(__('Post %s in Topic', 'spab'), $post['post_index']) . '</small>';
                    echo '<hr />' . sp_filter_content_display($post['post_content']) . '</td>';
                    echo '</div>';
                    # Set up the ahah base url
                    $basesite = SFHOMEURL . "index.php?sp_ahah=moderation&amp;sfnonce=" . wp_create_nonce('forum-ahah') . "&amp;pid=" . $post['post_id'] . "&amp;tid=" . $topic['topic_id'] . "&amp;fid=" . $newpost['forum_id'];
                    echo '<div id="spAdminQueueThisPostButtons' . $post['post_id'] . '" class="spAdminQueueThisPostButtons">';
                    echo '<table><tr>';
                    if ($topic['post_count'] == 1) {
                        $label = __('This Post', 'spab');
                    } else {
                        $label = __('All Posts', 'spab');
                    }
                    if ($lastpost) {
                        $site = $basesite . '&amp;action=0&amp;canremove=' . $canremove;
                        if ($mod_required) {
                            if (sp_get_auth('moderate_posts', $newpost['forum_id'])) {
                                $posturl = sp_build_url($newpost['forum_slug'], $topic['topic_slug'], 0, $post['post_id'], $post['post_index']);
                            }
                        } else {
                            $posturl = sp_build_url($newpost['forum_slug'], $topic['topic_slug'], 0, $post['post_id'], $post['post_index']);
                        }
                        if ($mod_required) {
                            $m = $spDevice == 'mobile' ? esc_attr(__("Approve & Load", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s Approved and go to Topic", 'spab'), $label)), 2);
                            echo '<td><input type="button" class="spSubmit" name="g0-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabModeratePost(\'' . $posturl . '\', \'' . $site . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'9\', \'' . $updateUrl . '\');" /></td>';
                            $m = $spDevice == 'mobile' ? esc_attr(__("Approve & Close", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s Approved and Close", 'spab'), $label)), 2);
                            echo '<td><input type="button" class="spSubmit" name="a0-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabModeratePost(\'' . $nourl . '\', \'' . $site . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'0\', \'' . $updateUrl . '\');" /></td>';
                            if ($spDevice == 'mobile') {
                                echo '</tr></tr>';
                            }
                            $m = $spDevice == 'mobile' ? esc_attr(__("Approve & Reply", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s Approved and Quick Reply", 'spab'), $label)), 2);
                            echo '<td><input type="button" class="spSubmit" name="q0-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spjToggleLayer(\'sfqform' . $topic['topic_id'] . '\');" /></td>';
                            $qaction = 0;
                        } else {
                            $site = $basesite . '&amp;action=1&amp;canremove=' . $canremove;
                            $m = $spDevice == 'mobile' ? esc_attr(__("Mark Read & Load", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s as Read and go to Topic", 'spab'), $label)), 2);
                            echo '<td><input type="button" class="spSubmit" name="g1-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabModeratePost(\'' . $posturl . '\', \'' . $site . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'1\', \'' . $updateUrl . '\');" /></td>';
                            $m = $spDevice == 'mobile' ? esc_attr(__("Mark Read & Close", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s as Read and Close", 'spab'), $label)), 2);
                            echo '<td><input type="button" class="spSubmit" name="a1-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabModeratePost(\'' . $nourl . '\', \'' . $site . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'1\', \'' . $updateUrl . '\');" /></td>';
                            if ($spDevice == 'mobile') {
                                echo '</tr></tr>';
                            }
                            $m = $spDevice == 'mobile' ? esc_attr(__("Mark Read & Reply", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s as Read and Quick Reply", 'spab'), $label)), 2);
                            echo '<td><input type="button" class="spSubmit" name="a1-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spjToggleLayer(\'sfqform' . $topic['topic_id'] . '\');" /></td>';
                            $qaction = 1;
                        }
                    }
                    if ($removal) {
                        $remsite = $basesite . '&amp;action=2&amp;canremove=' . $canremove;
                        $msg = esc_js(__('Are you sure you want to delete this Post?', 'spab'));
                        $m = $spDevice == 'mobile' ? esc_attr(__("Delete Post", 'spab')) : sp_splice(esc_attr(__("Delete this Post", 'spab')), 0);
                        echo '<td><input type="button" class="spSubmit" name="a2-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="javascript: if(confirm(\'' . $msg . '\')) {spabModeratePost(\'' . $nourl . '\', \'' . $remsite . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'2\', \'' . $updateUrl . '\');}" /></td>';
                        if ($post['user_type'] == 'Member' && $is_spam) {
                            $actionUrl = SFHOMEURL . 'index.php?sp_ahah=remove-spam&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;postid=' . $post['post_id'] . '&amp;userid=' . $post['user_id'];
                            $updateUrl = SFHOMEURL . 'index.php?sp_ahah=admin-bar-update&amp;target=newposts&amp;sfnonce=' . wp_create_nonce('forum-ahah');
                            echo '</tr></tr>';
                            $m = $spDevice == 'mobile' ? esc_attr(__("Remove Member & All Their Posts", 'spab')) : sp_splice(esc_attr(__("Remove this Member and All their Posts", 'spab')), 2);
                            echo '<td colspan="2"><input type="button" class="spSubmit" name="delSpam-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabRemoveSpam(\'' . $actionUrl . '\', \'' . $updateUrl . '\');" /></td>';
                        }
                    }
                    echo '</tr></table>';
                    # Quick Reply Form
                    if ($lastpost) {
                        $qsavesite = SFHOMEURL . "index.php?sp_ahah=quickreply&amp;sfnonce=" . wp_create_nonce('forum-ahah') . "&amp;tid=" . $topic['topic_id'] . "&amp;fid=" . $newpost['forum_id'];
                        echo '<div id="sfqform' . $topic['topic_id'] . '" class="spInlineSection">';
                        echo '<form action="' . sp_url() . '" method="post" name="addpost' . $topic['topic_id'] . '" onsubmit="return spabSaveQuickReply(this, \'' . $qsavesite . '\', \'' . $site . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'' . $qaction . '\', \'' . $updateUrl . '\')">';
                        echo '<textarea  tabindex="1" class="spControl" name="postitem' . $topic['topic_id'] . '" id="postitem' . $topic['topic_id'] . '" cols="60" rows="8"></textarea>';
                        echo '<br /><input type="submit" tabindex="2" class="spSubmit" id="sfsave' . $topic['topic_id'] . '" name="newpost' . $topic['topic_id'] . '" value="' . esc_attr(__('Save New Post', 'spab')) . '" />';
                        do_action('sph_quickreply_form', $newpost, $topic, $post);
                        echo '</form><br /></div>';
                    }
                    echo '</div>';
                }
                echo '</div>';
                echo '</div>';
            }
        }
        sp_SectionEnd('', 'AdminQueue');
    } else {
        echo '<div class="spMessage">';
        echo __('There are no unread posts', 'spab') . '</div>';
        echo "<div class='spInlineSection' id='spAdminQueueMsg'></div>\n";
    }
}
Exemplo n.º 9
0
</div><?php 
            sp_ColumnEnd();
            # Column 3 of the forum row
            # ----------------------------------------------------------------------
            sp_ColumnStart('tagId=spColForum3&tagClass=spColumnSection spLeft&height=0px');
            sp_TopicIndexLastPost('tagClass=holder spLeft&nicedate=1&date=0&time=0&stackuser=0&stackdate=0&beforeUser=&labelLink=1&icon=sp_goNewPost.png', __sp(''));
            sp_InsertBreak();
            sp_TopicIndexStatusIcons('tagClass=spStatusIcon', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'));
            sp_InsertBreak();
            sp_ColumnEnd();
            # Column 4 and 5 of the forum row
            # ----------------------------------------------------------------------
            sp_ColumnStart('tagId=spColForum4&tagClass=spColumnCountViews spRight&width=0&height=0px');
            sp_TopicIndexViewCount('tagClass=spRowDescription spLeft&labelClass=spViewsLabel&numberClass=&before= &after= ', __sp(''), __sp(''));
            sp_ColumnEnd();
            sp_ColumnStart('tagId=spColForum5&tagClass=spColumnCountReplies spRight&width=0&height=0px');
            sp_TopicIndexReplyCount('tagClass=spRowDescriptionBold spLeft&labelClass=spPostsLabel&numberClass=&', __sp(''), __sp(''));
            sp_ColumnEnd();
            sp_InsertBreak();
            sp_SectionEnd('', 'topic');
            ?>
</div><?php 
        }
    } else {
        sp_NoTopicsInForumMessage('tagClass=spMessage', __sp('There are no topics in this forum'));
    }
    sp_SectionEnd('', 'topiclist');
    sp_SectionEnd('', 'forum');
    # Start the bottom 'pagelinks' section
    sp_SectionStart('tagClass=spPageLinksBottomSection', 'pageLinks');
    sp_TopicIndexPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=0', __sp(''), __sp('Jump to page %PAGE%'), __sp('Jump to page'));
Exemplo n.º 10
0
echo '<p>&nbsp;</p>';
sp_MembershipStats('tagClass=spRight&pGuestsClass=spInlineSection', __sp('Member Stats: '), __sp('Members: %COUNT%'), __sp('Guest Posters: %COUNT%'), __sp('Moderators: %COUNT%'), __sp('Admins: %COUNT%'));
sp_ColumnEnd();
sp_InsertBreak();
#sp_AdminsList('tagClass=spCenter spAdministrators&postCount=0', __sp('Administrators: '));
#sp_ModsList('tagClass=spModerators&postCount=0', __sp('Moderators: '));
sp_InsertBreak();
sp_SectionEnd('', 'statsHolder');
sp_InsertBreak();
sp_ColumnStart('tagClass=spColumnSection spLeft spOnlineStats&height=0');
sp_OnlineStats('tagClass=spLeft', __sp('Most Users Ever Online: '), __sp('Currently Online: '), __sp('Currently Browsing this Page: '), __sp('Guest(s)'));
if (function_exists('sp_OnlinePageLink')) {
    sp_OnlinePageLink('tagClass=spLeft', __sp('See All Online Activity'));
}
sp_ColumnEnd();
sp_ColumnStart('tagClass=spColumnSection spRight spBirthdaysHolder&height=0');
if (function_exists('sp_ListBirthdays')) {
    sp_ListBirthdays('tagClass=spLeft&icon=', __sp('Members Birthdays'), __sp('Today: '), __sp('Upcoming: '));
}
sp_ColumnEnd();
sp_InsertBreak();
sp_SectionEnd('tagClass=spClear', 'stats');
sp_InsertBreak();
if (function_exists('sp_UserSelectOptions')) {
    sp_UserSelectOptions('tagClass=spCenter spLabelSmall', __sp('Style:'), __sp('Language:'));
}
sp_InsertBreak();
# Start the 'about' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootInfo spCenter', 'about');
sp_InsertBreak('spacer=20px');
Exemplo n.º 11
0
<div class="spRowHolder"><?php 
            sp_PmThreadIndexTitle('tagClass=spRowName', __('Subject: ', 'sp-pm'));
            sp_PmThreadIndexSender('tagClass=spInRowLabel&spanClass=', __('Last Received: ', 'sp-pm'));
            sp_PmThreadIndexDate('tagClass=spInRowLabel&spanClass=', __(' on ', 'sp-pm'));
            sp_InsertBreak();
            # first message
            sp_PmThreadIndexFirstSender('tagClass=spInRowLabel&spanClass=', __('From: ', 'sp-pm'));
            sp_PmThreadIndexFirstDate('tagClass=spInRowLabel&spanClass=&nicedate=1', __('- ', 'sp-pm'));
            ?>
</div><?php 
        }
        sp_ColumnEnd();
        echo '</a>';
        # Column 3 of the thread row
        # ----------------------------------------------------------------------
        sp_ColumnStart('tagClass=spColThread3 spColumnSection spRight&height=0');
        sp_SectionStart('tagClass=spRight', 'pmThreadMeta');
        if ($spDevice != 'mobile') {
            sp_PmThreadIndexMessageCount('tagClass=spLabelSmall spRight&spanClass=', __(' Message(s)', 'sp-pm'));
        }
        sp_InsertBreak('');
        sp_SectionEnd('', 'pmThreadMeta');
        sp_ColumnEnd();
        sp_SectionStart('tagClass=spRight', 'pmThreadActions');
        sp_PmThreadIndexDelete('tagClass=spPMDelete&icon=', __('Delete this thread', 'sp-pm'), __('Delete Thread'));
        sp_SectionEnd('', 'pmThreadActions');
        sp_SectionEnd('tagClass=spClear', 'pmThread');
    }
} else {
    sp_NoPmThreads('tagClass=spMessage', __('Your inbox is empty', 'sp-pm'), __('You do not have permission to use the PM system', 'sp-pm'), __('You have opted out of the PM system. You can opt back in from your forum profile.', 'sp-pm'));
}
Exemplo n.º 12
0
                sp_ColumnStart('tagClass=spColumnSection spRight&width=12%');
                sp_MemberListRegistered('', __sp('Registered'));
                sp_ColumnEnd();
                # Column 4 of the member row - member last visit
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagClass=spColumnSection spRight&width=12%');
                sp_MemberListLastVisit('', __sp('Last Visit'));
                sp_ColumnEnd();
                # Column 5 of the member row - member post count
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagClass=spColumnSection spRight&width=6%');
                sp_MemberListPostCount('', __sp('Posts'));
                sp_ColumnEnd();
                # Column 6 of the member row - member action icons
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagClass=spColumnSection spRight&width=25%&height=auto');
                sp_MemberListActions('profileIcon=sp_ProfileFormList.png', __sp(''), __sp('View topics member has started'), __sp('View topics member has posted in'));
                sp_ColumnEnd();
                sp_SectionEnd('tagClass=spClear', 'member');
            }
        } else {
        }
        sp_SectionEnd('tagClass=spClear', 'memberGroup');
    }
} else {
    sp_NoMembersListMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('There were no member lists found'));
}
sp_SectionEnd('', 'memberList');
sp_SectionEnd('', 'body');
# Start the 'pageLinks' section
# ----------------------------------------------------------------------
Exemplo n.º 13
0
         sp_ForumIndexTopicCount('tagClass=spInRowCount spLeft', __sp('-'), __sp('Topic'));
         sp_InsertBreak('');
         sp_SectionEnd('', 'forumHeader');
         sp_SectionStart('tagClass=spGroupForumSection', 'forum');
         # Column 1 of the forum row
         sp_ColumnStart('tagClass=spColumnSection spLeft&width=89%&height=auto');
         #sp_ForumIndexName('tagClass=spRowName spLeft', __sp('Browse topics in %NAME%'));
         #sp_ForumIndexTopicCount('tagClass=spInRowCount spLeft', __sp('-'), __sp('Topic'));
         #sp_InsertBreak('spacer=2px');
         #sp_ForumIndexPostCount('tagClass=spInRowCount spLeft',__sp('Posts'), __sp('Post'));
         #sp_InsertBreak('spacer=15px');
         sp_ForumIndexLastPost('tagClass=holder spLeft&order=TLDU&truncate=40&nicedate=1&date=0&time=1&stackdate=1&itemBreak= ', __sp('Last Post'), __sp('No Topics'));
         sp_ColumnEnd();
         # Column 2 of the forum row
         # ----------------------------------------------------------------------
         sp_ColumnStart('tagClass=spActionsColumnSection spRight&width=10%&height=55px');
         sp_ForumIndexLockIcon('tagClass=spIcon spRight', __sp('This forum is locked'));
         sp_InsertBreak();
         sp_ForumIndexAddIcon('tagClass=spIcon spRight', __sp('Add new topic in this forum'));
         sp_InsertBreak();
         #sp_ForumIndexPostsIcon('tagClass=spIcon spRight&popup=0&openIcon=sp_GroupOpenDark.png&closeIcon=sp_GroupCloseDark.png', __sp('This forum has unread posts in %COUNT% topic(s)'));
         sp_ColumnEnd();
         sp_SectionEnd('', 'forum');
         sp_SectionStart('tagClass=spSubForumHolder', 'subForumHolder');
         sp_ForumIndexSubForums('stack=0&unreadIcon=sp_SubForumUnreadIcon.png&stack=1&topicCount=0', __sp(''), __sp('Browse topics in %NAME%'));
         sp_SectionEnd('', 'subForumHolder');
         sp_InsertBreak('spacer=15px');
         sp_ForumIndexInlinePosts();
     }
 } else {
     sp_NoForumsInGroupMessage('tagClass=spMessage', __sp('There are no forums in this group'));
Exemplo n.º 14
0
 sp_ColumnEnd();
 # Column 2 of the message row
 # ----------------------------------------------------------------------
 echo "<a class='' href='javascript:void(null)' onclick='spjToggleLayer(\"PmMessageContent" . $spThisPmMessageList->message_id . "\");' title='" . __('Click to toggle message content viewing', 'sp-pm') . "'>";
 sp_ColumnStart('tagId=spColMessage2&tagClass=spColumnSection spLeft&height=auto&width=auto');
 sp_PmMessageIndexSender('tagClass=spInRowLabel spInRowLabelBold spLeft', __('From: ', 'sp-pm'));
 sp_InsertBreak();
 sp_PmMessageIndexDate('tagClass=spInRowLabel spLeft');
 sp_InsertBreak();
 sp_PmMessageIndexRecipients('tagClass=spInRowLabel', __('To: ', 'sp-pm'), __('cc: ', 'sp-pm'), __('bcc: ', 'sp-pm'));
 sp_ColumnEnd();
 if ($spDevice != 'mobile') {
     # Column 3 of the message row
     # ----------------------------------------------------------------------
     sp_InsertBreak();
     sp_ColumnStart('tagId=spColMessage3&tagClass=spPmActionsColumn spRight&height=auto');
     sp_InsertBreak();
     # message icon 'toolbar'
     sp_SectionStart('tagClass=pmMessageActions', 'pmMessageActions');
     sp_PmMessageIndexReplyAll('tagClass=spButton spLeft&icon=', __('Reply to all', 'sp-pm'), __sp('Reply to Group'));
     sp_PmMessageIndexQuoteAll('tagClass=spButton spLeft&icon=', __('Quote and reply to all', 'sp-pm'), __sp('Quote to Group'));
     sp_PmMessageIndexDelete('tagClass=spButton spRight&icon=', __('Delete this message', 'sp-pm'), __sp('Delete'));
     sp_PmMessageIndexMarkUnread('tagClass=spButton spRight&icon=', __('Mark this message as unread', 'sp-pm'), __sp('Mark Unread'));
     sp_PmMessageIndexForward('tagClass=spButton spRight&icon=', __('Forward this message', 'sp-pm'), __sp('Forward'));
     sp_PmMessageIndexQuote('tagClass=spButton spRight&icon=', __('Quote and reply to sender', 'sp-pm'), __sp('Quote'));
     sp_PmMessageIndexReply('tagClass=spButton spRight&icon=', __('Reply to sender', 'sp-pm'), __sp('Reply'));
     sp_SectionEnd('', 'pmMessageActions');
     sp_InsertBreak();
     sp_ColumnEnd();
 }
 echo '</a>';
Exemplo n.º 15
0
     #sp_UserAvatar('tagClass=spPostUserAvatar spLeft&size=40&context=user', $spThisPostList->user_id);
     #sp_SearchListViewUserName('tagClass=spPostUserName spLeft');
     #sp_SearchListViewUserDate('tagClass=spPostUserDate spLeft&time=0');
     sp_InsertBreak();
     #sp_SearchListViewTopicName('', __('', 'sp-search'));
     #sp_SearchListViewForumName('', __('In ', 'sp-search'));
     sp_SectionStart('tagClass=spResultsInfo', 'results-info');
     #sp_SearchListViewTopicCount('tagClass=spListPostCountRowName spLeft', __('Posts: ', 'sp-search'));
     #sp_InsertBreak();
     #sp_SearchListViewTopicViews('tagClass=spListPostViewsRowName spLeft', __('Views: ', 'sp-search'));
     #sp_InsertBreak();
     #sp_SearchListViewGoToPost('tagClass=spListPostGoToPostRowName spRight', __('Go To Post', 'sp-search'));
     sp_SectionEnd('', 'results-info');
     sp_ColumnEnd('', 'list-info');
     sp_InsertBreak();
     sp_ColumnStart('tagClass=spColumnSection spPostSearchItemSection spLeft&width=100%&height=auto', 'list-content');
     sp_SearchListViewTopicHeader();
     sp_SectionStart('tagClass=spResultInfo', 'result-info');
     sp_SearchListViewForumName('', __('In ', 'sp-search'));
     sp_InsertBreak();
     sp_SearchListViewUserName('tagClass=spPostUserName spLeft');
     sp_SearchListViewUserDate('tagClass=spPostUserDate spLeft&time=0');
     sp_SectionEnd('', 'result-info');
     sp_InsertBreak();
     sp_SearchListViewPostContent();
     #sp_SearchListViewGoToPost('tagClass=spListPostGoToPostRowName spRight', __('Go To Post', 'sp-search'));
     sp_ColumnEnd('', 'search-content');
     sp_SectionStart('tagClass=spPostSectionFooter', 'list-footer');
     sp_SectionEnd('', 'list-footer');
     sp_SectionEnd('', 'list');
 }
Exemplo n.º 16
0
#	The 'foot' template can be used for all forum content that is to be
#	displayed at the bottom of every forum view page
#
# --------------------------------------------------------------------------------------
# Mandatory call to sp_FooterBegin() - available to custom code
# ----------------------------------------------------------------------
sp_FooterBegin();
# Start the 'stats' section
# ----------------------------------------------------------------------
sp_SectionStart('tagId=spStatsSectionId&tagClass=spStatsSection', 'stats');
#sp_SectionStart('tagClass=spTimeZoneBar', 'timeZoneBar');
#	sp_ForumTimeZone('tagClass=spForumTimeZone spLeft', __sp('Forum Timezone:</br> '));
#	sp_UserTimeZone('tagClass=spUserTimeZone spRight', __sp('Your Timezone:</br> '));
#sp_SectionEnd('tagClass=spClear', 'timeZoneBar');
sp_SectionStart('tagClass=spStatsHolder', 'statsHolder');
sp_ColumnStart('tagClass=spColumnSection spLeft spOnlineStats&width=auto&height=0');
#sp_OnlineStats('tagClass=spLeft', __sp('Most Users Ever Online: '), __sp('Currently Online: '), __sp('Currently Browsing this Page: '), __sp('Guest(s)'));
#sp_DeviceStats('tagClass=spDeviceStats spLeft', 'Devices in use: ', 'Phone', 'Tablet', 'Desktop');
#sp_InsertBreak('spacer=10px');
if (function_exists('sp_OnlinePageLink')) {
    sp_OnlinePageLink('', __sp('See All Online Activity'));
}
sp_ColumnEnd();
#sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=auto&height=0');
#sp_ForumStats('tagClass=spRight', __sp('Forum Stats: '), __sp('Groups: '), __sp('Forums: '), __sp('Topics: '), __sp('Posts: '));
#sp_ColumnEnd();
#sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=auto&height=0');
#sp_MembershipStats('tagClass=spRight&pGuestsClass=spInlineSection', __sp('Member Stats: '), __sp('Members: %COUNT%'), __sp('Guest Posters: %COUNT%'), __sp('Moderators: %COUNT%'), __sp('Admins: %COUNT%'));
#sp_ColumnEnd();
sp_SectionEnd('tagClass=spClear', 'statsHolder');
sp_SectionEnd('tagClass=spClear', 'stats');
Exemplo n.º 17
0
#
# --------------------------------------------------------------------------------------
# Start the 'listView' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spListSection spListViewSection', 'listView');
sp_ListViewHead();
# Start the List Loop
# ----------------------------------------------------------------------
if (sp_has_list()) {
    while (sp_loop_list()) {
        sp_the_list();
        # Start the 'list' section
        # ----------------------------------------------------------------------
        sp_ListViewBodyStart();
        sp_SectionStart('tagClass=spTopicListSection spTextLeft', 'list');
        sp_ListForumName('', __sp('Browse topics in %NAME%'), __sp('New and Unread Posts'));
        sp_InsertBreak();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=auto&height=auto');
        sp_ListTopicName('tagClass=spLeft', __sp('Browse the thread %NAME%'));
        sp_InsertBreak('');
        sp_ListLastPost('tagClass=spLeft&height=0px&break=0&icon=', __sp(''));
        sp_ColumnEnd();
        sp_ListViewBodyEnd();
        sp_InsertBreak();
        sp_SectionEnd('', 'list');
    }
} else {
    sp_NoTopicsInListMessage('tagClass=spMessage', __sp('There were no topics found'));
}
sp_ListViewFoot();
sp_SectionEnd('', 'listView');
Exemplo n.º 18
0
 sp_SectionStart('tagClass=spSocialButtons spCenter', 'user-identities');
 sp_PostIndexUserWebsite('', __sp('Visit my website'));
 sp_PostIndexUserTwitter('', __sp('Follow me on Twitter'));
 sp_PostIndexUserFacebook('', __sp('Connect with me on Facebook'));
 sp_PostIndexUserMySpace('', __sp('See MySpace'));
 sp_PostIndexUserLinkedIn('', __sp('My LinkedIn network'));
 sp_PostIndexUserYouTube('', __sp('View my YouTube channel'));
 sp_PostIndexUserGooglePlus('', __sp('Interact with me on Google Plus'));
 sp_SectionEnd('', 'user-identities');
 if (function_exists('sp_PostIndexRepUser')) {
     sp_PostIndexRepUser('tagClass=spCenter', '', __sp('Give/Take Reputation'));
 }
 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
 # ----------------------------------------------------------------------
 ?>
echo '<p>' . __sp('Contact') . ' ' . $spProfileUser->display_name . '<br /><hr>';
sp_ProfileShowAIM('', __sp('AOL IM ID'));
sp_ProfileShowYIM('', __sp('Yahoo IM ID'));
sp_ProfileShowMSN('', __sp('MSN ID'));
sp_ProfileShowICQ('', __sp('ICQ ID'));
sp_ProfileShowGoogleTalk('', __sp('Google Talk ID'));
sp_ProfileShowSkype('', __sp('Skype ID'));
sp_ProfileShowMySpace('', __sp('MySpace ID'));
sp_ProfileShowFacebook('', __sp('Facebook ID'));
sp_ProfileShowTwitter('', __sp('Twitter ID'));
sp_ProfileShowLinkedIn('', __sp('LinkedIn ID'));
sp_ProfileShowYouTube('', __sp('YouTube ID'));
sp_ProfileShowEmail('', __sp('Email'));
if (function_exists('sp_ProfileSendPm')) {
    sp_ProfileSendPm('', __sp('Private Message'), __sp('Send PM'));
}
sp_ColumnEnd('', 'profileIdentities');
# show user stats
sp_ColumnStart('tagClass=spProfileShowStatsSection spRight&width=45%', 'profileStats');
echo '<p>' . $spProfileUser->display_name . ' ' . __sp('Statistics') . '<br /><hr>';
sp_ProfileShowMemberSince('', __sp('Member Since'));
sp_ProfileShowLastVisit('', __sp('Last Visited'));
sp_ProfileShowUserPosts('', __sp('Posts'));
sp_ProfileShowSearchPosts('', __sp('Search User Posts'), __sp('Topics Started'), __sp('Topics Posted In'));
sp_ColumnEnd('', 'profileStats');
sp_SectionEnd('tagClass=spClear', 'profileDetails');
# output some options
sp_SectionStart('tagClass=spPlainSection spCenter', 'profileSignature');
sp_ProfileShowLink('tagClass=spButton', __sp('View Full Profile for %USER%'));
sp_SectionEnd('', 'profileSignature');
sp_SectionEnd('tagClass=spClear', 'profileShow');
Exemplo n.º 20
0
         #if (function_exists('sp_TopicDescription')) sp_TopicDescription();
         sp_TopicIndexReplyCount('tagClass=spRowDescription spLeft&labelClass=spPostsLabel&numberClass=spBoldCount', __sp('Replies'), __sp('Reply:'));
         sp_TopicIndexViewCount('tagClass=spRowDescription spLeft&labelClass=spViewsLabel&numberClass=spBoldCount&before= &after= ', __sp('Views'), __sp('View'));
         sp_InsertBreak('spacer=5px');
         sp_TopicIndexLastPost('iconClass=spIcon spLeft&icon=&labelLink=1&nicedate=1&date=0&time=0&stackdate=0&stackuser=0&stackdate=0&itemBreak= ', __sp('Last Post '));
         sp_InsertBreak('spacer=5px');
         if (function_exists('sp_TopicIndexTopicStatus')) {
             sp_TopicIndexTopicStatus('tagClass=spTopicIndexStatus spLeft&icon=', __sp('Search for other topics with this status'));
         }
         sp_InsertBreak('spacer=5px');
         if (function_exists('sp_TopicIndexTagsList')) {
             sp_TopicIndexTagsList('tagClass=spTopicTagsList spLeft', __sp('Tags'), __sp('Show the tags for this topic'));
         }
         sp_ColumnEnd();
         sp_InsertBreak();
         sp_ColumnStart('tagClass=spStatusColumnSection spRight&width=100%&height=auto');
         sp_TopicForumToolButton("tagClass=spToolsButtonMobile spLeft&icon=&hide=0", 'Tools', __sp('Open the forum toolset'));
         sp_TopicIndexStatusIcons('tagClass=spStatusIcon spRight', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'));
         #if (function_exists('sp_TopicIndexRating')) sp_TopicIndexRating('tagClass=spStatusIcon spRight&thumbClass=');
         sp_ColumnEnd();
         sp_InsertBreak();
         sp_SectionEnd('', 'topic');
         sp_InsertBreak('spacer=15px');
     }
 } else {
     sp_NoTopicsInForumMessage('tagClass=spMessage', __sp('There are no topics in this forum'));
 }
 sp_SectionEnd('', 'topiclist');
 sp_SectionEnd('', 'forum');
 # Start the bottom 'pagelinks' section
 # ----------------------------------------------------------------------
Exemplo n.º 21
0
 if (function_exists('sp_PostIndexSendPm')) {
     sp_PostIndexSendPm('tagClass=spButton spRight', __sp('PM'), __sp('Send PM to this user'));
 }
 if (function_exists('sp_thanks_thank_the_post')) {
     sp_thanks_thank_the_post('tagClass=spButton spRight', __sp('Thank'), __sp('Thanked'), __sp('Add thanks to this post'), __sp('You have already thanked this post'));
 }
 sp_SectionEnd('', 'action');
 sp_InsertBreak();
 sp_SectionStart('tagClass=spPostContentSection', 'content');
 sp_PostIndexContent('', __sp('Awaiting Moderation'));
 sp_SectionEnd('', 'content');
 sp_InsertBreak();
 # Add Share This and/or Answers Topic to bottom of post content
 # ----------------------------------------------------------------------
 if (function_exists('sp_ShareThisTopicIndexTag') || function_exists('sp_AnswersTopicAnswer') || function_exists('sp_thanks_thanks_for_post')) {
     sp_ColumnStart('tagClass=spPluginSection spCenter');
     if (function_exists('sp_ShareThisTopicIndexTag')) {
         sp_ShareThisTopicIndexTag('tagClass=ShareThisTopicIndex spLeft');
     }
     if (function_exists('sp_AnswersTopicAnswer')) {
         if ($spThisPost->post_index == 1) {
             sp_AnswersTopicSeeAnswer('tagClass=spAnswersTopicSeeAnswer spButton spRight', __sp('See Answer'), __sp('Go to the post marked as the answer'));
         }
         sp_AnswersTopicAnswer('tagClass=spRight', __sp('Answers Post'), __sp('This post answers the topic'));
         sp_AnswersTopicPostIndexAnswer('tagClass=spButton spRight', __sp('Mark as Answer'), __sp('Mark this post as topic answer'), __sp('Unmark as Answer'), __sp('Unmark this post as topic answer'));
     }
     sp_ColumnEnd();
     if (function_exists('sp_thanks_thanks_for_post')) {
         sp_InsertBreak();
         sp_thanks_thanks_for_post();
     }
Exemplo n.º 22
0
             sp_the_member();
             # Start the 'member' section
             # ----------------------------------------------------------------------
             sp_SectionStart('tagClass=spMemberListSectionMobile', 'member');
             sp_ColumnStart('tagClass=spAvatarSection spLeft&width=70%&height=15px');
             sp_UserAvatar('tagClass=spImg spLeft&context=user', $spThisMember->user_id);
             sp_MembersListName('tagClass=spRowName spLeft');
             #sp_MemberListLastVisit('tagClass=spInRowNumber spLastVisitMobile spLeft&labelClass=spInRowCount&dateClass=spInRowCount', __sp('Last Visit'));
             sp_InsertLineBreak();
             sp_MemberListPostCount('tagClass=spInRowCount spLeft spPostCountMobile&labelClass=spInRowNumber&stack=0', __sp('Posts'));
             sp_InsertLineBreak();
             if (function_exists('sp_MembersListReputationLevel')) {
                 sp_MembersListReputationLevel('', '');
             }
             sp_ColumnEnd();
             sp_ColumnStart('tagClass=spRankSection spRight&width=25%&height=15px');
             #sp_MemberListActions('tagClass=spInRowCount spRight&started=0&posted=0', '', __sp('View topics member has started'), __sp('View topics member has posted in'));
             sp_MemberListRank('tagClass=spInRowCount spCenter&badgeClass=spImg spMembersBadgeMobile spCenter&rankClass=spInRowRank spCenter', '');
             sp_ColumnEnd();
             sp_InsertBreak('spacer=5px');
             #sp_MemberListRank('tagClass=spInRowCount spRight&badgeClass=spImg spMembersBadgeMobile spRight&rankClass=spInRowRank spRight', '');
             #sp_MemberListLastVisit('tagClass=spInRowNumber spLastVisitMobile spLeft&labelClass=spInRowCount&dateClass=spInRowCount', __sp('Last Visit'));
             sp_SectionEnd('tagClass=spClear', 'spMemberListSectionMobile');
         }
     } else {
     }
     sp_SectionEnd('tagClass=spClear', 'memberGroup');
 }
 # Start the 'pageLinks' section
 # ----------------------------------------------------------------------
 sp_SectionStart('tagClass=spPlainSection', 'pageLinks');
             sp_TopicIndexTopicStatus('tagClass=spTopicIndexStatus spButton spLeft', __sp('Search for other topics with this status'));
         }
         sp_ColumnEnd();
         # Column 5 of the forum row
         # ----------------------------------------------------------------------
         sp_ColumnStart('tagClass=spColumnSection spRight&width=16%&height=50px');
         sp_TopicIndexLastPost('iconClass=spIcon spRight&nicedate=1&date=0&time=0&stackdate=0', __sp('Last Post'));
         sp_ColumnEnd();
         # Column 4 of the forum row
         # ----------------------------------------------------------------------
         sp_ColumnStart('tagClass=spColumnSection spRight&width=16%&height=50px');
         sp_TopicIndexFirstPost('iconClass=spIcon spRight&nicedate=1&date=0&time=0&stackdate=0', __sp('First Post'));
         sp_ColumnEnd();
         # Column 3 of the forum row
         # ----------------------------------------------------------------------
         sp_ColumnStart('tagClass=spColumnSection spRight&width=14%&height=50px');
         sp_TopicIndexPostCount('tagClass=spInRowCount', __sp('Posts'), __sp('Post'));
         sp_TopicIndexViewCount('tagClass=spInRowCount', __sp('Views'), __sp('View'));
         sp_TopicIndexStatusIcons('tagClass=spStatusIcon spCenter', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'), __sp('No permission to create posts'));
         if (function_exists('sp_TopicIndexRating')) {
             sp_TopicIndexRating('tagClass=spTopicRating spCenter');
         }
         sp_ColumnEnd();
         sp_InsertBreak();
         sp_SectionEnd('', 'topic');
     }
 } else {
     sp_NoTopicsInForumMessage('tagClass=spMessage', __sp('There are no topics in this forum'));
 }
 sp_SectionEnd('', 'topiclist');
 sp_SectionEnd('', 'forum');
Exemplo n.º 24
0
 sp_ColumnEnd();
 sp_ColumnEnd();
 sp_InsertBreak('');
 sp_SectionEnd('tagClass=spClear');
 # Post Content post row
 # ----------------------------------------------------------------------
 sp_SectionStart('tagClass=spPostSection');
 sp_SectionStart('tagClass=spPostContentSection', 'content');
 if (function_exists('sp_PostIndexRatePost')) {
     sp_PostIndexRatePost('tagClass=spRight');
     sp_InsertBreak();
 }
 sp_PostIndexContent('', __sp('Awaiting Moderation'));
 sp_InsertBreak();
 if (function_exists('sp_ShareThisTopicIndexTag') || function_exists('sp_AnswersTopicAnswer') || function_exists('sp_thanks_thanks_for_post')) {
     sp_ColumnStart('tagClass=spPluginSection spCenter&height=auto');
     if (function_exists('sp_ShareThisTopicIndexTag')) {
         sp_ShareThisTopicIndexTag('tagClass=ShareThisTopicIndex spRight');
     }
     if (function_exists('sp_AnswersTopicAnswer')) {
         if ($spThisPost->post_index == 1) {
             sp_AnswersTopicSeeAnswer('tagClass=spAnswersTopicSeeAnswer spRight', '', __sp('Go to the post marked as the answer'));
         }
         sp_AnswersTopicAnswer('tagClass=spRight', '', __sp('This post answers the topic'));
         sp_AnswersTopicPostIndexAnswer('tagClass=spAnswersTopicAnswersButton spRight', '', __sp('Mark this post as topic answer'), '', __sp('Unmark this post as topic answer'));
     }
     sp_ColumnEnd();
     if (function_exists('sp_thanks_thanks_for_post')) {
         sp_InsertBreak();
         sp_thanks_thanks_for_post();
     }