Search Everything - Version 6.1

Version Description

Download this release

Release Info

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

Code changes from version 6.0.1 to 6.1

lang/SE4.pot DELETED
@@ -1,110 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Search Everything\n"
4
- "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-11-15 20:36+0100\n"
6
- "Last-Translator: alohastone <alohastone@gmail.com>\n"
7
- "Language-Team: \n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=utf-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Poedit-KeywordsList: __;_e\n"
12
- "X-Poedit-Basepath: C:\\Dokumente und Einstellungen\\AlohaStone\\Eigene Dateien\\Eigene Websites\\ver 2.3\\wordpress\\wp-content\\plugins\\\n"
13
- "X-Poedit-SearchPath-0: search-everything\n"
14
-
15
- #: search-everything/SE-Admin.php:29
16
- msgid "Search Everything Options <strong>Updated</strong>."
17
- msgstr ""
18
-
19
- #: search-everything/SE-Admin.php:59
20
- msgid "The options selected below will be used in every search query on this site; in addition to the built-in post search."
21
- msgstr ""
22
-
23
- #: search-everything/SE-Admin.php:63
24
- msgid "SE Search Options"
25
- msgstr ""
26
-
27
- #: search-everything/SE-Admin.php:64
28
- msgid "Use this form to configure your search options."
29
- msgstr ""
30
-
31
- #: search-everything/SE-Admin.php:67
32
- msgid "Search Options Form"
33
- msgstr ""
34
-
35
- #: search-everything/SE-Admin.php:69
36
- msgid "Exclude some post or page IDs"
37
- msgstr ""
38
-
39
- #: search-everything/SE-Admin.php:70
40
- msgid "Comma separated Post IDs (example: 1, 5, 9)"
41
- msgstr ""
42
-
43
- #: search-everything/SE-Admin.php:75
44
- msgid "Exclude Categories"
45
- msgstr ""
46
-
47
- #: search-everything/SE-Admin.php:76
48
- msgid "Comma separated category IDs (example: 1, 4)"
49
- msgstr ""
50
-
51
- #: search-everything/SE-Admin.php:81
52
- msgid "Search every page (non-password protected)"
53
- msgstr ""
54
-
55
- #: search-everything/SE-Admin.php:83
56
- msgid "Search approved pages only?"
57
- msgstr ""
58
-
59
- #: search-everything/SE-Admin.php:89
60
- msgid "Search every tag"
61
- msgstr ""
62
-
63
- #: search-everything/SE-Admin.php:94
64
- msgid "Search every comment"
65
- msgstr ""
66
-
67
- #: search-everything/SE-Admin.php:97
68
- msgid "Search approved comments only?"
69
- msgstr ""
70
-
71
- #: search-everything/SE-Admin.php:100
72
- msgid "Search every excerpt"
73
- msgstr ""
74
-
75
- #: search-everything/SE-Admin.php:103
76
- msgid "Search every draft"
77
- msgstr ""
78
-
79
- #: search-everything/SE-Admin.php:106
80
- msgid "Search every attachment"
81
- msgstr ""
82
-
83
- #: search-everything/SE-Admin.php:109
84
- msgid "Search every custom field (metadata)"
85
- msgstr ""
86
-
87
- #: search-everything/SE-Admin.php:115
88
- msgid "Update Options"
89
- msgstr ""
90
-
91
- #: search-everything/SE-Admin.php:121
92
- msgid "SE Search Form"
93
- msgstr ""
94
-
95
- #: search-everything/SE-Admin.php:122
96
- msgid "Use this search form to run a live search test."
97
- msgstr ""
98
-
99
- #: search-everything/SE-Admin.php:125
100
- msgid "Site Search"
101
- msgstr ""
102
-
103
- #: search-everything/SE-Admin.php:127
104
- msgid "Enter search terms"
105
- msgstr ""
106
-
107
- #: search-everything/SE-Admin.php:129
108
- msgid "Run Test Search"
109
- msgstr ""
110
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/{SE4-de_DE.mo → se-de_DE.mo} RENAMED
File without changes
lang/{SE4-de_DE.po → se-de_DE.po} RENAMED
File without changes
lang/{SE4-es_ES.mo → se-es_ES.mo} RENAMED
File without changes
lang/{SE4-es_ES.po → se-es_ES.po} RENAMED
File without changes
lang/{SE4-fr_FR.mo → se-fr_FR.mo} RENAMED
File without changes
lang/{SE4-fr_FR.po → se-fr_FR.po} RENAMED
File without changes
lang/{SE4-hu_HU.mo → se-hu_HU.mo} RENAMED
File without changes
lang/{SE4-hu_HU.po → se-hu_HU.po} RENAMED
File without changes
lang/{SE4-it_IT.mo → se-it_IT.mo} RENAMED
File without changes
lang/{SE4-it_IT.po → se-it_IT.po} RENAMED
File without changes
lang/{SE4-ja.mo → se-ja.mo} RENAMED
File without changes
lang/{SE4-ja.po → se-ja.po} RENAMED
File without changes
lang/{SE4-nl.po → se-nl.po} RENAMED
File without changes
lang/{SE4-nl_NL.mo → se-nl_NL.mo} RENAMED
File without changes
lang/{SE4-ru_RU.mo → se-ru_RU.mo} RENAMED
File without changes
lang/{SE4-ru_RU.po → se-ru_RU.po} RENAMED
File without changes
lang/{SE4-sv_SE.mo → se-sv_SE.mo} RENAMED
File without changes
lang/{SE4-sv_SE.po → se-sv_SE.po} RENAMED
File without changes
lang/{SE4-tr_TR.mo → se-tr_TR.mo} RENAMED
File without changes
lang/{SE4-tr_TR.po → se-tr_TR.po} RENAMED
File without changes
lang/{SE4-zh_CN.mo → se-zh_CN.mo} RENAMED
File without changes
lang/{SE4-zh_CN.po → se-zh_CN.po} RENAMED
File without changes
lang/{SE4-zh_TW.mo → se-zh_TW.mo} RENAMED
File without changes
lang/{SE4-zh_TW.po → se-zh_TW.po} RENAMED
File without changes
lang/{SE4.mo → se.mo} RENAMED
File without changes
lang/se.pot ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR Dan Cameron of Sprout Venture
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/search-everything\n"
11
+ "POT-Creation-Date: 2009-05-26 18:05+0000\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=CHARSET\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: views/options.php:51
20
+ msgid ""
21
+ "Your default search settings have been <strong>updated</strong> by Search "
22
+ "Everything. </p><p> What are you waiting for? Go check out the new search "
23
+ "results!"
24
+ msgstr ""
25
+
26
+ #: views/options.php:68
27
+ msgid "Search Everything Version:"
28
+ msgstr ""
29
+
30
+ #: views/options.php:73 views/options.php:251
31
+ msgid "Update Options"
32
+ msgstr ""
33
+
34
+ #: views/options.php:81
35
+ msgid "Basic Configuration"
36
+ msgstr ""
37
+
38
+ #: views/options.php:87
39
+ msgid "Search every page"
40
+ msgstr ""
41
+
42
+ #: views/options.php:87
43
+ msgid "(non-password protected)"
44
+ msgstr ""
45
+
46
+ #: views/options.php:98
47
+ msgid "Search approved pages only"
48
+ msgstr ""
49
+
50
+ #: views/options.php:111
51
+ msgid "Search every tag name"
52
+ msgstr ""
53
+
54
+ #: views/options.php:125
55
+ msgid "Search every category name and description"
56
+ msgstr ""
57
+
58
+ #: views/options.php:136
59
+ msgid "Search every comment"
60
+ msgstr ""
61
+
62
+ #: views/options.php:146
63
+ msgid "Search comment authors"
64
+ msgstr ""
65
+
66
+ #: views/options.php:156
67
+ msgid "Search approved comments only"
68
+ msgstr ""
69
+
70
+ #: views/options.php:166
71
+ msgid "Search every excerpt"
72
+ msgstr ""
73
+
74
+ #: views/options.php:179
75
+ msgid "Search every draft"
76
+ msgstr ""
77
+
78
+ #: views/options.php:190
79
+ msgid "Search every attachment"
80
+ msgstr ""
81
+
82
+ #: views/options.php:200
83
+ msgid "Search every custom field"
84
+ msgstr ""
85
+
86
+ #: views/options.php:200
87
+ msgid "(metadata)"
88
+ msgstr ""
89
+
90
+ #: views/options.php:210
91
+ msgid "Search every author"
92
+ msgstr ""
93
+
94
+ #: views/options.php:226
95
+ msgid "Advanced Configuration - Exclusion"
96
+ msgstr ""
97
+
98
+ #: views/options.php:232
99
+ msgid "Exclude some post or page IDs"
100
+ msgstr ""
101
+
102
+ #: views/options.php:235
103
+ msgid "Comma separated Post IDs (example: 1, 5, 9)"
104
+ msgstr ""
105
+
106
+ #: views/options.php:239
107
+ msgid "Exclude Categories"
108
+ msgstr ""
109
+
110
+ #: views/options.php:242
111
+ msgid "Comma separated category IDs (example: 1, 4)"
112
+ msgstr ""
113
+
114
+ #: views/options.php:256
115
+ msgid "Developed by Dan Cameron of"
116
+ msgstr ""
117
+
118
+ #: views/options.php:256
119
+ msgid "Sprout Venture"
120
+ msgstr ""
121
+
122
+ #: views/options.php:256
123
+ msgid "We Provide custom WordPress Plugins and Themes and a whole lot more."
124
+ msgstr ""
125
+
126
+ #: views/options.php:268
127
+ msgid "Find a bug?"
128
+ msgstr ""
129
+
130
+ #: views/options.php:268
131
+ msgid "Post it as a new issue"
132
+ msgstr ""
133
+
134
+ #: views/options.php:275
135
+ msgid "Test Search Form"
136
+ msgstr ""
137
+
138
+ #: views/options.php:282
139
+ msgid "Use this search form to run a live search test."
140
+ msgstr ""
141
+
142
+ #: views/options.php:288
143
+ msgid "Run Test Search"
144
+ msgstr ""
145
+
146
+ #: views/options.php:299
147
+ msgid "News"
148
+ msgstr ""
149
+
150
+ #: views/options.php:300
151
+ msgid "Development Support"
152
+ msgstr ""
153
+
154
+ #: views/options.php:301
155
+ msgid "Localization Support"
156
+ msgstr ""
157
+
158
+ #: views/options.php:307
159
+ msgid "LOCALIZATION SUPPORT:"
160
+ msgstr ""
161
+
162
+ #: views/options.php:307
163
+ msgid ""
164
+ "Version 6 was a major update and a few areas need new localization support. "
165
+ "If you can help send me your translations by posting them as a new issue, "
166
+ msgstr ""
167
+
168
+ #: views/options.php:307
169
+ msgid "here"
170
+ msgstr ""
171
+
172
+ #: views/options.php:308
173
+ msgid "Thank You!"
174
+ msgstr ""
175
+
176
+ #: views/options.php:308
177
+ msgid ""
178
+ "The development of Search Everything since Version one has primarily come "
179
+ "from the WordPress community, I&#8217;m grateful for their dedicated and "
180
+ "continued support."
181
+ msgstr ""
182
+
183
+ #. Plugin Name of an extension
184
+ msgid "Search Everything"
185
+ msgstr ""
186
+
187
+ #. Plugin URI of an extension
188
+ msgid "https://redmine.sproutventure.com/projects/show/search-everything"
189
+ msgstr ""
190
+
191
+ #. Description of an extension
192
+ msgid ""
193
+ "Adds search functionality without modifying template pages: Activate, "
194
+ "Configure and Search. Options Include: search pages, excerpts, attachments, "
195
+ "drafts, comments, tags and custom fields (metadata). Also offers the ability "
196
+ "to exclude specific pages and posts. Does not search password-protected "
197
+ "content."
198
+ msgstr ""
199
+
200
+ #. Author of an extension
201
+ msgid "Dan Cameron of Sprout Venture"
202
+ msgstr ""
203
+
204
+ #. Author URI of an extension
205
+ msgid "http://sproutventure.com/"
206
+ msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.amazon.com/wishlist/3EM84J7FVHE6S
4
  Tags: search, tag search, category search, category exclusion, comment search, page search, admin, seo
