Search Everything - Version 6.4

Version Description

Download this release

Release Info

Developer dancameron
Plugin Icon wp plugin Search Everything
Version 6.4
Comparing to
See all releases

Code changes from version 6.3.1 to 6.4

lang/se-ko_KR.mo.html ADDED
Binary file
lang/se-ko_KR.po.html ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Search Everything 6.3.1\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/search-everything\n"
5
+ "POT-Creation-Date: 2009-06-11 23:25+0000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Nod <contact@nod.pe.kr>\n"
8
+ "Language-Team: FantasyAmplifier.com <contact@nod.pe.kr>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1\n"
13
+ "X-Poedit-Language: Korean\n"
14
+ "X-Poedit-Country: KOREA, REPUBLIC OF\n"
15
+
16
+ #: views/options.php:54
17
+ #: views/options.php:61
18
+ msgid "Your default search settings have been <strong>updated</strong> by Search Everything. </p><p> What are you waiting for? Go check out the new search results!"
19
+ msgstr "워드프레스 기본 검색 설정이 Search Everything에 의해 <strong>수정</strong>되었습니다. </p><p>검색결과를 확인해보세요."
20
+
21
+ #: views/options.php:71
22
+ msgid "Search Everything Version:"
23
+ msgstr "SE 버전:"
24
+
25
+ #: views/options.php:76
26
+ #: views/options.php:278
27
+ msgid "Update Options"
28
+ msgstr "변경 사항 적용"
29
+
30
+ #: views/options.php:84
31
+ msgid "Basic Configuration"
32
+ msgstr "기본 환경설정"
33
+
34
+ #: views/options.php:90
35
+ msgid "Search every page"
36
+ msgstr "모든 페이지 검색"
37
+
38
+ #: views/options.php:90
39
+ msgid "(non-password protected)"
40
+ msgstr "비밀번호로 보호되지 않은 글"
41
+
42
+ #: views/options.php:94
43
+ #: views/options.php:105
44
+ #: views/options.php:118
45
+ #: views/options.php:132
46
+ #: views/options.php:143
47
+ #: views/options.php:153
48
+ #: views/options.php:163
49
+ #: views/options.php:173
50
+ #: views/options.php:186
51
+ #: views/options.php:197
52
+ #: views/options.php:207
53
+ #: views/options.php:217
54
+ #: views/options.php:227
55
+ msgid "Yes"
56
+ msgstr "네"
57
+
58
+ #: views/options.php:101
59
+ msgid "Search approved pages only"
60
+ msgstr "승인된 페이지만 검색"
61
+
62
+ #: views/options.php:114
63
+ msgid "Search every tag name"
64
+ msgstr "모든 태그 검색"
65
+
66
+ #: views/options.php:128
67
+ msgid "Search every category name and description"
68
+ msgstr "모든 카테고리 이름과 설명 검색"
69
+
70
+ #: views/options.php:139
71
+ msgid "Search every comment"
72
+ msgstr "모든 댓글 검색"
73
+
74
+ #: views/options.php:149
75
+ msgid "Search comment authors"
76
+ msgstr "댓글 작성자 이름 검색"
77
+
78
+ #: views/options.php:159
79
+ msgid "Search approved comments only"
80
+ msgstr "승인된 댓글만 검색"
81
+
82
+ #: views/options.php:169
83
+ msgid "Search every excerpt"
84
+ msgstr "모든 글 요약 검색"
85
+
86
+ #: views/options.php:182
87
+ msgid "Search every draft"
88
+ msgstr "모든 임시글 검색"
89
+
90
+ #: views/options.php:193
91
+ msgid "Search every attachment"
92
+ msgstr "모든 첨부파일 검색"
93
+
94
+ #: views/options.php:193
95
+ msgid "(post type = attachment)"
96
+ msgstr "(포스트 유형 = 첨부)"
97
+
98
+ #: views/options.php:203
99
+ msgid "Search every custom field"
100
+ msgstr "모든 사용자정의 필드 검색"
101
+
102
+ #: views/options.php:203
103
+ msgid "(metadata)"
104
+ msgstr "(메타정보)"
105
+
106
+ #: views/options.php:213
107
+ msgid "Search every author"
108
+ msgstr "모든 저자 이름 검색"
109
+
110
+ #: views/options.php:223
111
+ msgid "Highlight Search Terms"
112
+ msgstr "검색어 강조"
113
+
114
+ #: views/options.php:233
115
+ msgid "Highlight Background Color"
116
+ msgstr "배경색 강조"
117
+
118
+ #: views/options.php:236
119
+ msgid "Examples:<br/>'#FFF984' or 'red'"
120
+ msgstr "예:'#FFF984' 처럼 색상코드나 'red'처럼 색깔 이름을 입력해주세요."
121
+
122
+ #: views/options.php:246
123
+ msgid "Advanced Configuration - Exclusion"
124
+ msgstr "고급 설정 - 검섹 제외"
125
+
126
+ #: views/options.php:252
127
+ msgid "Exclude some post or page IDs"
128
+ msgstr "특정 포스트나 페이지 검색 제외"
129
+
130
+ #: views/options.php:255
131
+ msgid "Comma separated Post IDs (example: 1, 5, 9)"
132
+ msgstr "글 고유번호(ID)를 쉼표를 이용해 구분하세요. 예) 1, 7, 139"
133
+
134
+ #: views/options.php:259
135
+ msgid "Exclude Categories"
136
+ msgstr "카테고리 제외"
137
+
138
+ #: views/options.php:262
139
+ msgid "Comma separated category IDs (example: 1, 4)"
140
+ msgstr "카테고리 고유번호(ID)를 쉼표(,)를 이용해 구분해주세요. 예) 1, 203, 7"
141
+
142
+ #: views/options.php:266
143
+ msgid "Full Highlight Style"
144
+ msgstr "전체 스타일 강조"
145
+
146
+ #: views/options.php:268
147
+ msgid "Important: 'Highlight Background Color' must be blank to use this advanced styling."
148
+ msgstr "중요: 고급 스타일링 기능을 사용하기 위해서는 기본 환경설정의 검색어 강조의 배경색을 비워두셔야 됩니다."
149
+
150
+ #: views/options.php:270
151
+ msgid "Example:<br/>background-color: #FFF984; font-weight: bold; color: #000; padding: 0 1px;"
152
+ msgstr "예: background-color: #FFF984; font-weight: bold; color: #000; padding: 0 1px;"
153
+
154
+ #: views/options.php:283
155
+ msgid "Developed by Dan Cameron of"
156
+ msgstr "플러그인 개발: Dan Cameron "
157
+
158
+ #: views/options.php:283
159
+ msgid "Sprout Venture"
160
+ msgstr "(Sprout Venture)"
161
+
162
+ #: views/options.php:283
163
+ msgid "We Provide custom WordPress Plugins and Themes and a whole lot more."
164
+ msgstr "Sprout Venture에서는 많은 워드프레스 플러그인과 테마를 주문제작하고 있습니다."
165
+
166
+ #: views/options.php:287
167
+ msgid "Reset Button"
168
+ msgstr "설정 초기화"
169
+
170
+ #: views/options.php:295
171
+ msgid "Find a bug?"
172
+ msgstr "버그를 발견하셨어요?"
173
+
174
+ #: views/options.php:295
175
+ msgid "Post it as a new issue"
176
+ msgstr "글을 올려 주세요."
177
+
178
+ #: views/options.php:302
179
+ msgid "Test Search Form"
180
+ msgstr "SE 검색창"
181
+
182
+ #: views/options.php:309
183
+ msgid "Use this search form to run a live search test."
184
+ msgstr "아래 검색창을 이용해 시험 검색해보세요."
185
+
186
+ #: views/options.php:315
187
+ msgid "Run Test Search"
188
+ msgstr "검색"
189
+
190
+ #: views/options.php:326
191
+ msgid "News"
192
+ msgstr "소식"
193
+
194
+ #: views/options.php:327
195
+ msgid "Development Support"
196
+ msgstr "SE 개발 지원"
197
+
198
+ #: views/options.php:328
199
+ msgid "Localization Support"
200
+ msgstr "SE 지역화 지원"
201
+
202
+ #: views/options.php:334
203
+ msgid "LOCALIZATION SUPPORT:"
204
+ msgstr "SE 플러그인 지역화 지원:"
205
+
206
+ #: views/options.php:334
207
+ msgid "Version 6 was a major update and a few areas need new localization support. If you can help send me your translations by posting them as a new issue, "
208
+ msgstr "SE 6판에서는 중요한 업데이트가 있었으며 몇몇 지역에서는 플러그인 지역화(번역) 지원이 필요합니다. 만약 도움을 주실 수 있다면 번역하신 언어 파일을 새글을 작성해 첨부해주세요."
209
+
210
+ #: views/options.php:334
211
+ msgid "here"
212
+ msgstr "글을 올려주실 곳"
213
+
214
+ #: views/options.php:335
215
+ msgid "Thank You!"
216
+ msgstr "감사합니다!"
217
+
218
+ #: views/options.php:335
219
+ msgid "The development of Search Everything since Version one has primarily come from the WordPress community, I&#8217;m grateful for their dedicated and continued support."
220
+ msgstr "Search Everything은 1판부터 워드프레스 커뮤니티로부터 많은 도움을 받아 플러그인을 개발해오고 있습니다. 그 분들의 끊임 없는 지원과 노력에 감사합니다."
221
+
222
+ #: views/options.php:345
223
+ msgid "and many more..."
224
+ msgstr "더 많은 분들이 있습니다."
225
+
226
+ #: views/options.php:345
227
+ msgid "how about you?"
228
+ msgstr "도움을 주지 않으시겠어요?"
229
+
230
+ #. Plugin Name of an extension
231
+ msgid "Search Everything"
232
+ msgstr "Search Everything"
233
+
234
+ #. Plugin URI of an extension
235
+ msgid "https://redmine.sproutventure.com/projects/show/search-everything"
236
+ msgstr "https://redmine.sproutventure.com/projects/show/search-everything"
237
+
238
+ #. Description of an extension
239
+ msgid "Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content."
240
+ msgstr "템플릿 페이지를 수정하지 않고 검색 기능을 향상시켜줍니다."
241
+
242
+ #. Author of an extension
243
+ msgid "Dan Cameron of Sprout Venture"
244
+ msgstr "Sprout Ventur의 Dan Cameron"
245
+
246
+ #. Author URI of an extension
247
+ msgid "http://sproutventure.com/"
248
+ msgstr "http://sproutventure.com/"
249
+
250
+ #~ msgid "Search Everything Options <strong>Updated</strong>."
251
+ #~ msgstr "Search Everything 설정이 <strong>수정</strong>되었습니다."
252
+ #~ msgid "SE Search Options"
253
+ #~ msgstr "SE 검색 설정"
254
+ #~ msgid "Use this form to configure your search options."
255
+ #~ msgstr "검색 옵션을 설정하기 위해 이 폼을 사용하세요."
256
+ #~ msgid "Search Options Form"
257
+ #~ msgstr "검색 옵션 폼"
258
+ #~ msgid "Site Search"
259
+ #~ msgstr "사이트 검색"
260
+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dancameron, sproutventure, ericlebail
3
  Donate link: http://www.amazon.com/wishlist/3EM84J7FVHE6S
