Пример #1
0
function sp_add_switcher_to_profile_desktop($out)
{
    $out .= sp_InsertBreak('echo=0');
    $out .= '<hr>';
    if (function_exists('sp_UserSelectOptions')) {
        $out .= sp_UserSelectOptions('tagClass=spCenter spLabelSmall&echo=0&get=1', __sp('Style:'), __sp('Language:'));
    }
    return $out;
}
Пример #2
0
    }
    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_InsertBreak();
    sp_SectionEnd('', 'pageLinks');
    # Start the 'editor' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spHiddenSection', 'editor');
    sp_TopicEditorWindow($addTopicForm);
    sp_SectionEnd('', 'editor');
} else {
    sp_NoForumMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('The requested forum does not exist'));
}
sp_SectionEnd('', 'forumView');
sp_SectionEnd('', 'body');
# Footer buttons section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spActionsBar', 'footerButtons');
sp_TopicNewButton('tagClass=spFootButton spHeaderAddButton spRight iconStatusClass=spLockPosition&iconLock=sp_ForumStatusLockWhite.png&icon=', __sp('New Topic'), __sp('Start a new topic'), __sp('Locked'));
if (function_exists('sp_SubscriptionsSubscribeForumButton')) {
    sp_SubscriptionsSubscribeForumButton('tagClass=spFootButton spRight&subscribeIcon=&unsubscribeIcon=', 'Subscribe', 'Un-Subscribe', 'Subscribe to this forum', 'UnSubscribe from this forum');
}
sp_SectionEnd('tagClass=spClear', 'footerButtons');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #3
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');
Пример #4
0
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 user photos
sp_SectionStart('tagClass=spProfileShowPhotosSection', 'profilePhotos');
echo '<p>' . $spProfileUser->display_name . ' ' . __sp('Profile Photos') . '<br /><hr>';
sp_ProfileShowUserPhotos('photoClass=spCenter&imageClass=spImg&numCols=3');
sp_SectionEnd('', 'profilePhotos');
# output signature
sp_SectionStart('tagClass=spProfileShowSignatureSection', 'profileSignature');
echo '<p>' . $spProfileUser->display_name . ' ' . __sp('Signature') . '<br /><hr>';
sp_Signature('tagClass=spSignature', $spProfileUser->signature);
sp_SectionEnd('', 'profileSignature');
sp_SectionEnd('tagClass=spClear', 'profileShow');
sp_SectionEnd('', 'body');
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #5
0
     echo '</a>';
     sp_InsertBreak('');
     # determine open/close status of each message
     $status = !$spThisPmMessageList->read_status || $spPmMessageList->currentPm == 1 || isset($spThisUser->pmopenall) && $spThisUser->pmopenall ? '' : ' spInlineSection ';
     sp_SectionStart('tagId=PmMessageContent' . $spThisPmMessageList->message_id . '&tagClass=spPostSection spPmMessageContent' . $status, 'pmMessageContent');
     if ($spDevice == 'mobile') {
         # message icon 'toolbar'
         sp_SectionStart('tagClass=pmMessageActions', 'pmMessageActions');
         sp_PmMessageIndexReplyAll('tagClass=spButton spRight&icon=', __('Reply to all', 'sp-pm'), __sp('Reply to Group'));
         sp_PmMessageIndexQuoteAll('tagClass=spButton spRight&icon=', __('Quote and reply to all', 'sp-pm'), __sp('Quote to Group'));
         sp_InsertBreak();
         sp_PmMessageIndexReply('tagClass=spButton spRight&icon=', __('Reply to sender', 'sp-pm'), __sp('Reply'));
         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_SectionEnd('', 'pmMessageActions');
         sp_InsertBreak();
     }
     sp_SectionStart('tagClass=spPostContentSection', 'PmContentSection');
     sp_SectionStart('tagClass=spPostSection', 'pmContent');
     sp_PmMessageIndexContent('tagClass=spPostContent spPmContent');
     sp_SectionEnd('tagClass=spClear', 'pmContent');
     sp_SectionStart('tagClass=spPostSection', 'pmAttachments');
     sp_PmMessageIndexAttachments();
     sp_SectionEnd('tagClass=spClear', 'pmAttachments');
     sp_SectionEnd('tagClass=spClear', 'PmContentSection');
     sp_SectionEnd('tagClass=spClear', 'pmMessageContent');
     sp_SectionEnd('tagClass=spClear', 'pmMessage');
 }
 sp_SectionEnd('tagClass=spClear', 'pmMessageList');
                sp_ColumnStart('tagClass=spColumnSection spRight&width=32%&height=55px');
                sp_ForumIndexLastPost('tagClass=spInRowPostLink&nicedate=1&date=0&time=0&stackdate=0', __sp('Last Post'), __sp('No Topics'));
                sp_ColumnEnd();
                # Column 3 of the forum row
                # ----------------------------------------------------------------------
                sp_ColumnStart('tagClass=spColumnSection spRight&width=14%&height=55px');
                sp_ForumIndexTopicCount('tagClass=spInRowCount', __sp('Topics'), __sp('Topic'));
                sp_ForumIndexPostCount('tagClass=spInRowCount', __sp('Posts'), __sp('Post'));
                sp_ForumIndexStatusIcons('tagClass=spStatusIcon spCenter', __sp('This forum is locked'), __sp('This forum has unread posts in %COUNT% topic(s)'), __sp('Add new topic in this forum'), __sp('No permission to start topics'));
                sp_ColumnEnd();
                sp_InsertBreak();
                sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'));
                sp_SectionEnd('', 'forum');
            }
        } 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'));
}
sp_SectionEnd('', 'groupView');
sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #7
0
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'));
}
sp_SectionEnd('', 'about');
# Mandatory call to sp_FooterEnd() - available to custom code
# ----------------------------------------------------------------------
sp_FooterEnd();
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');
Пример #9
0
    sp_InsertBreak();
    sp_SectionEnd('', 'pageLinks');
    # Start the 'editor' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spHiddenSection', 'editor');
    sp_PostEditorWindow($addPostForm, $editPostForm);
    sp_SectionEnd('', 'editor');
} else {
    sp_NoTopicMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('The requested topic does not exist'));
}
sp_SectionEnd('', 'topicView');
sp_SectionEnd('', 'body');
# Footer buttons section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spActionsBar', 'footerButtons');
sp_PostNewButton('tagId=spPostNewButtonBottom&tagClass=spFootButton spRight&iconLock=sp_ForumStatusLockWhite.png&icon=', __sp('Add Reply'), __sp('Add a new post in this topic'), __sp('This topic is locked'));
if (function_exists('sp_PrintTopicView')) {
    sp_PrintTopicView('tagClass=spFootButton spRight&icon=', 'Print Topic', __sp('Topic Print Options'));
}
if (function_exists('sp_SubscriptionsSubscribeButton')) {
    sp_SubscriptionsSubscribeButton('tagClass=spFootButton spRight&subscribeIcon=&unsubscribeIcon=', __sp('Subscribe'), __sp('Un-subscribe'), __sp('Subscribe to this topic'), __sp('Unsubscribe from this topic'));
}
if (function_exists('sp_WatchesWatchButton')) {
    sp_WatchesWatchButton('tagClass=spFootButton spRight&watchIcon=&stopWatchIcon=', __sp('Watch'), __sp('Stop Watching'), __sp('Watch this topic'), __sp('Stop watching this topic'));
}
sp_SectionEnd('tagClass=spClear', 'footerButtons');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #10
0
    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');