5
  Requires at least: 2.1
6
  Tested up to: 2.8
7
- Stable tag: 6.0.1
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
@@ -27,6 +27,7 @@ Search Everything increases the ability of the default Wordpress Search, options
27
 
28
  == Update Log ==
29
 
 
30
  *6 - New Options Panel!!, Multi-Word fix! #44, Exclude Bug Fix, Admin search fix.
31
  *5 - Bug Release, Extend Author Search to comments (props to Joshua Bettigole), Tag Fix, Meta Fix
32
  *4.7.7 - New conditions to fix plugin from breaking with certain option selections. props Matias Gertel
4
  Tags: search, tag search, category search, category exclusion, comment search, page search, admin, seo
5
  Requires at least: 2.1
6
  Tested up to: 2.8
7
+ Stable tag: 6.1
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
27
 
28
  == Update Log ==
29
 
30
+ *6.1 - New search comment author selection, Misc. bug fixes from v.6 release and updated Localization support.
31
  *6 - New Options Panel!!, Multi-Word fix! #44, Exclude Bug Fix, Admin search fix.
32
  *5 - Bug Release, Extend Author Search to comments (props to Joshua Bettigole), Tag Fix, Meta Fix
33
  *4.7.7 - New conditions to fix plugin from breaking with certain option selections. props Matias Gertel
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 template pages: Activate, Configure and Search. Options Include: 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.0.1
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
@@ -252,7 +252,7 @@ trim($this->options['se_exclude_posts_list'])));
252
  {
253
 
254
  $where = str_replace('"', '\'', $where);
255
- if ('true' == $this->options['se_approved_pages_only'])
256
  {
257
  $where = str_replace('post_type = \'post\' AND ', 'post_password = \'\' AND ', $where);
258
  } else { // < v 2.1
@@ -327,20 +327,25 @@ trim($this->options['se_exclude_posts_list'])));
327
  global $wp_query, $wpdb;