4
  Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter
5
  Requires at least: 2.1
6
- Tested up to: 2.8.5
7
- Stable tag: 6.3.1
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include search highlight, searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
@@ -37,6 +37,7 @@ Translations:
37
  * Hungarian
38
  * Italian
39
  * Japanese
 
40
  * Latvian
41
  * Norwegian (Bokmål)
42
  * Norwegian (Nynorsk)
@@ -49,6 +50,7 @@ Translations:
49
 
50
 
51
  Updates:
 
52
  * 6.3.1 - Major bug fix. Necessary upgrade for 6.3.
53
  * 6.3 - 2.8 issue for terms and categories. Highlight fixes. Language Updates: Romanian, Japan, Arabic
54
  * 6.2.5 - Bug fixed specifically for WordPress 2.8. More Translations.
@@ -56,6 +58,7 @@ Updates:
56
 
57
  == Update Log ==
58
 
 
59
  * 6.3 - 2.8 issue for terms and categories (Search every category name and description issue). Highlight fixes. Language Updates: Romanian, Japan, Arabic, Norwegian (Nynorsk)
60
  * 6.2.5 - Bug fixed specifically for WordPress 2.8. More Translations.
61
  * 6.2.2 - Post Exclusion fix. More translations.
3
  Donate link: http://www.amazon.com/wishlist/3EM84J7FVHE6S