if (function_exists('sp_ListBirthdays')) {
    sp_ListBirthdays('icon=', __sp('Members Birthdays'), __sp('Today: '), __sp('Upcoming: '));
}
#if (function_exists('sp_UserSelectOptions')) sp_UserSelectOptions('tagClass=spCenter spLabelSmall&stacked=0', __sp('Theme:'), __sp('Language:'));
sp_InsertBreak();
# Start the 'about' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection spCenter', 'about');
sp_InsertBreak('spacer=20px');
sp_Acknowledgements('showPopup=0', '', __sp('About Simple:Press'), __sp('Visit Simple:Press'));
if (function_exists('sp_PolicyDocPolicyLink')) {
    sp_PolicyDocPolicyLink('popup=0&iconClass=', __sp('Usage'), __sp('View site usage policy'));
}
if (function_exists('sp_PolicyDocPrivacyLink')) {
    sp_PolicyDocPrivacyLink('popup=0&iconClass=', __sp('Privacy'), __sp('View site privacy policy'));
}
sp_SectionEnd('', 'about');
# Mandatory call to sp_FooterEnd() - available to custom code
# ----------------------------------------------------------------------
sp_FooterEnd();
Пример #11
0
#	Simple:Press Template
#	Theme		:	Default
#	Template	:	New Posts View
#	Author		:	Simple:Press
#
#	The 'new posts view' template is used to display a list of unread posts
#
# --------------------------------------------------------------------------------------
# Load the forum header template - normally first thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spHeadContainer', 'head');
sp_load_template('spHead.php');
sp_SectionEnd('', 'head');
sp_SectionStart('tagClass=spBodyContainer', 'body');
sp_SectionStart('tagId=spRecentPostList&tagClass=spRecentPostSection');
echo '<div class="spMessage">' . __sp('Most recent topics with unread posts') . '</div>';
# Start the 'searchView' section
# ----------------------------------------------------------------------
global $spThisUser, $spListView, $spThisListTopic;
$first = sp_esc_int($_GET['first']);
$group = sp_esc_int($_GET['group']);
$count = sp_esc_int($_GET['count']);
$spListView = new spTopicList($spThisUser->newposts['topics'], $count, $group, '', $first);
sp_load_template('spListView.php');
sp_SectionEnd();
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #12
0
                # ----------------------------------------------------------------------
                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
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPageLinksBottomSection', 'pageLinks');
sp_MemberListPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=1', __sp('Page: '), __sp('Jump to page %PAGE% of members list'));
sp_InsertBreak('spacer=0px');
sp_SectionEnd('', 'pageLinks');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #13
0
                # ----------------------------------------------------------------------
                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'));
        }
        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'));
}
sp_SectionEnd('', 'groupView');
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #14
0
#	Author		:	Simple:Press
#
#	The 'default' template is used to display generic or unknown pages
#
# --------------------------------------------------------------------------------------
global $spDevice;
# Load the forum header template - normally first thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spHeadContainer', 'head');
sp_load_template('spHead.php');
sp_SectionEnd('', 'head');
sp_SectionStart('tagClass=spBodyContainer', 'body');
# lets see if we can figure out why we got here and output some useful info
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spMessage');
if ($spVars['profile'] == 'show') {
    if (!sp_get_auth('view_profiles')) {
        echo __sp('Access denied - you do not have permission to view this page');
    } else {
        echo __sp('The requested member does not exist');
    }
} else {
    echo __sp('The requested page does not exist');
}
sp_SectionEnd();
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #15
0
#	The 'search' template is used to display a simplified Search Listing
#
# --------------------------------------------------------------------------------------
global $spDevice;
# Load the forum header template - normally first thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spHeadContainer', 'head');
sp_load_template('spHead.php');
sp_SectionEnd('', 'head');
sp_SectionStart('tagClass=spBodyContainer', 'body');
# Start the 'searchView' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spListSection', 'searchView');
sp_Search();
sp_SectionStart('tagClass=spPageLinksSearchView', 'pageLinks');
sp_SearchHeaderName('', __sp('Search results for %TERM%'), __sp('Topics posted to by %NAME%'), __sp('Topics started by %NAME%'));
if ($spDevice == 'mobile') {
    sp_SearchPageLinks('tagClass=spPageLinks spPageLinksBottom&prevIcon=&nextIcon=&showLinks=5', '', '');
}
if ($spDevice != 'mobile') {
    #sp_SearchPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=0', 'Page: ', 'Jump to page %PAGE% of results');
}
sp_SectionEnd('tagClass=spClear', 'pageLinks');
sp_SearchResults('tagClass=spSearchListSection');
sp_InsertBreak();
sp_SectionStart('tagClass=spPageLinksSearchViewBottom', 'pageLinks');
if ($spDevice == 'mobile') {
    sp_SearchPageLinks('tagClass=spPageLinks spPageLinksBottom spCenter&prevIcon=&nextIcon=&showLinks=5', '', '');
}
if ($spDevice != 'mobile') {
    sp_SearchPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=0', 'Page: ', 'Jump to page %PAGE% of results');
Пример #16
0
echo '<p class="spProfileTitle">' . $spProfileUser->display_name . ' ' . __sp('- Statistics') . '<br /><hr>';
sp_ProfileShowMemberSince('tagClass=spProfileLabel', __sp('Member Since'));
sp_ProfileShowLastVisit('tagClass=spProfileLabel', __sp('Last Visited'));
sp_ProfileShowUserPosts('tagClass=spProfileLabel', __sp('Posts'));
if ($spDevice != 'mobile') {
    sp_ProfileShowSearchPosts('tagClass=spProfileLabel&rightClass=spPostedToSubmitInline&middleClass=', __sp('View'), __sp('Topics Started'), __sp('All Posts'));
}
if ($spDevice == 'mobile') {
    sp_ProfileShowSearchPosts('tagClass=spProfileLabel&rightClass=spPostedToSubmitInline&middleClass=', __sp('View'), __sp(''), __sp(''));
}
sp_SectionEnd('', 'profileStats');
sp_SectionEnd('tagClass=spClear', 'profileDetails');
# output user photos
if (!empty($spProfileUser->photos)) {
    sp_SectionStart('tagClass=spProfileShowPhotosSection', 'profilePhotos');
    echo '<p class="spProfileTitle">' . $spProfileUser->display_name . ' ' . __sp('Profile Photos') . '<br /><hr>';
    sp_ProfileShowUserPhotos('photoClass=spCenter&imageClass=spImg&numCols=3');
    sp_SectionEnd('', 'profilePhotos');
}
# output signature
if (!empty($spProfileUser->signature)) {
    sp_SectionStart('tagClass=spProfileShowSignatureSection', 'profileSignature');
    echo '<p class="spProfileTitle">' . $spProfileUser->display_name . ' ' . __sp('Signature') . '<br /><hr>';
    sp_Signature('tagClass=spSignature', $spProfileUser->signature);
    sp_SectionEnd('', 'profileSignature');
}
sp_SectionEnd('tagClass=spClear', 'profileShow');
sp_SectionEnd('', 'body');
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #17
0
    sp_SectionEnd('', 'topiclist');
    sp_SectionEnd('', 'forum');
    # Start the bottom 'pagelinks' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spPageLinksBottom', 'pageLinks');
    sp_TopicIndexPageLinks('tagClass=spPageLinks spPageLinksBottom spRight&prevIcon=&nextIcon=&showLinks=1&showEmpty=1', '', __sp('Jump to page %PAGE% of topics'), __sp('Jump to page'));
    sp_InsertBreak();
    sp_SectionEnd('', 'pageLinks');
    # Start the 'editor' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spHiddenSection', 'editor');
    sp_TopicEditorWindow($addTopicForm);
    sp_SectionEnd('', 'editor');
} else {
    sp_NoForumMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('The requested forum does not exist'));
}
sp_SectionEnd('', 'forumView');
sp_SectionEnd('', 'body');
# Footer buttons section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spActionsBar', 'footerButtons');
sp_TopicNewButton('tagClass=spFootButton spRight&iconLock=&icon=', __sp('New Topic'), __sp('Start a new topic'), __sp('Locked'));
if (function_exists('sp_SubscriptionsSubscribeForumButton')) {
    sp_SubscriptionsSubscribeForumButton('tagClass=spFootButton spRight&subscribeIcon=&unsubscribeIcon=', 'Subscribe', 'Un-Subscribe', 'Subscribe to this forum', 'UnSubscribe from this forum');
}
sp_SectionEnd('tagClass=spClear', 'footerButtons');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
                # 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'));
}
sp_SectionEnd('', 'memberList');
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #19
0
                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'));
}
sp_SectionEnd('', 'groupView');
# RECENT POST LIST - STYLED BUT HIDDEN
sp_RecentPostList('show=5&admins=1', __sp('Unread and recently updated topics'));
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #20
0
sp_UserNotices('', __sp('(Remove Notice)'));
sp_SectionEnd('', 'userInfo');
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection', 'search');
sp_QuickLinksForum('tagClass=spControl spSelect spRight', __sp('Select Forum'));
sp_QuickLinksTopic('tagClass=spControl spSelect spRight', __sp('New/Recently Updated Topics'));
sp_SearchForm($searchForm);
sp_SectionEnd('', 'search');
sp_InsertBreak();
# Start the 'breadCrumbs' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection spLeft', 'breadCrumbs');
sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=1', __sp('Home'));
sp_SectionEnd('', 'breadCrumbs');
# Start the 'pageTopStatus' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection spRight', 'pageTopStatus');
sp_GoToBottom('tagClass=spGoToBottom spRight&iconClass=spIcon', '', __sp('Go to Bottom'));
sp_UnreadPostsInfo('tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft spIcon', __sp('%COUNT% topics with<br />unread posts'), __sp('Most recent topics with unread posts'), __sp('Mark all topics as read'));
if (function_exists('sp_RankInfo')) {
    sp_RankInfo('tagClass=spButton spRight', '', __sp('Display Forum Ranks Information'));
}
sp_SectionEnd('', 'pageTopStatus');
sp_InsertBreak();
sp_SectionStart('tagClass=spPlainSection');
sp_ForumLockdown('tagClass=spMessage', __sp('The forums are currently locked and only available for read only access'));
sp_SectionEnd();
sp_InsertBreak();
# Mandatory call to sp_HeaderEnd() - available to custom code
# ----------------------------------------------------------------------
sp_HeaderEnd();
Пример #21
0
sp_SectionEnd('', 'profileAvatarRank');
# show user stats
sp_SectionStart('tagClass=spProfileShowInfoSection spRight', 'profileStats');
sp_ProfileShowDisplayName('tagClass=spProfileLabel spLeft', __sp('Username'));
sp_ProfileShowMemberSince('tagClass=spProfileLabel spLeft', __sp('Member Since'));
sp_ProfileShowLastVisit('tagClass=spProfileLabel spLeft', __sp('Last Visited'));
sp_ProfileShowUserPosts('tagClass=spProfileLabel spLeft', __sp('Posts'));
if (function_exists('sp_ProfileSendPm')) {
    sp_ProfileSendPm('tagClass=spProfileLabel&icon=&buttonClass=spPmButton', __sp('Message'), __sp('Send PM'));
}
sp_SectionEnd('', 'profileStats');
sp_SectionEnd('tagClass=spClear', 'profileBasic');
# show user identities
sp_SectionStart('tagClass=spProfileShowInfoSection spRight', 'profileIdentities');
sp_ProfileShowEmail('tagClass=spProfileLabel spLeft', __sp('Email'));
sp_ProfileShowAIM('tagClass=spProfileLabel spLeft', __sp('AOL IM ID'));
sp_ProfileShowYIM('tagClass=spProfileLabel spLeft', __sp('Yahoo IM ID'));
sp_ProfileShowMSN('tagClass=spProfileLabel spLeft', __sp('MSN ID'));
sp_ProfileShowICQ('tagClass=spProfileLabel spLeft', __sp('ICQ ID'));
sp_ProfileShowGoogleTalk('tagClass=spProfileLabel spLeft', __sp('Google Talk ID'));
sp_ProfileShowSkype('tagClass=spProfileLabel spLeft', __sp('Skype ID'));
sp_ProfileShowMySpace('tagClass=spProfileLabel spLeft', __sp('MySpace ID'));
sp_ProfileShowFacebook('tagClass=spProfileLabel spLeft', __sp('Facebook ID'));
sp_ProfileShowTwitter('tagClass=spProfileLabel spLeft', __sp('Twitter ID'));
sp_ProfileShowLinkedIn('tagClass=spProfileLabel spLeft', __sp('LinkedIn ID'));
sp_ProfileShowYouTube('tagClass=spProfileLabel spLeft', __sp('YouTube ID'));
sp_SectionEnd('', 'profileIdentities');
sp_SectionStart('tagClass=spFlexSection spCenter', 'postedTo');
sp_ProfileShowSearchPosts('tagClass=spLabel&leftClass=spPostedToSubmit&rightClass=spPostedToSubmit&middleClass=', __sp('View'), __sp('Topics Started by %USERNAME%'), __sp('%USERNAME%s Recent Posts'));
sp_SectionEnd('', 'postedTo');
sp_SectionEnd('tagClass=spClear', 'profileShow');
            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');
    # Start the 'pagelinks' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spPlainSection', 'pageLinks');
    sp_TopicNewButton('tagId=spTopicNewButtonBottom&tagClass=spButton spRight', __sp('Add Topic'), __sp('Start a new topic'), __sp('This forum is locked'), __sp('No permission to start topics'));
    sp_TopicIndexPageLinks('', __sp('Page: '), __sp('Jump to page %PAGE% of topics'), __sp('Jump to page'));
    sp_InsertBreak();
    sp_SectionEnd('', 'pageLinks');
    # Start the 'editor' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spHiddenSection', 'editor');
    sp_TopicEditorWindow($addTopicForm);
    sp_SectionEnd('', 'editor');
} else {
    sp_NoForumMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('The requested forum does not exist'));
}
sp_SectionEnd('', 'forumView');
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
Пример #23
0
    sp_UsersAlsoViewing('includeAdmins=1&includeMods=1&includeMembers=1&displayToAll=1', __sp('Is viewing'));
    sp_SectionStart('tagClass=spPageLinksBottom', 'pageLinks');
    sp_PostIndexPageLinks('tagClass=spPageLinks spPageLinksBottom spRight&prevIcon=&nextIcon=&showLinks=2&showEmpty=1', '', __sp('Jump to page %PAGE% of this topic'), __sp('Jump to page'));
    sp_SectionEnd('', 'pageLinks');
    # Start the 'editor' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spHiddenSection', 'editor');
    sp_PostEditorWindow($addPostForm, $editPostForm);
    sp_SectionEnd('', 'editor');
} else {
    sp_NoTopicMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('The requested topic does not exist'));
}
sp_SectionEnd('', 'topicView');
sp_SectionEnd('', 'body');
sp_InsertBreak();
# Footer Buttons Section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spActionsBar', 'footerButtons');
sp_PostNewButton('tagClass=spFootButton spRight&icon=', 'Add Reply', __sp('Add a new post in this topic'), __sp('This topic is locked'));
if (function_exists('sp_SubscriptionsSubscribeButton')) {
    sp_SubscriptionsSubscribeButton('tagClass=spFootButton spRight&subscribeIcon=&unsubscribeIcon=', 'Subscribe', 'Un-Subscribe', '', '');
}
if (function_exists('sp_WatchesWatchButton')) {
    sp_WatchesWatchButton('tagClass=spFootButton spRight&watchIcon=&stopWatchIcon=', 'Watch', 'Un-Watch', '', '');
}
sp_SectionEnd('tagClass=spClear', 'footerButtons');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');