328
  if (!empty($wp_query->query_vars['s']))
329
  {
330
- if ('true' == $this->options['se_approved_comments_only'])
331
  {
332
  $comment_approved = " AND c.comment_approved = '1'";
333
  } else {
334
  $comment_approved = '';
335
  }
336
 
337
- if($this->options['se_use_authors'] == 'true')
338
  {
339
- $comment_author = " OR c.comment_author LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%' ";
 
 
 
 
 
340
  }
341
 
342
  if ($this->wp_ver23) {
343
- $where .= " OR ( c.comment_post_ID = ".$wpdb->posts . ".ID " . $comment_approved . " AND c.comment_content LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
344
 
345
 
346
  }
@@ -439,24 +444,42 @@ trim($this->options['se_exclude_posts_list'])));
439
  $exact = $wp_query->query_vars['exact'];
440
  $search = '';
441
 
442
- if ( !empty($search_terms) )
443
  {
444
- // Building search query
445
  $n = ($exact) ? '' : '%';
446
  $searchand = '';
447
- foreach($search_terms as $term)
 
448
  {
449
  $term = addslashes_gpc($term);
450
- $search .= "{$searchand}(tter.slug LIKE '{$n}".sanitize_title_with_dashes($term)."{$n}')";
451
  $searchand = ' AND ';
452
  }
453
  $term = $wpdb->escape($s);
454
  if (!$sentence && count($search_terms) > 1 && $search_terms[0] != $s )
455
  {
456
- $search = "($search) OR (tter.slug LIKE '{$n}".sanitize_title_with_dashes($s)."{$n}')";
457
  }
458
- if ( !empty($search) )
459
- $search = " OR ({$search}) ";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
  }