4
  Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter
5
  Requires at least: 2.1
6
+ Tested up to: 2.9.3
7
+ Stable tag: 6.4
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include search highlight, searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
37
  * Hungarian
38
  * Italian
39
  * Japanese
40
+ * Korean
41
  * Latvian
42
  * Norwegian (Bokmål)
43
  * Norwegian (Nynorsk)
50
 
51
 
52
  Updates:
53
+ * 6.4 - Fixing comment search conflict with author searches.
54
  * 6.3.1 - Major bug fix. Necessary upgrade for 6.3.
55
  * 6.3 - 2.8 issue for terms and categories. Highlight fixes. Language Updates: Romanian, Japan, Arabic
56
  * 6.2.5 - Bug fixed specifically for WordPress 2.8. More Translations.
58
 
59
  == Update Log ==
60
 
61
+ * 6.4 - Fixing comment search conflict with author searches ( temporarily disabling author search ). More languages
62
  * 6.3 - 2.8 issue for terms and categories (Search every category name and description issue). Highlight fixes. Language Updates: Romanian, Japan, Arabic, Norwegian (Nynorsk)
63
  * 6.2.5 - Bug fixed specifically for WordPress 2.8. More Translations.
64
  * 6.2.2 - Post Exclusion fix. More translations.
search-everything.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Search Everything
4
  Plugin URI: https://redmine.sproutventure.com/projects/show/search-everything
