FluxBB.org

Changeset 729

Show
Ignore:
Timestamp:
11/12/08 23:05:14 (2 months ago)
Author:
Paul
Message:

See note to r.719

Location:
fluxbb/branches/fluxbb-1.3-dev/upload
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • fluxbb/branches/fluxbb-1.3-dev/upload/include/search_functions.php

    r715 r729  
    387387                        ), 
    388388                        'WHERE'         => 't.id IN('.$search_results.')', 
    389                         'ORDER BY'      => $sort_by_sql . ' ' . $sort_dir 
     389                        'ORDER BY'      => 't.sticky DESC, '.$sort_by_sql . ' ' . $sort_dir 
    390390                ); 
    391391 
     
    761761function generate_search_crumbs($action = null) 
    762762{ 
    763         global $forum_page, $lang_common, $lang_search, $forum_url, $forum_user, $num_hits, $search_set, $search_id, $show_as; 
     763        global $forum_page, $lang_common, $lang_forum, $lang_topic, $lang_search, $forum_url, $forum_user, $num_hits, $search_set, $search_id, $show_as; 
    764764 
    765765        $return = ($hook = get_hook('sf_fn_generate_search_crumbs_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     
    771771                case 'show_new': 
    772772                        $forum_page['crumbs'][] = $lang_search['Topics with new']; 
    773                         $forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits); 
     773                        $forum_page['main_hd'] = end($forum_page['crumbs']).'<br /><small>'.sprintf($lang_search['Topic results head'], $num_hits).'</small>'; 
    774774                        $forum_page['main_options']['defined_search'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>'; 
    775775                        $forum_page['main_options']['mark_all'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['mark_read'], generate_form_token('markread'.$forum_user['id'])).'">'.$lang_common['Mark all as read'].'</a></span>'; 
     
    778778                case 'show_recent': 
    779779                        $forum_page['crumbs'][] = $lang_search['Recently active topics']; 
    780                         $forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits); 
     780                        $forum_page['main_hd'] = end($forum_page['crumbs']).'<br /><small>'.sprintf($lang_search['Topic results head'], $num_hits).'</small>'; 
    781781                        $forum_page['main_options']['defined_search'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>'; 
    782782                        break; 
     
    784784                case 'show_unanswered': 
    785785                        $forum_page['crumbs'][] = $lang_search['Unanswered topics']; 
    786                         $forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits); 
     786                        $forum_page['main_hd'] = end($forum_page['crumbs']).'<br /><small>'.sprintf($lang_search['Topic results head'], $num_hits).'</small>'; 
    787787                        $forum_page['main_options']['defined_search'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>'; 
    788788                        break; 
     
    790790                case 'show_user_posts': 
    791791                        $forum_page['crumbs'][] = sprintf($lang_search['Posts by'], $search_set[0]['pposter'], ($forum_page['start_from'] + 1), $num_hits); 
    792                         $forum_page['items_info'] = generate_items_info($lang_search['Posts found'], ($forum_page['start_from'] + 1), $num_hits); 
     792                        $forum_page['main_hd'] = end($forum_page['crumbs']).'<br /><small>'.sprintf($lang_search['Posts results head'], $num_hits).'</small>'; 
    793793                        $forum_page['main_options']['user_topics'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search_user_topics'], $search_id).'">'.sprintf($lang_search['Topics by'], $search_set[0]['pposter']).'</a></span>'; 
    794794                        $forum_page['main_options']['defined_search'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>'; 
     
    797797                case 'show_user_topics': 
    798798                        $forum_page['crumbs'][] = sprintf($lang_search['Topics by'], $search_set[0]['poster']); 
    799                         $forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits); 
     799                        $forum_page['main_hd'] = end($forum_page['crumbs']).'<br /><small>'.sprintf($lang_search['Topic results head'], $num_hits).'</small>'; 
    800800                        $forum_page['main_options']['user_posts'] =  '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search_user_posts'], $search_id).'">'.sprintf($lang_search['Posts by'], $search_set[0]['poster']).'</a></span>'; 
    801801                        $forum_page['main_options']['defined_search'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>'; 
     
    804804                case 'show_subscriptions': 
    805805                        $forum_page['crumbs'][] = $lang_search['Subscriptions']; 
    806                         $forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits); 
     806                        $forum_page['main_hd'] = end($forum_page['crumbs']).'<br /><small>'.sprintf($lang_search['Topic results head'], $num_hits).'</small>'; 
    807807                        $forum_page['main_options']['defined_search'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>'; 
    808808                        break; 
     
    810810                default: 
    811811                        $forum_page['crumbs'][] = $lang_search['Search results']; 
    812                         $forum_page['items_info'] = generate_items_info((($show_as == 'topics') ? $lang_search['Topics found'] : $lang_search['Posts found']), ($forum_page['start_from'] + 1), $num_hits); 
     812 
     813                        if ($show_as == 'topics') 
     814                                $forum_page['main_hd'] = end($forum_page['crumbs']).'<br /><small>'.sprintf($lang_search['Topic results head'], $num_hits).'</small>'; 
     815                        else 
     816                                $forum_page['main_hd'] = end($forum_page['crumbs']).'<br /><small>'.sprintf($lang_search['Posts results head'], $num_hits).'</small>'; 
     817 
    813818                        $forum_page['main_options']['new_search'] = '<span'.(empty($forum_page['main_options']) ? ' class="item1"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['Perform new search'].'</a></span>'; 
    814819                        break; 
  • fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/search.php

    r564 r729  
    77'No search permission'          =>      'You do not have permission to use the search feature.', 
    88'Search flood'                          =>      'At least %s seconds have to pass between searches. Please wait a while and try searching again.', 
    9 'Search legend'                         =>      'Search criteria:', 
    10 'Results legend'                        =>      'Search results:', 
    11 'Search info'                           =>      'You may search forums for posts by keyword, author\'s username or both.', 
    12 'Keywords info'                         =>      'You may search for a single keyword or for multiple keywords separated by spaces.', 
    13 'Refine info'                           =>      'You may use <strong>AND</strong>, <strong>OR</strong> and <strong>NOT</strong> to refine your searches by keyword.', 
    14 'Wildcard info'                         =>      'Use the wildcard character <strong>*</strong> for partial keyword or username matches.', 
    15 'Forum default info'            =>      'By default all forums are searched. You may narrow your search by selecting one or more forums to search.', 
    16 'Forum require info'            =>      'You may choose to search one or more forums. You must select at least one forum to search.', 
    17 'Keyword search'                        =>      'Keyword or words:', 
    18 'Author search'                         =>      'Author\'s username:', 
    19 'Forum search'                          =>      'Select forums to search:', 
    20 'Forum search default'          =>      'If no forums are selected then all forums will be searched.', 
     9'Search head'                           =>      'Search forums for posts by one or more keywords, author\'s username or both.', 
     10'Keyword search'                        =>      'Keyword or words', 
     11'Keyword help'                          =>      'Separate multiple keywords with spaces. Use <strong>AND</strong>, <strong>OR</strong> and <strong>NOT</strong> to refine your search. Use the wildcard character <strong>*</strong> for partial matches.', 
     12'Author search'                         =>      'Author\'s username', 
     13'Author help'                           =>      'Use the wildcard character <strong>*</strong> for partial matches.', 
     14'Forum search'                          =>      'Select forums to search', 
     15'Forum search default'          =>      'If no forums are selected then all forums will be searched', 
    2116'Forum search require'          =>      'You must select at least one forum to search.', 
    22 'Sort by'                                       =>      'Sort results by:', 
    23 'Sort order'                            =>      'Results sort order:', 
     17'Sort by'                                       =>      'Sort results by', 
     18'Sort order'                            =>      'Results sort order', 
    2419'Sort by post time'                     =>      'Post time', 
    2520'Sort by author'                        =>      'Author', 
     
    2823'Ascending'                                     =>      'Ascending', 
    2924'Descending'                            =>      'Descending', 
    30 'Display results'                       =>      'Display results:', 
     25'Display results'                       =>      'Display results', 
    3126'Show as topics'                        =>      'As topics', 
    3227'Show as posts'                         =>      'As posts', 
     
    3530 
    3631// Results 
     32'Topic results head'            =>      '%s topics found', 
     33'Posts results head'            =>      '%s posts found', 
    3734'Search results'                        =>      'Search results', 
    3835'Topics with new'                       =>      'Topics with new posts', 
     
    4037'Unanswered topics'                     =>      'Unanswered topics', 
    4138'Subscriptions'                         =>      'Subscriptions', 
    42 'Topics found'                          =>      'Topics found', 
    43 'Posts found'                           =>      'Posts found', 
    4439'Topics by'                                     =>      'Topics by %s', 
    4540'Posts by'                                      =>      'Posts by %s', 
     
    4843'Perform new search'            =>      'Perform new search', 
    4944'Search options'                        =>      'Search options', 
    50 'Location'                                      =>      'Forum: %s', 
    5145'No terms'                                      =>      'You have to enter at least one keyword and/or an author to search for.', 
    5246'No hits'                                       =>      'Your search returned no hits.', 
     
    6054'Go to forum'                           =>      'Go to forum', 
    6155'Go to topic'                           =>      'Go to topic', 
    62 'Go to profile'                         =>      'Go to %s\'s profile' 
     56'Go to profile'                         =>      'Go to %s\'s profile', 
     57'Topics head'                           =>      'Topics', 
     58'Replies label'                         =>      'Replies', 
     59'Last post label'                       =>      'Last post', 
     60'Forum label'                           =>      'Forum', 
     61'Info separator'                        =>      ':', 
     62'by poster'                                     =>      'by %s', 
     63'Topic starter'                         =>      'by %s', 
     64'New posts'                                     =>      'New posts', 
     65'Topic navigation'                      =>      '( %s )', 
     66'Pages'                                         =>      'Pages', 
     67'Sticky'                                        =>      '[Sticky]', 
     68'Closed'                                        =>      '[Closed]', 
     69'You have posted'                       =>      'You have posted in this topic.', 
     70'New posts info'                        =>      'Go to the first new post since your last visit.', 
     71'Topic byline'                          =>      '<span>Topic by </span>%s', 
     72'Reply byline'                          =>      '<span>Reply by </span>%s', 
     73'Search reply'                          =>      '[ Posted in %s - %s reply ]', 
     74'Search replies'                        =>      '[ Posted in %s - %s replies ]', 
     75'Topic title'                           =>      'Topic: %s', 
     76'Reply title'                           =>      'Re: %s', 
     77'Posts'                                         =>      'Posts', 
     78'Permalink post'                        =>      'Permanent link to this post', 
     79'Permalink topic'                       =>      'Permanent link to this topic', 
     80'Go to profile'                         =>      'Go to %s\'s profile', 
    6381 
    6482); 
  • fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/topic.php

    r726 r729  
    66'Topic byline'                  =>      '<span>Topic by </span>%s', 
    77'Reply byline'                  =>      '<span>Reply by </span>%s', 
    8 'Search replies'                =>      '(%s replies, posted in %s)', 
    98'Post reply'                    =>      'Post reply', 
    109'Topic closed'                  =>      '[ Closed ]', 
     
    3534'RSS topic feed'                =>      'RSS Topic Feed', 
    3635'Quick post'                    =>      'Quick reply to this topic', 
    37 'Write message'                 =>      'Write message', 
    3836'Post'                                  =>      'Post', 
    3937'Permalink post'                =>      'Permanent link to this post', 
     
    4240'Move'                                  =>      'Move topic', 
    4341'Topic options'                 =>      'Topic options', 
     42'Moderator options'             =>      'Moderator options', 
    4443'Open'                                  =>  'Open topic', 
    4544'Close'                                 =>  'Close topic', 
  • fluxbb/branches/fluxbb-1.3-dev/upload/search.php

    r715 r729  
    148148        } 
    149149 
    150         // Setup main heading 
    151         if ($forum_page['num_pages'] > 1) 
    152                 $forum_page['main_head_pages'] = sprintf($lang_common['Page info'], $forum_page['page'], $forum_page['num_pages']); 
    153  
    154150        // Setup main options header 
    155151        $forum_page['main_options_head'] = $lang_search['Search options']; 
    156152 
    157  
    158153        ($hook = get_hook('se_results_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    159154 
     
    168163        if ($show_as == 'topics') 
    169164        { 
    170                 // Load the forum.php language file 
    171                 require FORUM_ROOT.'lang/'.$forum_user['language'].'/forum.php'; 
    172  
    173                 $forum_page['item_header'] = array(); 
    174                 $forum_page['item_header']['subject']['title'] = '<strong class="subject-title">'.$lang_forum['Topics'].'</strong>'; 
    175                 $forum_page['item_header']['info']['replies'] = '<strong class="info-replies">'.$lang_forum['replies'].'</strong>'; 
    176                 $forum_page['item_header']['info']['lastpost'] = '<strong class="info-lastpost">'.$lang_forum['last post'].'</strong>'; 
    177  
    178                 ($hook = get_hook('se_results_topics_pre_item_header_output')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    179  
    180 ?> 
    181         <div class="main-pagehead"> 
    182                 <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2> 
    183         </div> 
    184         <div class="main-subhead"> 
    185                 <p class="item-summary forum-noview"><span><?php printf($lang_forum['Search subtitle'], implode(' ', $forum_page['item_header']['subject']), implode(', ', $forum_page['item_header']['info'])) ?></span></p> 
    186         </div> 
    187         <div class="main-content main-forum forum-noview"> 
     165                $forum_page['cur_sticky'] = '2'; 
     166 
     167?> 
     168        <div id="main-forum" class="content"> 
     169                <div class="section section-1 seforum"> 
     170                        <div class="section-hd"> 
     171                                <h2 class="hn"><span><?php echo $lang_search['Topics head'] ?></span></h2> 
     172                        </div> 
    188173<?php 
    189174 
     
    191176        else 
    192177        { 
    193                 // Load the topic.php language file 
    194                 require FORUM_ROOT.'lang/'.$forum_user['language'].'/topic.php'; 
    195  
    196 ?> 
    197         <div class="main-pagehead"> 
    198                 <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2> 
    199         </div> 
    200         <div class="main-content main-topic"> 
    201 <?php 
    202  
    203         } 
    204  
    205         $forum_page['item_count'] = 0; 
     178 
     179?> 
     180        <div id="main-topic" class="content"> 
     181                <div class="section section-1 posts"> 
     182                        <div class="section-hd"> 
     183                                <h2 class="hn"><span><?php echo $lang_search['Posts'] ?></span></h2> 
     184                        </div> 
     185<?php 
     186 
     187        } 
     188 
     189        $forum_page['item_count'] = $forum_page['group_count'] = 0; 
    206190 
    207191        if ($show_as == 'posts') 
     
    216200                ($hook = get_hook('se_results_loop_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    217201 
    218                 ++$forum_page['item_count']; 
    219  
    220202                if ($forum_config['o_censoring'] == '1') 
    221203                        $search_set[$i]['subject'] = censor_words($search_set[$i]['subject']); 
     
    223205                if ($show_as == 'posts') 
    224206                { 
     207                        ++$forum_page['item_count']; 
     208 
    225209                        // Generate the result heading 
    226210                        $forum_page['post_ident'] = array(); 
    227211                        $forum_page['post_ident']['num']        = '<span class="post-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span>'; 
    228                         $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($search_set[$i]['pid'] == $search_set[$i]['first_post_id']) ? $lang_topic['Topic byline'] : $lang_topic['Reply byline']), '<strong>'.forum_htmlencode($search_set[$i]['pposter']).'</strong>').'</span>'; 
    229                         $forum_page['post_ident']['link'] = '<span class="post-link"><a class="permalink" rel="bookmark" title="'.$lang_topic['Permalink post'].'" href="'.forum_link($forum_url['post'], $search_set[$i]['pid']).'">'.format_time($search_set[$i]['pposted']).'</a></span>'; 
     212                        $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($search_set[$i]['pid'] == $search_set[$i]['first_post_id']) ? $lang_search['Topic byline'] : $lang_search['Reply byline']), '<strong>'.forum_htmlencode($search_set[$i]['pposter']).'</strong>').'</span>'; 
     213                        $forum_page['post_ident']['link'] = '<span class="post-link"><a class="permalink" rel="bookmark" title="'.$lang_search['Permalink post'].'" href="'.forum_link($forum_url['post'], $search_set[$i]['pid']).'">'.format_time($search_set[$i]['pposted']).'</a></span>'; 
    230214 
    231215                        ($hook = get_hook('se_results_posts_row_pre_item_ident_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    232216 
    233217                        // Generate the topic title 
    234                         $forum_page['item_subject'] = '<a class="permalink" rel="bookmark" title="'.$lang_topic['Permalink topic'].'" href="'.forum_link($forum_url['topic'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))).'">'.sprintf((($search_set[$i]['pid'] == $search_set[$i]['first_post_id']) ? $lang_topic['Topic title'] : $lang_topic['Reply title']), forum_htmlencode($search_set[$i]['subject'])).'</a> <small>'.sprintf($lang_topic['Search replies'], forum_number_format($search_set[$i]['num_replies']), '<a href="'.forum_link($forum_url['forum'], array($search_set[$i]['forum_id'], sef_friendly($search_set[$i]['forum_name']))).'">'.forum_htmlencode($search_set[$i]['forum_name']).'</a>').'</small>'; 
     218                        $forum_page['item_subject'] = '<a class="permalink" rel="bookmark" title="'.$lang_search['Permalink topic'].'" href="'.forum_link($forum_url['topic'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))).'">'.sprintf((($search_set[$i]['pid'] == $search_set[$i]['first_post_id']) ? $lang_search['Topic title'] : $lang_search['Reply title']), forum_htmlencode($search_set[$i]['subject'])).'</a> <small>'.sprintf((($search_set[$i]['num_replies'] == 1) ? $lang_search['Search reply'] : $lang_search['Search replies']), '<a href="'.forum_link($forum_url['forum'], array($search_set[$i]['forum_id'], sef_friendly($search_set[$i]['forum_name']))).'">'.forum_htmlencode($search_set[$i]['forum_name']).'</a>', forum_number_format($search_set[$i]['num_replies'])).'</small>'; 
    235219 
    236220                        // Generate author identification 
     
    242226 
    243227                        if ($search_set[$i]['pid'] != $search_set[$i]['first_post_id']) 
    244                                 $forum_page['post_actions']['topic'] = '<span><a class="permalink" rel="bookmark" title="'.$lang_topic['Permalink topic'].'" href="'.forum_link($forum_url['topic'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))).'">'.$lang_search['Go to topic'].'<span>: '.forum_htmlencode($search_set[$i]['subject']).'</span></a></span>'; 
    245  
    246                         $forum_page['post_actions']['post'] = '<span><a class="permalink" rel="bookmark" title="'.$lang_topic['Permalink post'].'" href="'.forum_link($forum_url['post'], $search_set[$i]['pid']).'">'.$lang_search['Go to post'].'<span> '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>'; 
     228                                $forum_page['post_actions']['topic'] = '<span><a class="permalink" rel="bookmark" title="'.$lang_search['Permalink topic'].'" href="'.forum_link($forum_url['topic'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))).'">'.$lang_search['Go to topic'].'<span>: '.forum_htmlencode($search_set[$i]['subject']).'</span></a></span>'; 
     229 
     230                        $forum_page['post_actions']['post'] = '<span><a class="permalink" rel="bookmark" title="'.$lang_search['Permalink post'].'" href="'.forum_link($forum_url['post'], $search_set[$i]['pid']).'">'.$lang_search['Go to post'].'<span> '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>'; 
    247231 
    248232                        $forum_page['message'] = parse_message($search_set[$i]['message'], $search_set[$i]['hide_smilies']); 
     
    267251 
    268252?> 
    269         <div class="<?php echo implode(' ', $forum_page['item_status']) ?> resultpost"> 
    270                 <div class="posthead"> 
    271                         <h3 class="hn post-ident"><?php echo implode(' ', $forum_page['post_ident']) ?></h3> 
    272                         <h4 class="hn post-title"><span><?php echo $forum_page['item_subject'] ?></span></h4> 
    273                 </div> 
    274                 <div class="postbody"> 
    275                         <div class="post-entry"> 
    276                                 <div class="entry-content"> 
    277                                         <?php echo $forum_page['message'] ?> 
    278                                 </div> 
     253                        <div class="<?php echo implode(' ', $forum_page['item_status']) ?> resultpost"> 
     254                                <div class="posthead"> 
     255                                        <div class="post-ident"> 
     256                                                <h3 class="hn"><?php echo implode(' ', $forum_page['post_ident']) ?></h3> 
     257                                                <h4 class="hn post-title"><span><?php echo $forum_page['item_subject'] ?></span></h4> 
     258                                        </div> 
     259                                </div> 
     260                                <div class="postbody"> 
     261                                        <div class="post-content"> 
     262                                                <div class="post-entry"> 
     263                                                        <div class="entry-content"> 
     264                                                                <?php echo $forum_page['message'] ?> 
     265                                                        </div> 
    279266<?php ($hook = get_hook('se_results_posts_row_new_post_entry_data')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    280                         </div> 
    281                 </div> 
    282                 <div class="postfoot"> 
    283                         <div class="post-options"> 
    284                                 <p class="post-actions"><?php echo implode(' ', $forum_page['post_actions']) ?></p> 
    285                         </div> 
    286                 </div> 
    287         </div> 
     267                                                </div> 
     268                                        </div> 
     269                                </div> 
     270                                <div class="postfoot"> 
     271                                        <div class="post-options"> 
     272                                                <p class="post-actions"><?php echo implode(' ', $forum_page['post_actions']) ?></p> 
     273                                        </div> 
     274                                </div> 
     275                        </div> 
    288276<?php 
    289277 
     
    291279                else 
    292280                { 
     281 
     282                        if ($forum_page['cur_sticky'] != $search_set[$i]['sticky']) 
     283                        { 
     284                                ++$forum_page['group_count']; 
     285 
     286                                if (($search_set[$i]['sticky'] != '2') && ($forum_page['item_count'] != 0)) 
     287                                        echo "\t\t\t".'</div>'."\n"; 
     288 
     289                                ($hook = get_hook('se_results_topics_pre_caption_output')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     290 
     291?> 
     292                        <div class="rep-group<?php echo ($forum_page['group_count'] == 1) ? ' rep-group-1' : '' ?><?php echo ($search_set[$i]['sticky'] == '1') ? ' rep-group-sticky' : '' ?>"> 
     293<?php 
     294 
     295                                $forum_page['cur_sticky'] = $search_set[$i]['sticky']; 
     296                                $forum_page['item_count'] = 0; 
     297                        } 
     298 
     299                        ++$forum_page['item_count']; 
     300 
    293301                        // Start from scratch 
    294                         $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array(); 
     302                        $forum_page['item_subject'] = $forum_page['rep_item'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array(); 
    295303                        $forum_page['item_indicator'] = ''; 
    296304 
    297305                        // Assemble the Topic heading 
     306                        if ($search_set[$i]['sticky'] == '1') 
     307                        { 
     308                                $forum_page['item_title_status']['sticky'] = '<em class="sticky">'.$lang_search['Sticky'].'</em>'; 
     309                                $forum_page['item_status']['sticky'] = 'rep-item-sticky'; 
     310                        } 
     311 
     312                        if ($search_set[$i]['closed'] != '0') 
     313                        { 
     314                                $forum_page['item_title_status']['closed'] = '<em class="closed">'.$lang_search['Closed'].'</em>'; 
     315                                $forum_page['item_status']['closed'] = 'rep-item-closed'; 
     316                        } 
    298317 
    299318                        // Should we display the dot or not? :) 
    300319                        if (!$forum_user['is_guest'] && $forum_config['o_show_dot'] == '1' && $search_set[$i]['has_posted'] > 0) 
    301                         { 
    302                                 $forum_page['item_title']['posted'] = '<span class="posted-mark">'.$lang_forum['You posted indicator'].'</span>'; 
    303320                                $forum_page['item_status']['posted'] = 'posted'; 
    304                         } 
    305  
    306                         $forum_page['item_title']['link'] = '<strong><a href="'.forum_link($forum_url['topic'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))).'">'.forum_htmlencode($search_set[$i]['subject']).'</a></strong>'; 
     321 
     322                        ($hook = get_hook('se_results_topics_row_pre_item_title_status_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
     323 
     324                        if (!empty($forum_page['item_title_status'])) 
     325                                $forum_page['item_title']['status'] = '<span class="item-status">'.implode(' ', $forum_page['item_title_status']).'</span>'; 
     326 
     327                        $forum_page['item_title']['link'] = '<strong><a href="'.forum_link($forum_url['topic'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))).'"'.((isset($forum_page['item_status']['posted'])) ? ' title="'.$lang_search['You have posted'].'"' : '').'>'.forum_htmlencode($search_set[$i]['subject']).'</a></strong>'; 
    307328 
    308329                        $forum_page['item_pages'] = ceil(($search_set[$i]['num_replies'] + 1) / $forum_user['disp_posts']); 
    309330 
    310331                        if ($forum_page['item_pages'] > 1) 
    311                                 $forum_page['item_nav']['pages'] = '<span>'.$lang_forum['Pages'].'&#160;</span>'.paginate($forum_page['item_pages'], -1, $forum_url['topic'], $lang_common['Page separator'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))); 
     332                                $forum_page['item_nav']['pages'] = '<span>'.$lang_search['Pages'].'&#160;</span>'.paginate($forum_page['item_pages'], -1, $forum_url['topic'], $lang_common['Page separator'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))); 
    312333 
    313334                        // Does this topic contain posts we haven't read? If so, tag it accordingly. 
    314335                        if (!$forum_user['is_guest'] && $search_set[$i]['last_post'] > $forum_user['last_visit'] && (!isset($tracked_topics['topics'][$search_set[$i]['tid']]) || $tracked_topics['topics'][$search_set[$i]['tid']] < $search_set[$i]['last_post']) && (!isset($tracked_topics['forums'][$search_set[$i]['forum_id']]) || $tracked_topics['forums'][$search_set[$i]['forum_id']] < $search_set[$i]['last_post'])) 
    315336                        { 
    316                                 $forum_page['item_nav']['new'] = '<em class="item-newposts"><a href="'.forum_link($forum_url['topic_new_posts'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))).'" title="'.$lang_forum['New posts info'].'">'.$lang_forum['New posts'].'</a></em>'; 
     337                                $forum_page['item_nav']['new'] = '<em class="item-newposts"><a href="'.forum_link($forum_url['topic_new_posts'], array($search_set[$i]['tid'], sef_friendly($search_set[$i]['subject']))).'" title="'.$lang_search['New posts info'].'">'.$lang_search['New posts'].'</a></em>'; 
    317338                                $forum_page['item_status']['new'] = 'new'; 
    318339                        } 
     
    321342 
    322343                        if (!empty($forum_page['item_nav'])) 
    323                                 $forum_page['item_title']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>'; 
     344                                $forum_page['item_title']['nav'] = '<span class="item-nav">'.sprintf($lang_search['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>'; 
     345 
     346                        $forum_page['item_title']['starter'] = '<cite class="item-starter">'.sprintf($lang_search['Topic starter'], forum_htmlencode($search_set[$i]['poster'])).'</cite>'; 
    324347 
    325348                        ($hook = get_hook('se_results_topics_row_pre_item_title_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    326349 
    327                         $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> '.implode(' ', $forum_page['item_title']).'</h3>'; 
    328  
    329  
    330                         if ($search_set[$i]['sticky'] == '1') 
    331                         { 
    332                                 $forum_page['item_subject_status']['sticky'] = $lang_forum['Sticky']; 
    333                                 $forum_page['item_status']['sticky'] = 'sticky'; 
    334                         } 
    335  
    336                         if ($search_set[$i]['closed'] != '0') 
    337                         { 
    338                                 $forum_page['i