function spa_dashboard_forum()
{
    global $spGlobals, $spThisUser, $spStatus;
    $out = '';
    # check we have an installed version
    if ($spStatus != 'ok') {
        $out .= '<div style="border: 1px solid #eeeeee; padding: 10px; font-weight: bold;">' . "\n";
        $out .= '<p><img style="vertical-align:bottom;border:none;" src="' . sp_paint_file_icon(SPTHEMEICONSURL, 'sp_Information.png') . '" alt="" />' . "\n";
        $out .= '&nbsp;&nbsp;' . sprintf(spa_text('The forum is temporarily unavailable while awaiting %s'), $spStatus) . '</p>';
        if ($spThisUser->admin) {
            $out .= '&nbsp;&nbsp;<a style="text-decoration: underline;" href="' . SFADMINUPGRADE . '">' . spa_text('Perform Upgrade') . '</a>';
        }
        $out .= '</div>';
        echo $out;
        return;
    }
    $out .= '<div id="sf-dashboard">';
    echo $out;
    do_action('sph_dashboard_start');
    if ($spGlobals['admin']['sfdashboardstats']) {
        include_once SF_PLUGIN_DIR . '/forum/content/sp-common-view-functions.php';
        include_once SF_PLUGIN_DIR . '/forum/content/sp-template-control.php';
        echo '<br /><table class="sfdashtable">';
        echo '<tr>';
        echo '<td>';
        sp_OnlineStats('link_names=0', '<b>' . spa_text('Most Users Ever Online') . ': </b>', '<b>' . spa_text('Currently Online') . ': </b>', '<b>' . spa_text('Currently Browsing this Page') . ': </b>', spa_text('Guest(s)'));
        echo '</td>';
        echo '<td>';
        sp_ForumStats('', '<b>' . spa_text('Forum Stats') . ': </b>', spa_text('Groups') . ': ', spa_text('Forums') . ': ', spa_text('Topics') . ': ', spa_text('Posts') . ': ');
        echo '</td>';
        echo '<td>';
        sp_MembershipStats('', '<b>' . spa_text('Member Stats') . ': </b>', spa_text('There are %COUNT% Members'), spa_text('There have been %COUNT% Guest Posters'), spa_text('There are %COUNT% Moderators'), spa_text('There are %COUNT% Admins'));
        echo '</td>';
        echo '<td>';
        sp_TopPostersStats('link_names=0', '<b>' . spa_text('Top Posters') . ': </b>');
        echo '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td colspan="4">';
        sp_NewMembers('link_names=0', '<b>' . spa_text('Newest Members') . ': </b>');
        echo '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td colspan="4">';
        sp_ModsList('link_names=0', '<b>' . spa_text('Moderators') . ': </b>');
        echo '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td colspan="4">';
        sp_AdminsList('link_names=0', '<b>' . spa_text('Administrators') . ': </b>');
        echo '</td>';
        echo '</tr></table><br />';
    }
    do_action('sph_dashboard_end');
    $out = '';
    $out .= '<p><br /><a href="' . sp_url() . '">' . spa_text('Go To Forum') . '</a></p>';
    $out .= '</div>';
    echo $out;
}
Example #2
0
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
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection spCenter', 'about');
if (function_exists('sp_PolicyDocPolicyLink')) {
    sp_PolicyDocPolicyLink('', __sp('Usage Policy'), __sp('View site usage policy'));
}
sp_Acknowledgements('', '', __sp('About Simple:Press'), __sp('Visit Simple:Press'));
if (function_exists('sp_PolicyDocPrivacyLink')) {
    sp_PolicyDocPrivacyLink('', __sp('Privacy Policy'), __sp('View site privacy policy'));
}
Example #3
0
# Mandatory call to sp_FooterBegin() - available to custom code
# ----------------------------------------------------------------------
sp_FooterBegin();
# Start the 'stats' section
# ----------------------------------------------------------------------
sp_SectionStart('tagId=spStatsSectionId&tagClass=spStatsSection', 'stats');
#sp_AllRSSButton('tagClass=spRight spAllRSSButton&icon=', 'All RSS', __sp('Subscribe to the all forums RSS feed'));
sp_SectionStart('tagClass=spTimeZoneBar', 'timeZoneBar');
sp_ForumTimeZone('tagClass=spForumTimeZone spLeft', __sp('Forum Timezone: '));
sp_UserTimeZone('tagClass=spUserTimeZone spLeft', __sp('Your Timezone: '));
sp_AllRSSButton('tagClass=spRight spAllRSSButton&icon=', 'All RSS', __sp('Subscribe to the all forums RSS feed'));
sp_OpenCloseControl("targetId=spForumStatsHolder&linkClass=spRight&default=closed&setCookie=0&asLabel=1", 'Show Stats', 'Hide Stats');
sp_SectionEnd('tagClass=spClear', 'timeZoneBar');
sp_SectionStart('tagId=spForumStatsHolder', 'statsHolder');
sp_ColumnStart('tagClass=spColumnSection spRight spAdminsMods&width=24%');
sp_AdminsList('tagClass=spCenter spAdministrators&postCount=0&stack=1', __sp('Administrators: '));
sp_InsertBreak();
sp_ModsList('tagClass=spModerators&postCount=0&stack=1', __sp('Moderators: '));
sp_ColumnEnd();
sp_ColumnStart('tagClass=spColumnSection spRight spTopPosterStats&width=24%');
sp_TopPostersStats('tagClass=spRight', __sp('Top Posters: '));
sp_ColumnEnd();
sp_ColumnStart('tagClass=spColumnSection spRight spMembershipStats&width=24%&height=0');
sp_NewMembers('tagClass=spNewMembers&list=1', __sp('Newest Members: '));
sp_ColumnEnd();
sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=24%&height=0');
sp_ForumStats('tagClass=spRight', __sp('Forum Stats: '), __sp('Groups: '), __sp('Forums: '), __sp('Topics: '), __sp('Posts: '));
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();