5
  Description: Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
6
- Version: 6.3.1
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
@@ -31,7 +31,7 @@ $SE = new SearchEverything();
31
 
32
  Class SearchEverything {
33
 
34
- var $logging = false;
35
  var $options;
36
  var $wp_ver23;
37
  var $wp_ver25;
@@ -113,7 +113,7 @@ Class SearchEverything {
113
  $this->se_log("searching excluding categories");
114
  }
115
 
116
- if ("Yes" == $this->options['se_use_authors'])
117
  {
118
  add_filter('posts_where', array(&$this, 'se_search_authors'));
119
  add_filter('posts_join', array(&$this, 'se_search_authors_join'));
@@ -126,6 +126,8 @@ Class SearchEverything {
126
 
127
  add_filter('posts_request', array(&$this, 'se_distinct'));
128
 
 
 
129
  // Highlight content
130
  if("Yes" == $this->options['se_use_highlight'])
131
  {
@@ -224,6 +226,21 @@ Class SearchEverything {
224
  return $where;
225
  }
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  // Logs search into a file
228
  function se_log($msg)
229
  {
@@ -351,7 +368,7 @@ Class SearchEverything {
351
  $this->se_log("attachments where: ".$where);
352
  return $where;
353
  }
354
-
355
  // create the comments data query
356
  function se_build_search_comments()
357
  {
@@ -382,7 +399,7 @@ Class SearchEverything {
382
  }
383
  }
384
  $search = $searchContent;
385
- // Building search query on comments autor
386
  if($this->options['se_use_cmt_authors'] == 'Yes')
387
  {
388
  $searchand = '';
@@ -414,9 +431,53 @@ Class SearchEverything {
414
  $search = " OR ({$search}) ";
415
  }
416
  $this->se_log("comments where: ".$where);
 
417
  return $search;
418
  }
419
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
420
  // create the search meta data query
421
  function se_build_search_metadata()
422
  {
@@ -455,7 +516,7 @@ Class SearchEverything {
455
  $search = " OR ({$search}) ";
456
 
457
  }
458
- $this->se_log("meta where: ".$where);
459
  return $search;
460
  }
461
 
@@ -493,7 +554,7 @@ Class SearchEverything {
493
  if ( !empty($search) )
494
  $search = " OR ({$search}) ";
495
  }
496
- $this->se_log("tag where: ".$where);
497
  return $search;
498
  }
499
 
@@ -542,7 +603,7 @@ Class SearchEverything {
542
  if ( !empty($searchDesc) )
543
  $search = $search." OR ({$searchDesc}) ";
544
  }
545
- $this->se_log("categories where: ".$where);
546
  return $search;
547
  }
548
 
@@ -617,7 +678,7 @@ Class SearchEverything {
617
  {
618
  if ($this->wp_ver23)
619
  {
620
- $join .= " LEFT JOIN $wpdb->comments AS cmt ON ( cmt.comment_post_ID = ID ) ";
621
 
622
  } else {
623
 
@@ -636,19 +697,6 @@ Class SearchEverything {
636
  }
637
 
638
  //join for searching authors
639
- function se_search_authors($where)
640
- {
641
- global $wp_query, $wpdb;
642
-
643
- if (!empty($wp_query->query_vars['s']))
644
- {
645
- $or = " OR (u.user_nicename LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
646
- }
647
- $where = preg_replace("/\bor\b/i",$or." OR",$where,1);
648
- $this->se_log("user where: ".$where);
649
- return $where;
650
- }
651
-
652
 
653
  function se_search_authors_join($join)
654
  {
@@ -656,7 +704,7 @@ Class SearchEverything {
656
 
657
  if (!empty($wp_query->query_vars['s']))
658
  {
659
- $join .= " LEFT JOIN $wpdb->users AS u ON ($wpdb->posts.post_author = u.ID) ";
660
  }
661
  $this->se_log("authors join: ".$join);
662
  return $join;
3
  Plugin Name: Search Everything
4
  Plugin URI: https://redmine.sproutventure.com/projects/show/search-everything
5
  Description: Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
6
+ Version: 6.4
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
31
 
32
  Class SearchEverything {
33
 
34
+ var $logging = true;
35
  var $options;
36
  var $wp_ver23;
37
  var $wp_ver25;
113
  $this->se_log("searching excluding categories");
114
  }
115
 
116
+ if ("Yes" == $this->options['se_use_authors'] && !$this->wp_ver28)// Need some help getting this back into the mix
117
  {
118
  add_filter('posts_where', array(&$this, 'se_search_authors'));
119
  add_filter('posts_join', array(&$this, 'se_search_authors_join'));
126
 
127
  add_filter('posts_request', array(&$this, 'se_distinct'));
128
 
129
+ add_filter('posts_where', array(&$this, 'se_no_future'));
130
+
131
  // Highlight content
132
  if("Yes" == $this->options['se_use_highlight'])
133
  {
226
  return $where;
227
  }
228
 
229
+ // Exclude future posts fix provided by Mx
230
+ function se_no_future($where)
231
+ {
232
+ global $wp_query, $wpdb;
233
+ if (!empty($wp_query->query_vars['s']))
234
+ {
235
+ if(!$this->wp_ver28)
236
+ {
237
+ $where = 'AND (' . substr($where, strpos($where, 'AND')+3) . ") AND $wpdb->posts.post_status != 'future'";
238
+ }
239
+ $where = 'AND (' . substr($where, strpos($where, 'AND')+3) . ') AND post_status != \'future\'';
240
+ }
241
+ return $where;
242
+ }
243
+
244
  // Logs search into a file
245
  function se_log($msg)
246
  {
368
  $this->se_log("attachments where: ".$where);
369
  return $where;
370
  }
371
+
372
  // create the comments data query
373
  function se_build_search_comments()
374
  {
399
  }
400
  }
401
  $search = $searchContent;
402
+ // Building search query on comments author
403
  if($this->options['se_use_cmt_authors'] == 'Yes')
404
  {
405
  $searchand = '';
431
  $search = " OR ({$search}) ";
432
  }
433
  $this->se_log("comments where: ".$where);
434
+ $this->se_log("comments sql: ".$search);
435
  return $search;
436
  }
437
+
438
+ // Build the author search
439
+ function se_search_authors($where)
440
+ {
441
+ global $wp_query, $wpdb;
442
+ $s = $wp_query->query_vars['s'];
443
+ $search_terms = $this->se_get_search_terms();
444
+ $exact = $wp_query->query_vars['exact'];
445
+ $search = '';
446
+
447
+ if ( !empty($search_terms) ) {
448
+ // Building search query
449
+ $n = ($exact) ? '' : '%';
450
+ $searchand = '';
451
+ foreach($search_terms as $term) {
452
+ $term = addslashes_gpc($term);
453
+ if ($this->wp_ver23)
454
+ {
455
+ $search .= "{$searchand}(u.display_name LIKE '{$n}{$term}{$n}')";
456
+ } else {
457
+ $search .= "{$searchand}(u.display_name LIKE '{$n}{$term}{$n}')";
458
+ }
459
+ $searchand = ' AND ';
460
+ }
461
+ $sentence_term = $wpdb->escape($s);
462
+ if (!$sentence && count($search_terms) > 1 && $search_terms[0] != $sentence_term )
463
+ {
464
+ if ($this->wp_ver23)
465
+ {
466
+ $search = "($search) OR (u.display_name LIKE '{$n}{$sentence_term}{$n}')";
467
+ } else {
468
+ $search = "($search) OR (u.display_name LIKE '{$n}{$sentence_term}{$n}')";
469
+ }
470
+ }
471
+
472
+ if ( !empty($search) )
473
+ $search = " OR ({$search}) ";
474
+
475
+ }
476
+
477
+ $this->se_log("user where: ".$search);
478
+ return $search;
479
+ }
480
+
481
  // create the search meta data query
482
  function se_build_search_metadata()
483
  {
516
  $search = " OR ({$search}) ";
517
 
518
  }
519
+ $this->se_log("meta where: ".$search);
520
  return $search;
521
  }
522
 
554
  if ( !empty($search) )
555
  $search = " OR ({$search}) ";
556
  }
557
+ $this->se_log("tag where: ".$search);
558
  return $search;
559
  }
560
 
603
  if ( !empty($searchDesc) )
604
  $search = $search." OR ({$searchDesc}) ";
605
  }
606
+ $this->se_log("categories where: ".$search);
607
  return $search;
608
  }
609
 
678
  {
679
  if ($this->wp_ver23)
680
  {
681
+ $join .= " LEFT JOIN $wpdb->comments AS cmt ON ( cmt.comment_post_ID = $wpdb->posts.ID ) ";
682
 
683
  } else {
684
 
697
  }
698
 
699
  //join for searching authors
 
 
 
 
 
 
 
 
 
 
 
 
 
700
 
701
  function se_search_authors_join($join)
702
  {
704
 
705
  if (!empty($wp_query->query_vars['s']))
706
  {
707
+ $join .= " LEFT JOIN $wpdb->users AS u ON ($wpdb->posts.ID = u.ID) ";
708
  }
709
  $this->se_log("authors join: ".$join);
710
  return $join;
views/options.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  Class se_admin {
4
 
5
- var $version = '6.3.1';
6
 
7
  function se_admin() {
8
 
@@ -215,11 +215,13 @@ Class se_admin {
215
  <tr class="mainrow">
216
  <td class="titledesc"><?php _e('Search every author','SearchEverything'); ?>:</td>
217
  <td class="forminp">
 
218
  <select id="search_authors" name="search_authors">
219
  <option<?php if ($options['se_use_authors'] == 'No') { echo ' selected="selected"'; } ?> value="No">&nbsp;&nbsp;</option>
220
- <option<?php if ($options['se_use_authors'] == 'Yes') { echo ' selected="selected"'; } ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
221
  </select>
222
- <br/><small></small>
 
223
  </td>
224
  </tr>
225
  <tr class="mainrow">
@@ -350,6 +352,7 @@ Class se_admin {
350
  </td>
351
  <td>
352
  <ul class="SE_lists">
 
353
  <li><a href="http://www.r-sn.com/wp" target="blank">Anonymous (AR) - v.6</a></li>
354
  <li><a href="http://www.doctorley.pl" target="blank">Karol Manikowski (PL) - v.6</a></li>
355
  <li><a href="http://www.paulwicking.com" target="blank">Paul Wicking (NO)- v.6</a></li>
2
 
3
  Class se_admin {
4
 
5
+ var $version = '6.4';
6
 
7
  function se_admin() {
8
 
215
  <tr class="mainrow">
216
  <td class="titledesc"><?php _e('Search every author','SearchEverything'); ?>:</td>
217
  <td class="forminp">
218
+ <?php if ($wp_version <= '2.8'): ?>
219
  <select id="search_authors" name="search_authors">
220
  <option<?php if ($options['se_use_authors'] == 'No') { echo ' selected="selected"'; } ?> value="No">&nbsp;&nbsp;</option>
221
+ <option<?php if ($options['se_use_authors'] == 'Yes') { echo ' selected="selected"'; } ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
222
  </select>
223
+ <?php endif; ?>
224
+ <small><?php if ($wp_version >= '2.8') { _e('This is disabled for WP 2.8+. I\'d appreciate the help if you have a fix.', 'SearchEverything');} ?></small>
225
  </td>
226
  </tr>
227
  <tr class="mainrow">
352
  </td>
353
  <td>
354
  <ul class="SE_lists">
355
+ <li><a href="#" target="blank">minjae kim (KR) - v.6</a></li>
356
  <li><a href="http://www.r-sn.com/wp" target="blank">Anonymous (AR) - v.6</a></li>
357
  <li><a href="http://www.doctorley.pl" target="blank">Karol Manikowski (PL) - v.6</a></li>
358
  <li><a href="http://www.paulwicking.com" target="blank">Paul Wicking (NO)- v.6</a></li>