Changeset 729
- Timestamp:
- 11/12/08 23:05:14 (2 months ago)
- Location:
- fluxbb/branches/fluxbb-1.3-dev/upload
- Files:
-
- 4 modified
-
include/search_functions.php (modified) (9 diffs)
-
lang/English/search.php (modified) (6 diffs)
-
lang/English/topic.php (modified) (3 diffs)
-
search.php (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluxbb/branches/fluxbb-1.3-dev/upload/include/search_functions.php
r715 r729 387 387 ), 388 388 'WHERE' => 't.id IN('.$search_results.')', 389 'ORDER BY' => $sort_by_sql . ' ' . $sort_dir389 'ORDER BY' => 't.sticky DESC, '.$sort_by_sql . ' ' . $sort_dir 390 390 ); 391 391 … … 761 761 function generate_search_crumbs($action = null) 762 762 { 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; 764 764 765 765 $return = ($hook = get_hook('sf_fn_generate_search_crumbs_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; … … 771 771 case 'show_new': 772 772 $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>'; 774 774 $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>'; 775 775 $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>'; … … 778 778 case 'show_recent': 779 779 $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>'; 781 781 $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>'; 782 782 break; … … 784 784 case 'show_unanswered': 785 785 $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>'; 787 787 $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>'; 788 788 break; … … 790 790 case 'show_user_posts': 791 791 $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>'; 793 793 $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>'; 794 794 $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>'; … … 797 797 case 'show_user_topics': 798 798 $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>'; 800 800 $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>'; 801 801 $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>'; … … 804 804 case 'show_subscriptions': 805 805 $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>'; 807 807 $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>'; 808 808 break; … … 810 810 default: 811 811 $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 813 818 $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>'; 814 819 break; -
fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/search.php
r564 r729 7 7 'No search permission' => 'You do not have permission to use the search feature.', 8 8 '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', 21 16 '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', 24 19 'Sort by post time' => 'Post time', 25 20 'Sort by author' => 'Author', … … 28 23 'Ascending' => 'Ascending', 29 24 'Descending' => 'Descending', 30 'Display results' => 'Display results :',25 'Display results' => 'Display results', 31 26 'Show as topics' => 'As topics', 32 27 'Show as posts' => 'As posts', … … 35 30 36 31 // Results 32 'Topic results head' => '%s topics found', 33 'Posts results head' => '%s posts found', 37 34 'Search results' => 'Search results', 38 35 'Topics with new' => 'Topics with new posts', … … 40 37 'Unanswered topics' => 'Unanswered topics', 41 38 'Subscriptions' => 'Subscriptions', 42 'Topics found' => 'Topics found',43 'Posts found' => 'Posts found',44 39 'Topics by' => 'Topics by %s', 45 40 'Posts by' => 'Posts by %s', … … 48 43 'Perform new search' => 'Perform new search', 49 44 'Search options' => 'Search options', 50 'Location' => 'Forum: %s',51 45 'No terms' => 'You have to enter at least one keyword and/or an author to search for.', 52 46 'No hits' => 'Your search returned no hits.', … … 60 54 'Go to forum' => 'Go to forum', 61 55 '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', 63 81 64 82 ); -
fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/topic.php
r726 r729 6 6 'Topic byline' => '<span>Topic by </span>%s', 7 7 'Reply byline' => '<span>Reply by </span>%s', 8 'Search replies' => '(%s replies, posted in %s)',9 8 'Post reply' => 'Post reply', 10 9 'Topic closed' => '[ Closed ]', … … 35 34 'RSS topic feed' => 'RSS Topic Feed', 36 35 'Quick post' => 'Quick reply to this topic', 37 'Write message' => 'Write message',38 36 'Post' => 'Post', 39 37 'Permalink post' => 'Permanent link to this post', … … 42 40 'Move' => 'Move topic', 43 41 'Topic options' => 'Topic options', 42 'Moderator options' => 'Moderator options', 44 43 'Open' => 'Open topic', 45 44 'Close' => 'Close topic', -
fluxbb/branches/fluxbb-1.3-dev/upload/search.php
r715 r729 148 148 } 149 149 150 // Setup main heading151 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 154 150 // Setup main options header 155 151 $forum_page['main_options_head'] = $lang_search['Search options']; 156 152 157 158 153 ($hook = get_hook('se_results_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 159 154 … … 168 163 if ($show_as == 'topics') 169 164 { 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> 188 173 <?php 189 174 … … 191 176 else 192 177 { 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; 206 190 207 191 if ($show_as == 'posts') … … 216 200 ($hook = get_hook('se_results_loop_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 217 201 218 ++$forum_page['item_count'];219 220 202 if ($forum_config['o_censoring'] == '1') 221 203 $search_set[$i]['subject'] = censor_words($search_set[$i]['subject']); … … 223 205 if ($show_as == 'posts') 224 206 { 207 ++$forum_page['item_count']; 208 225 209 // Generate the result heading 226 210 $forum_page['post_ident'] = array(); 227 211 $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>'; 230 214 231 215 ($hook = get_hook('se_results_posts_row_pre_item_ident_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 232 216 233 217 // 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>'; 235 219 236 220 // Generate author identification … … 242 226 243 227 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>'; 247 231 248 232 $forum_page['message'] = parse_message($search_set[$i]['message'], $search_set[$i]['hide_smilies']); … … 267 251 268 252 ?> 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> 279 266 <?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> 288 276 <?php 289 277 … … 291 279 else 292 280 { 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 293 301 // 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(); 295 303 $forum_page['item_indicator'] = ''; 296 304 297 305 // 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 } 298 317 299 318 // Should we display the dot or not? :) 300 319 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>';303 320 $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>'; 307 328 308 329 $forum_page['item_pages'] = ceil(($search_set[$i]['num_replies'] + 1) / $forum_user['disp_posts']); 309 330 310 331 if ($forum_page['item_pages'] > 1) 311 $forum_page['item_nav']['pages'] = '<span>'.$lang_ forum['Pages'].' </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'].' </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']))); 312 333 313 334 // Does this topic contain posts we haven't read? If so, tag it accordingly. 314 335 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'])) 315 336 { 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>'; 317 338 $forum_page['item_status']['new'] = 'new'; 318 339 } … … 321 342 322 343 if (!empty($forum_page['item_nav'])) 323 $forum_page['item_title']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('  ', $forum_page['item_nav'])).'</span>'; 344 $forum_page['item_title']['nav'] = '<span class="item-nav">'.sprintf($lang_search['Topic navigation'], implode('  ', $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>'; 324 347 325 348 ($hook = get_hook('se_results_topics_row_pre_item_title_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 326 349 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