461
  $this->se_log("categories where: ".$where);
462
  return $search;
@@ -511,11 +534,11 @@ trim($this->options['se_exclude_posts_list'])));
511
  {
512
  if ($this->wp_ver23)
513
  {
514
- $join .= " LEFT JOIN $wpdb->comments AS c ON ( comment_post_ID = ID " . $comment_approved . ") ";
515
 
516
  } else {
517
 
518
- if ('true' == $this->options['se_approved_comments_only'])
519
  {
520
  $comment_approved = " AND comment_approved = '1'";
521
  } else {
3
  Plugin Name: Search Everything
4
  Plugin URI: https://redmine.sproutventure.com/projects/show/search-everything
5
  Description: Adds search functionality without modifying template pages: Activate, Configure and Search. Options Include: 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.1
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
252
  {
253
 
254
  $where = str_replace('"', '\'', $where);
255
+ if ('Yes' == $this->options['se_approved_pages_only'])
256
  {
257
  $where = str_replace('post_type = \'post\' AND ', 'post_password = \'\' AND ', $where);
258
  } else { // < v 2.1
327
  global $wp_query, $wpdb;
328
  if (!empty($wp_query->query_vars['s']))
329
  {
330
+ if ('Yes' == $this->options['se_approved_comments_only'])
331
  {
332
  $comment_approved = " AND c.comment_approved = '1'";
333
  } else {
334
  $comment_approved = '';
335
  }
336
 
337
+ if($this->options['se_use_authors'] == 'Yes')
338
  {
339
+ $comment_author = " OR cmt.comment_author LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%' ";
340
+ }
341
+
342
+ else
343
+ {
344
+ $comment_author = '';
345
  }
346
 
347
  if ($this->wp_ver23) {
348
+ $where .= " OR (( cmt.comment_content LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%'".$comment_author.")".$comment_approved.")";
349
 
350
 
351
  }
444
  $exact = $wp_query->query_vars['exact'];
445
  $search = '';
446
 
447
+ if ( !empty($search_terms) )
448
  {
449
+ // Building search query for categories slug.
450
  $n = ($exact) ? '' : '%';
451
  $searchand = '';
452
+ $searchSlug = '';
453
+ foreach($search_terms as $term)
454
  {
455
  $term = addslashes_gpc($term);
456
+ $searchSlug .= "{$searchand}(tter.slug LIKE '{$n}".sanitize_title_with_dashes($term)."{$n}')";
457
  $searchand = ' AND ';
458
  }
459
  $term = $wpdb->escape($s);
460
  if (!$sentence && count($search_terms) > 1 && $search_terms[0] != $s )
461
  {
462
+ $searchSlug = "($searchSlug) OR (tter.slug LIKE '{$n}".sanitize_title_with_dashes($s)."{$n}')";
463
  }
464
+ if ( !empty($searchSlug) )
465
+ $search = " OR ({$searchSlug}) ";
466
+
467
+ // Building search query for categories description.
468
+ $searchand = '';
469
+ $searchDesc = '';
470
+ foreach($search_terms as $term)
471
+ {
472
+ $term = addslashes_gpc($term);
473
+ $searchDesc .= "{$searchand}(ttax.description LIKE '{$n}{$term}{$n}')";
474
+ $searchand = ' AND ';
475
+ }
476
+ $term = $wpdb->escape($s);
477
+ if (!$sentence && count($search_terms) > 1 && $search_terms[0] != $s )
478
+ {
479
+ $searchDesc = "($searchDesc) OR (ttax.description LIKE '{$n}{$s}{$n}')";
480
+ }
481
+ if ( !empty($searchDesc) )
482
+ $search = $search." OR ({$searchDesc}) ";
483
  }
484
  $this->se_log("categories where: ".$where);
485
  return $search;
534
  {
535
  if ($this->wp_ver23)
536
  {
537
+ $join .= " LEFT JOIN $wpdb->comments AS cmt ON ( cmt.comment_post_ID = ID ) ";
538
 
539
  } else {
540
 
541
+ if ('Yes' == $this->options['se_approved_comments_only'])
542
  {
543
  $comment_approved = " AND comment_approved = '1'";
544
  } else {
views/options.php CHANGED
@@ -2,14 +2,14 @@
2
 
3
  Class se_admin {
4
 
5
- var $version = '6.0.1';
6
 
7
  function se_admin() {
8
 
9
  // Load language file
10
  $locale = get_locale();
11
  if ( !empty($locale) )
12
- load_textdomain('SearchEverything', SE_ABSPATH .'lang/SE4-'.$locale.'.mo');
13
 
14
 
15
  add_action('admin_head', array(&$this, 'se_options_style'));
@@ -27,20 +27,21 @@ Class se_admin {
27
  global $wpdb, $table_prefix, $wp_version;
28
 
29
  $new_options = array(
30
- 'se_exclude_categories' => $_POST["exclude_categories"],
31
  'se_exclude_categories_list' => $_POST["exclude_categories_list"],
32
  'se_exclude_posts' => $_POST["exclude_posts"],
33
- 'se_exclude_posts_list' => $_POST["exclude_posts_list"],
34
  'se_use_page_search' => $_POST["search_pages"],
35
- 'se_use_comment_search' => $_POST["search_comments"],
36
- 'se_use_tag_search' => $_POST["search_tags"],
37
  'se_use_category_search' => $_POST["search_categories"],
38
- 'se_approved_comments_only' => $_POST["appvd_comments"],
39
  'se_approved_pages_only' => $_POST["appvd_pages"],
40
- 'se_use_excerpt_search' => $_POST["search_excerpt"],
41
  'se_use_draft_search' => $_POST["search_drafts"],
42
  'se_use_attachment_search' => $_POST["search_attachments"],
43
- 'se_use_authors' => $_POST['search_authors'],
 
44
  'se_use_metadata_search' => $_POST["search_metadata"]
45
 
46
  );
@@ -120,8 +121,8 @@ Class se_admin {
120
  <?php
121
  // Show categories only for WP 2.5+
122
  if ($wp_version >= '2.5') : ?>
123
- <tr class="mainrow">
124
- <td class="titledesc"><?php _e('Search every category name','SearchEverything'); ?>:</td>
125
  <td class="forminp">
126
  <select id="search_categories" name="search_categories">
127
  <option<?php if ($options['se_use_category_search'] == 'No') { echo ' selected="selected"'; } ?>>&nbsp;&nbsp;</option>
@@ -140,6 +141,16 @@ Class se_admin {
140
  </select>
141
  <br/><small></small>
142
  </td>
 
 
 
 
 
 
 
 
 
 
143
  </tr>
144
  <tr class="mainrow">
145
  <td class="titledesc">&nbsp;&nbsp;&nbsp;<?php _e('Search approved comments only','SearchEverything'); ?>:</td>
@@ -178,7 +189,7 @@ Class se_admin {
178
  <tr class="mainrow">
179
  <td class="titledesc"><?php _e('Search every attachment','SearchEverything'); ?>:</td>
180
  <td class="forminp">
181
- <select id="search_authors" name="search_authors">
182
  <option<?php if ($options['se_use_attachment_search'] == 'No') { echo ' selected="selected"'; } ?>>&nbsp;&nbsp;</option>
183
  <option<?php if ($options['se_use_attachment_search'] == 'Yes') { echo ' selected="selected"'; } ?>>Yes</option>
184
  </select>
@@ -205,6 +216,7 @@ Class se_admin {
205
  <br/><small></small>
206
  </td>
207
  </tr>
 
208
  </table>
209
  <table style="margin-bottom: 20px;"></table>
210
 
@@ -241,7 +253,7 @@ Class se_admin {
241
  </form>
242
 
243
  <div class="info">
244
- <div style="float: left; padding-top:4px;"><?php _e('Developed by Dan Cameron of') ?> <a href="http://sproutventure.com" title="custom WordPress development"><?php _e('Sprout Venture') ?></a>. <?php _e('We Provide custom WordPress Plugins and Themes and a whole lot more.', 'SearchEverything') ?>
245
  </div>
246
  <div style="float: right; margin:0; padding:0; " class="submit">
247
  <form method="post">
@@ -253,7 +265,7 @@ Class se_admin {
253
 
254
  <div style="clear: both;"></div>
255
 
256
- <small><?php _e('Find a bug?') ?> <a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank"><?php _e('Post it as a new issue','SearchEverything')?></a>.</small>
257
  </div>
258
 
259
  <table style="margin-bottom: 20px;"></table>
@@ -284,7 +296,7 @@ Class se_admin {
284
  <table class="widefat">
285
  <thead>
286
  <tr class="title">
287
- <th scope="col" class="manage-column"><?php _e('Thank You!') ?></th>
288
  <th scope="col" class="manage-column"><?php _e('Development Support') ?></th>
289
  <th scope="col" class="manage-column"><?php _e('Localization Support') ?></th>
290
  </tr>
@@ -292,12 +304,12 @@ Class se_admin {
292
 
293
  <tr class="mainrow">
294
  <td class="thanks">
295
- <p><?php _e('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.') ?></p>
 
296
  </td>
297
  <td>
298
  <ul class="SE_lists">
299
- <li><a href="#">Gary Traffanstedt</a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#43</a>)</li>
300
- <li><a href="#">Eric Le Bail</a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#44 and #60</a>)</li>
301
  <li><a href="#">Gary Traffanstedt</a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#43</a>)</li>
302
  <li><a href="http://codium.co.nz" target="blank">Matias Gertel</a></li>
303
  <li><a href="http://striderweb.com/" target="blank">Stephen Rider</a></li>
@@ -309,7 +321,6 @@ Class se_admin {
309
  <td>
310
  <ul class="SE_lists">
311
  <li><a href="#">hit1205 (CN and TW)</a></li>
312
- <li><a href="#">Silver Ghost (RU)</a></li>
313
  <li><a href="http://beyn.org/" target="blank">Barış Ünver (FR)</a></li>
314
  <li><a href="http://www.alohastone.com" target="blank">alohastone (DE)</a></li>
315
  <li><a href="http://gidibao.net/" target="blank">Gianni Diurno (ES)</a></li>
2
 
3
  Class se_admin {
4
 
5
+ var $version = '6.1';
6
 
7
  function se_admin() {
8
 
9
  // Load language file
10
  $locale = get_locale();
11
  if ( !empty($locale) )
12
+ load_textdomain('SearchEverything', SE_ABSPATH .'lang/se-'.$locale.'.mo');
13
 
14
 
15
  add_action('admin_head', array(&$this, 'se_options_style'));
27
  global $wpdb, $table_prefix, $wp_version;
28
 
29
  $new_options = array(
30
+ 'se_exclude_categories' => $_POST["exclude_categories"],
31
  'se_exclude_categories_list' => $_POST["exclude_categories_list"],
32
  'se_exclude_posts' => $_POST["exclude_posts"],
33
+ 'se_exclude_posts_list' => $_POST["exclude_posts_list"],
34
  'se_use_page_search' => $_POST["search_pages"],
35
+ 'se_use_comment_search' => $_POST["search_comments"],
36
+ 'se_use_tag_search' => $_POST["search_tags"],
37
  'se_use_category_search' => $_POST["search_categories"],
38
+ 'se_approved_comments_only' => $_POST["appvd_comments"],
39
  'se_approved_pages_only' => $_POST["appvd_pages"],
40
+ 'se_use_excerpt_search' => $_POST["search_excerpt"],
41
  'se_use_draft_search' => $_POST["search_drafts"],
42
  'se_use_attachment_search' => $_POST["search_attachments"],
43
+ 'se_use_authors' => $_POST["search_authors"],
44
+ 'se_use_cmt_authors' => $_POST["search_cmt_authors"],
45
  'se_use_metadata_search' => $_POST["search_metadata"]
46
 
47
  );
121
  <?php
122
  // Show categories only for WP 2.5+
123
  if ($wp_version >= '2.5') : ?>
124
+ <tr class="mainrow">
125
+ <td class="titledesc"><?php _e('Search every category name and description','SearchEverything'); ?>:</td>
126
  <td class="forminp">
127
  <select id="search_categories" name="search_categories">
128
  <option<?php if ($options['se_use_category_search'] == 'No') { echo ' selected="selected"'; } ?>>&nbsp;&nbsp;</option>
141
  </select>
142
  <br/><small></small>
143
  </td>
144
+ </tr>
145
+ <tr class="mainrow">
146
+ <td class="titledesc">&nbsp;&nbsp;&nbsp;<?php _e('Search comment authors','SearchEverything'); ?>:</td>
147
+ <td class="forminp">
148
+ <select id="search_cmt_authors" name="search_cmt_authors">
149
+ <option<?php if ($options['se_use_cmt_authors'] == 'No') { echo ' selected="selected"'; } ?>>&nbsp;&nbsp;</option>
150
+ <option<?php if ($options['se_use_cmt_authors'] == 'Yes') { echo ' selected="selected"'; } ?>>Yes</option>
151
+ </select>
152
+ <br/><small></small>
153
+ </td>
154
  </tr>
155
  <tr class="mainrow">
156
  <td class="titledesc">&nbsp;&nbsp;&nbsp;<?php _e('Search approved comments only','SearchEverything'); ?>:</td>
189
  <tr class="mainrow">
190
  <td class="titledesc"><?php _e('Search every attachment','SearchEverything'); ?>:</td>
191
  <td class="forminp">
192
+ <select id="search_attachments" name="search_attachments">
193
  <option<?php if ($options['se_use_attachment_search'] == 'No') { echo ' selected="selected"'; } ?>>&nbsp;&nbsp;</option>
194
  <option<?php if ($options['se_use_attachment_search'] == 'Yes') { echo ' selected="selected"'; } ?>>Yes</option>
195
  </select>
216
  <br/><small></small>
217
  </td>
218
  </tr>
219
+
220
  </table>
221
  <table style="margin-bottom: 20px;"></table>
222
 
253
  </form>
254
 
255
  <div class="info">
256
+ <div style="float: left; padding-top:4px;"><?php _e('Developed by Dan Cameron of') ?> <a href="http://sproutventure.com?search-everything" title="Custom WordPress Development"><?php _e('Sprout Venture') ?></a>. <?php _e('We Provide custom WordPress Plugins and Themes and a whole lot more.', 'SearchEverything') ?>
257
  </div>
258
  <div style="float: right; margin:0; padding:0; " class="submit">
259
  <form method="post">
265
 
266
  <div style="clear: both;"></div>
267
 
268
+ <small><?php _e('Find a bug?') ?> <a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank"><?php _e('Post it as a new issue','SearchEverything')?></a>.</small>
269
  </div>
270
 
271
  <table style="margin-bottom: 20px;"></table>
296
  <table class="widefat">
297
  <thead>
298
  <tr class="title">
299
+ <th scope="col" class="manage-column"><?php _e('News') ?></th>
300
  <th scope="col" class="manage-column"><?php _e('Development Support') ?></th>
301
  <th scope="col" class="manage-column"><?php _e('Localization Support') ?></th>
302
  </tr>
304
 
305
  <tr class="mainrow">
306
  <td class="thanks">
307
+ <p><strong><?php _e('LOCALIZATION SUPPORT:') ?></strong><br/><?php _e('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, ') ?><a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank"><strong><?php _e('here','SearchEverything')?></strong></a>.</p>
308
+ <p><strong><?php _e('Thank You!') ?></strong><br/><?php _e('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.') ?></p>
309
  </td>
310
  <td>
311
  <ul class="SE_lists">
312
+ <li><a href="#"><strong>EricLe Bail</strong></a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#272, #49, #44 and #60</a>)</li>
 
313
  <li><a href="#">Gary Traffanstedt</a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#43</a>)</li>
314
  <li><a href="http://codium.co.nz" target="blank">Matias Gertel</a></li>
315
  <li><a href="http://striderweb.com/" target="blank">Stephen Rider</a></li>
321
  <td>
322
  <ul class="SE_lists">
323
  <li><a href="#">hit1205 (CN and TW)</a></li>
 
324
  <li><a href="http://beyn.org/" target="blank">Barış Ünver (FR)</a></li>
325
  <li><a href="http://www.alohastone.com" target="blank">alohastone (DE)</a></li>
326
  <li><a href="http://gidibao.net/" target="blank">Gianni Diurno (ES)</a></li>