Search Everything - Version 6.5

Version Description

Download this release

Release Info

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

Code changes from version 6.4.1 to 6.5

Files changed (5) hide show
  1. lang/se-de_DE.mo +0 -0
  2. lang/se-de_DE.po +280 -107
  3. readme.txt +40 -29
  4. search-everything.php +21 -7
  5. views/options.php +17 -2
lang/se-de_DE.mo CHANGED
Binary file
lang/se-de_DE.po CHANGED
@@ -1,107 +1,280 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: \n"
4
- "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-11-15 20:55+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
-
12
- #: search-everything/SE-Admin.php:29
13
- msgid "Search Everything Options <strong>Updated</strong>."
14
- msgstr "Search Everything Einstellungen <strong>aktualisiert</strong>."
15
-
16
- #: search-everything/SE-Admin.php:59
17
- msgid "The options selected below will be used in every search query on this site; in addition to the built-in post search."
18
- msgstr "Die folgenden Einstellungen werden in jeder Suchanfrage auf dieser Site verwendet; zusätzlich zu der integrierten Beitragssuche."
19
-
20
- #: search-everything/SE-Admin.php:63
21
- msgid "SE Search Options"
22
- msgstr "SE Such-Einstellungen"
23
-
24
- #: search-everything/SE-Admin.php:64
25
- msgid "Use this form to configure your search options."
26
- msgstr "Benutze dieses Formular um SE zu konfigurieren."
27
-
28
- #: search-everything/SE-Admin.php:67
29
- msgid "Search Options Form"
30
- msgstr "Formular für die Such-Einstellungen"
31
-
32
- #: search-everything/SE-Admin.php:69
33
- msgid "Exclude some post or page IDs"
34
- msgstr "Beitrags- oder Seiten-IDs ausschließen"
35
-
36
- #: search-everything/SE-Admin.php:70
37
- msgid "Comma separated Post IDs (example: 1, 5, 9)"
38
- msgstr "Durch Komma getrennte Beitrags-IDs (Beispiel: 1, 5, 9)"
39
-
40
- #: search-everything/SE-Admin.php:75
41
- msgid "Exclude Categories"
42
- msgstr "Kategorien ausschließen"
43
-
44
- #: search-everything/SE-Admin.php:76
45
- msgid "Comma separated category IDs (example: 1, 4)"
46
- msgstr "Durch Komma getrennte Kategorie-IDs (Beispiel: 1, 4)"
47
-
48
- #: search-everything/SE-Admin.php:81
49
- msgid "Search every page (non-password protected)"
50
- msgstr "Durchsuche jede Seite (nicht passwortgeschützt)"
51
-
52
- #: search-everything/SE-Admin.php:83
53
- msgid "Search approved pages only?"
54
- msgstr "Nur freigegebene Seiten durchsuchen?"
55
-
56
- #: search-everything/SE-Admin.php:89
57
- msgid "Search every tag"
58
- msgstr "Durchsuche jeden Tag"
59
-
60
- #: search-everything/SE-Admin.php:94
61
- msgid "Search every comment"
62
- msgstr "Durchsuche jeden Kommentar"
63
-
64
- #: search-everything/SE-Admin.php:97
65
- msgid "Search approved comments only?"
66
- msgstr "Nur freigegebene Kommentare durchsuchen?"
67
-
68
- #: search-everything/SE-Admin.php:100
69
- msgid "Search every excerpt"
70
- msgstr "Durchsuche jede Kurzfassung"
71
-
72
- #: search-everything/SE-Admin.php:103
73
- msgid "Search every draft"
74
- msgstr "Durchsuche jeden Entwurf"
75
-
76
- #: search-everything/SE-Admin.php:106
77
- msgid "Search every attachment"
78
- msgstr "Durchsuche jeden Dateianhang"
79
-
80
- #: search-everything/SE-Admin.php:109
81
- msgid "Search every custom field (metadata)"
82
- msgstr "Durchsuche jedes benutzerdefinierte Feld (Metadaten)"
83
-
84
- #: search-everything/SE-Admin.php:115
85
- msgid "Update Options"
86
- msgstr "Einstellungen speichern"
87
-
88
- #: search-everything/SE-Admin.php:121
89
- msgid "SE Search Form"
90
- msgstr "SE Suchfeld"
91
-
92
- #: search-everything/SE-Admin.php:122
93
- msgid "Use this search form to run a live search test."
94
- msgstr "Mit diesem Suchfeld kannst du SE testen."
95
-
96
- #: search-everything/SE-Admin.php:125
97
- msgid "Site Search"
98
- msgstr "Site Suche"
99
-
100
- #: search-everything/SE-Admin.php:127
101
- msgid "Enter search terms"
102
- msgstr "Suchbegriffe eingeben"
103
-
104
- #: search-everything/SE-Admin.php:129
105
- msgid "Run Test Search"
106
- msgstr "Testsuche starten"
107
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Search Everything v6.3.1\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2009-10-30 16:00+0100\n"
7
+ "Last-Translator: admin <administration@terrarienpflanzen-lexikon.de>\n"
8
+ "Language-Team: \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: German\n"
14
+ "X-Poedit-Country: GERMANY\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: views/options.php:54
23
+ #: views/options.php:61
24
+ #@ SearchEverything
25
+ 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!"
26
+ msgstr "Ihre Einstellungen für Search Everything wurden <strong>aktualisiert.</strong> </p><p> Was wartest du noch? Teste die neuen Suchergebnisse!"
27
+
28
+ #: views/options.php:71
29
+ #@ SearchEverything
30
+ msgid "Search Everything Version:"
31
+ msgstr "Search Everything Version:"
32
+
33
+ #: views/options.php:76
34
+ #: views/options.php:281
35
+ #@ SearchEverything
36
+ msgid "Update Options"
37
+ msgstr "Einstellungen aktualisieren"
38
+
39
+ #: views/options.php:84
40
+ #@ SearchEverything
41
+ msgid "Basic Configuration"
42
+ msgstr "Grundkonfiguration"
43
+
44
+ #: views/options.php:92
45
+ #@ SearchEverything
46
+ msgid "Search every page"
47
+ msgstr "Durchsuche jede Seite"
48
+
49
+ #: views/options.php:96
50
+ #: views/options.php:107
51
+ #: views/options.php:121
52
+ #: views/options.php:135
53
+ #: views/options.php:146
54
+ #: views/options.php:156
55
+ #: views/options.php:166
56
+ #: views/options.php:176
57
+ #: views/options.php:189
58
+ #: views/options.php:200
59
+ #: views/options.php:210
60
+ #: views/options.php:220
61
+ #: views/options.php:230
62
+ #@ SearchEverything
63
+ msgid "Yes"
64
+ msgstr "Ja"
65
+
66
+ #: views/options.php:103
67
+ #@ SearchEverything
68
+ msgid "Search approved pages only"
69
+ msgstr "Durchsuche nur veröffentlichte Seiten"
70
+
71
+ #: views/options.php:117
72
+ #@ SearchEverything
73
+ msgid "Search every tag name"
74
+ msgstr "Durchsuche alle Tag-Namen"
75
+
76
+ #: views/options.php:131
77
+ #@ SearchEverything
78
+ msgid "Search every category name and description"
79
+ msgstr "Durchsuche alle Kategorie-Namen und Beschreibungen"
80
+
81
+ #: views/options.php:142
82
+ #@ SearchEverything
83
+ msgid "Search every comment"
84
+ msgstr "Durchsuche jeden Kommentar"
85
+
86
+ #: views/options.php:152
87
+ #@ SearchEverything
88
+ msgid "Search comment authors"
89
+ msgstr "Durchsuche Kommentar-Autoren"
90
+
91
+ #: views/options.php:162
92
+ #@ SearchEverything
93
+ msgid "Search approved comments only"
94
+ msgstr "Durchsuche nur genehmigte Kommentare"
95
+
96
+ #: views/options.php:172
97
+ #@ SearchEverything
98
+ msgid "Search every excerpt"
99
+ msgstr "Durchsuche jeden Auszug"
100
+
101
+ #: views/options.php:185
102
+ #@ SearchEverything
103
+ msgid "Search every draft"
104
+ msgstr "Durchsuche jeden Entwurf"
105
+
106
+ #: views/options.php:196
107
+ #@ SearchEverything
108
+ msgid "Search every attachment"
109
+ msgstr "Durchsuche alle Anhänge"
110
+
111
+ #: views/options.php:196
112
+ #@ SearchEverything
113
+ msgid "(post type = attachment)"
114
+ msgstr "(Artikel-Typ = Anhang)"
115
+
116
+ #: views/options.php:206
117
+ #@ SearchEverything
118
+ msgid "Search every custom field"
119
+ msgstr "Durchsuche alle benutzerdefinierten Felder"
120
+
121
+ #: views/options.php:206
122
+ #@ SearchEverything
123
+ msgid "(metadata)"
124
+ msgstr "(Metadaten)"
125
+
126
+ #: views/options.php:216
127
+ #@ SearchEverything
128
+ msgid "Search every author"
129
+ msgstr "Durchsuche alle Autoren"
130
+
131
+ #: views/options.php:226
132
+ #@ SearchEverything
133
+ msgid "Highlight Search Terms"
134
+ msgstr "Hebe Suchbegriffe hervor"
135
+
136
+ #: views/options.php:236
137
+ #@ SearchEverything
138
+ msgid "Highlight Background Color"
139
+ msgstr "Highlight Hintergrundfarbe"
140
+
141
+ #: views/options.php:239
142
+ #@ SearchEverything
143
+ msgid "Examples:<br/>'#FFF984' or 'red\\"
144
+ msgstr "Beispiele:<br/>'#FFF984' oder 'red\\"
145
+
146
+ #: views/options.php:249
147
+ #@ SearchEverything
148
+ msgid "Advanced Configuration - Exclusion"
149
+ msgstr "Erweiterte Konfiguration - Ausschlüsse"
150
+
151
+ #: views/options.php:255
152
+ #@ SearchEverything
153
+ msgid "Exclude some post or page IDs"
154
+ msgstr "Schliesse einige Post- oder Seiten-IDs aus"
155
+
156
+ #: views/options.php:258
157
+ #@ SearchEverything
158
+ msgid "Comma separated Post IDs (example: 1, 5, 9)"
159
+ msgstr "Post-IDs durch Komma getrennt (Beispiel: 1, 5, 9)"
160
+
161
+ #: views/options.php:262
162
+ #@ SearchEverything
163
+ msgid "Exclude Categories"
164
+ msgstr "Schliesse Kategorien aus"
165
+
166
+ #: views/options.php:265
167
+ #@ SearchEverything
168
+ msgid "Comma separated category IDs (example: 1, 4)"
169
+ msgstr "Kategorie-IDs durch Kommas trennen (Beispiel: 1, 4)"
170
+
171
+ #: views/options.php:269
172
+ #@ SearchEverything
173
+ msgid "Full Highlight Style"
174
+ msgstr "Fortgeschrittenes Highlight Styling"
175
+
176
+ #: views/options.php:271
177
+ #@ SearchEverything
178
+ msgid "Important: 'Highlight Background Color' must be blank to use this advanced styling."
179
+ msgstr "Wichtig: 'Highlight Hintergrundfarbe' muss leer sein, um das fortgeschrittene Styling zu verwenden."
180
+
181
+ #: views/options.php:273
182
+ #@ SearchEverything
183
+ msgid "Example:<br/>background-color: #FFF984; font-weight: bold; color: #000; padding: 0 1px;"
184
+ msgstr "Beispiel:<br/>background-color: #FFF984; font-weight: bold; color: #000; padding: 0 1px;"
185
+
186
+ #: views/options.php:286
187
+ #@ SearchEverything
188
+ msgid "Developed by Dan Cameron of"
189
+ msgstr "Herausgegeben von Dan Cameron, "
190
+
191
+ #: views/options.php:286
192
+ #@ SearchEverything
193
+ msgid "Sprout Venture"
194
+ msgstr " Sprout Venture"
195
+
196
+ #: views/options.php:286
197
+ #@ SearchEverything
198
+ msgid "We Provide custom WordPress Plugins and Themes and a whole lot more."
199
+ msgstr "Wir bieten individuelle WordPress Plugins, Themes und vieles mehr."
200
+
201
+ #: views/options.php:290
202
+ #@ SearchEverything
203
+ msgid "Reset Button"
204
+ msgstr "Reset-Button"
205
+
206
+ #: views/options.php:298
207
+ #@ SearchEverything
208
+ msgid "Find a bug?"
209
+ msgstr "Einen Bug gefunden?"
210
+
211
+ #: views/options.php:298
212
+ #@ SearchEverything
213
+ msgid "Post it as a new issue"
214
+ msgstr "Poste es als eine neue Bug-Meldung"
215
+
216
+ #: views/options.php:305
217
+ #@ SearchEverything
218
+ msgid "Test Search Form"
219
+ msgstr "Teste Suchformular"
220
+
221
+ #: views/options.php:312
222
+ #@ SearchEverything
223
+ msgid "Use this search form to run a live search test."
224
+ msgstr "Du kannst die neue Suche live testen:"
225
+
226
+ #: views/options.php:318
227
+ #@ SearchEverything
228
+ msgid "Run Test Search"
229
+ msgstr "Starte Test-Suche"
230
+
231
+ #: views/options.php:329
232
+ #@ SearchEverything
233
+ msgid "News"
234
+ msgstr "News"
235
+
236
+ #: views/options.php:330
237
+ #@ SearchEverything
238
+ msgid "Development Support"
239
+ msgstr "Development Support"
240
+
241
+ #: views/options.php:331
242
+ #@ SearchEverything
243
+ msgid "Localization Support"
244
+ msgstr "Lokalisation Support"
245
+
246
+ #: views/options.php:337
247
+ #@ SearchEverything
248
+ msgid "LOCALIZATION SUPPORT:"
249
+ msgstr "LOKALISATION SUPPORT:"
250
+
251
+ #: views/options.php:337
252
+ #@ SearchEverything
253
+ 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, "
254
+ msgstr "Version 6 hatte ein großes Update, ein paar Bereiche benötigen neue Lokalisierungen. Wenn Du helfen möchtest, sende mir deine Übersetzungen: "
255
+
256
+ #: views/options.php:337
257
+ #@ SearchEverything
258
+ msgid "here"
259
+ msgstr " hier"
260
+
261
+ #: views/options.php:338
262
+ #@ SearchEverything
263
+ msgid "Thank You!"
264
+ msgstr "Danke!"
265
+
266
+ #: views/options.php:338
267
+ #@ SearchEverything
268
+ 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."
269
+ msgstr "Search Everything verdankt seine Entwicklung seit der ersten Version der WordPress-Community. Ich bedanke mich für Eure engagierte und kontinuierliche Unterstützung!"
270
+
271
+ #: views/options.php:348
272
+ #@ SearchEverything
273
+ msgid "and many more..."
274
+ msgstr "und vieles mehr ..."
275
+
276
+ #: views/options.php:348
277
+ #@ SearchEverything
278
+ msgid "how about you?"
279
+ msgstr "Und Du?"
280
+
readme.txt CHANGED
@@ -1,12 +1,21 @@
1
  === Plugin Name ===
2
- 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.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
 
11
  == Description ==
12
 
@@ -15,6 +24,7 @@ Search Everything increases the ability of the default Wordpress Search, options
15
  * Search Highlighting
16
  * Search Every Page
17
  * Search Every Tag
 
18
  * Search Every Category
19
  * Search non-password protected pages only
20
  * Search Every Comment
@@ -26,38 +36,18 @@ Search Everything increases the ability of the default Wordpress Search, options
26
  * Exclude Posts from search
27
  * Exclude Categories from search
28
 
29
- Translations:
30
-
31
- * Arabic
32
- * Belarusian
33
- * China / Chinese
34
- * Dutch
35
- * French
36
- * German
37
- * Hungarian
38
- * Italian
39
- * Japanese
40
- * Korean
41
- * Latvian
42
- * Norwegian (Bokmål)
43
- * Norwegian (Nynorsk)
44
- * Romanian
45
- * Russian
46
- * Spanish
47
- * Swedish
48
- * Turkish
49
- * Taiwan / Chinese
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.
57
- * 6.2.2 - Post Exclusion fix. 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.
@@ -112,6 +102,27 @@ Read the installation guide.
112
 
113
  [Support Forums and Project Center](https://redmine.sproutventure.com/projects/show/search-everything "Support Forums and Project Center")
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  == Screenshots ==
117
 
1
  === Plugin Name ===
2
+ Contributors: dancameron, sproutventure
3
+ Donate link: http://bit.ly/plugin-donations
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.5
8
+
9
+ Increases Wordpress' default search functionality in three easy steps.
10
+
11
+ == Better WordPress search in three steps ==
12
+
13
+ # Activate
14
+ # Configure options
15
+ # Search ( maybe that's only two steps )
16
+
17
+ Options include search highlight, searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
18
 
 
19
 
20
  == Description ==
21
 
24
  * Search Highlighting
25
  * Search Every Page
26
  * Search Every Tag
27
+ * Search Custom Taxonomies ( new )
28
  * Search Every Category
29
  * Search non-password protected pages only
30
  * Search Every Comment
36
  * Exclude Posts from search
37
  * Exclude Categories from search
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  Updates:
41
+
42
+ * 6.5 - Highlighting fix. Better Tag search and Taxonomy search
43
  * 6.4 - Fixing comment search conflict with author searches.
44
  * 6.3.1 - Major bug fix. Necessary upgrade for 6.3.
45
+
 
 
46
 
47
  == Update Log ==
48
 
49
+ * 6.5 - highlight regex update, props eric. Added taxonomy support, props leewillis.
50
+ * 6.4.1 - Logging bug fix.
51
  * 6.4 - Fixing comment search conflict with author searches ( temporarily disabling author search ). More languages
52
  * 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)
53
  * 6.2.5 - Bug fixed specifically for WordPress 2.8. More Translations.
102
 
103
  [Support Forums and Project Center](https://redmine.sproutventure.com/projects/show/search-everything "Support Forums and Project Center")
104
 
105
+ = What Translations are included? =
106
+
107
+ * Arabic
108
+ * Belarusian
109
+ * China / Chinese
110
+ * Dutch
111
+ * French
112
+ * German
113
+ * Hungarian
114
+ * Italian
115
+ * Japanese
116
+ * Korean
117
+ * Latvian
118
+ * Norwegian (Bokmål)
119
+ * Norwegian (Nynorsk)
120
+ * Romanian
121
+ * Russian
122
+ * Spanish
123
+ * Swedish
124
+ * Turkish
125
+ * Taiwan / Chinese
126
 
127
  == Screenshots ==
128
 
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.4
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 = true;
35
  var $options;
36
  var $wp_ver23;
37
  var $wp_ver25;
@@ -49,7 +49,7 @@ Class SearchEverything {
49
  $SEAdmin = new se_admin();
50
  }
51
  //add filters based upon option settings
52
- if ("Yes" == $this->options['se_use_tag_search'] || "Yes" == $this->options['se_use_category_search'])
53
  {
54
  add_filter('posts_join', array(&$this, 'se_terms_join'));
55
  if ("Yes" == $this->options['se_use_tag_search'])
@@ -60,6 +60,10 @@ Class SearchEverything {
60
  {
61
  $this->se_log("searching categories");
62
  }
 
 
 
 
63
  }
64
 
65
  if ("Yes" == $this->options['se_use_page_search'])
@@ -247,7 +251,7 @@ Class SearchEverything {
247
 
248
  if ($this->logging)
249
  {
250
- $fp = fopen("logfile.log","a+");
251
  if ( !$fp )
252
  {
253
  echo 'unable to write to log file!';
@@ -746,7 +750,17 @@ Class SearchEverything {
746
  {
747
  $on[] = "ttax.taxonomy = 'post_tag'";
748
  }
749
-
 
 
 
 
 
 
 
 
 
 
750
  // build our final string
751
  $on = ' ( ' . implode( ' OR ', $on ) . ' ) ';
752
 
@@ -776,13 +790,13 @@ Class SearchEverything {
776
 
777
  if ($highlight_color != '')
778
  $postcontent = preg_replace(
779
- '"(?!<.*)(?<!\w)(\pL*'.$term.'\pL*)(?!\w|[^<>]*>)"i'
780
  , '<span class="search-everything-highlight-color" style="background-color:'.$highlight_color.'">$1</span>'
781
  , $postcontent
782
  );
783
  else
784
  $postcontent = preg_replace(
785
- '"(?!<.*)(?<!\w)(\pL*'.$term.'\pL*)(?!\w|[^<>]*>)"i'
786
  , '<span class="search-everything-highlight" style="'.$highlight_style.'">$1</span>'
787
  , $postcontent
788
  );
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.5
7
  Author: Dan Cameron of Sprout Venture
8
  Author URI: http://sproutventure.com/
9
  */
31
 
32
  Class SearchEverything {
33
 
34
+ var $logging = false;
35
  var $options;
36
  var $wp_ver23;
37
  var $wp_ver25;
49
  $SEAdmin = new se_admin();
50
  }
51
  //add filters based upon option settings
52
+ if ("Yes" == $this->options['se_use_tag_search'] || "Yes" == $this->options['se_use_category_search'] || "Yes" == $this->options['se_use_tax_search'])
53
  {
54
  add_filter('posts_join', array(&$this, 'se_terms_join'));
55
  if ("Yes" == $this->options['se_use_tag_search'])
60
  {
61
  $this->se_log("searching categories");
62
  }
63
+ if ("Yes" == $this->options['se_use_tax_search'])
64
+ {
65
+ $this->se_log("searching custom taxonomies");
66
+ }
67
  }
68
 
69
  if ("Yes" == $this->options['se_use_page_search'])
251
 
252
  if ($this->logging)
253
  {
254
+ $fp = fopen( SE_ABSPATH . "logfile.log","a+");
255
  if ( !$fp )
256
  {
257
  echo 'unable to write to log file!';
750
  {
751
  $on[] = "ttax.taxonomy = 'post_tag'";
752
  }
753
+ // if we're searching custom taxonomies
754
+ if ( $this->options['se_use_tax_search'] )
755
+ {
756
+ $all_taxonomies = get_object_taxonomies('post');
757
+ foreach ($all_taxonomies as $taxonomy)
758
+ {
759
+ if ($taxonomy == 'post_tag' || $taxonomy == 'category')
760
+ continue;
761
+ $on[] = "ttax.taxonomy = '".addslashes($taxonomy)."'";
762
+ }
763
+ }
764
  // build our final string
765
  $on = ' ( ' . implode( ' OR ', $on ) . ' ) ';
766
 
790
 
791
  if ($highlight_color != '')
792
  $postcontent = preg_replace(
793
+ '"(?<!\<)(?<!\w)(\pL*'.$term.'\pL*)(?!\w|[^<>]*>)"i'
794
  , '<span class="search-everything-highlight-color" style="background-color:'.$highlight_color.'">$1</span>'
795
  , $postcontent
796
  );
797
  else
798
  $postcontent = preg_replace(
799
+ '"(?<!\<)(?<!\w)(\pL*'.$term.'\pL*)(?!\w|[^<>]*>)"i'
800
  , '<span class="search-everything-highlight" style="'.$highlight_style.'">$1</span>'
801
  , $postcontent
802
  );
views/options.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  Class se_admin {
4
 
5
- var $version = '6.4';
6
 
7
  function se_admin() {
8
 
@@ -34,6 +34,7 @@ Class se_admin {
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"],
@@ -123,6 +124,20 @@ Class se_admin {
123
  <br/><small></small>
124
  </td>
125
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  <?php endif; ?>
127
  <?php
128
  // Show categories only for WP 2.5+
@@ -341,7 +356,7 @@ Class se_admin {
341
  </td>
342
  <td>
343
  <ul class="SE_lists">
344
- <li><a href="#"><strong>EricLe Bail</strong></a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#285, #272, #49, #44 and #60</a>)</li>
345
  <li><a href="#">Gary Traffanstedt</a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#43</a>)</li>
346
  <li><a href="http://codium.co.nz" target="blank">Matias Gertel</a></li>
347
  <li><a href="http://striderweb.com/" target="blank">Stephen Rider</a></li>
2
 
3
  Class se_admin {
4
 
5
+ var $version = '6.5';
6
 
7
  function se_admin() {
8
 
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_tax_search' => $_POST["search_taxonomies"],
38
  'se_use_category_search' => $_POST["search_categories"],
39
  'se_approved_comments_only' => $_POST["appvd_comments"],
40
  'se_approved_pages_only' => $_POST["appvd_pages"],
124
  <br/><small></small>
125
  </td>
126
  </tr>
127
+ <?php endif; ?>
128
+ <?php
129
+ // Show taxonomies only for WP 2.3+
130
+ if ($wp_version >= '2.3') : ?>
131
+ <tr class="mainrow">
132
+ <td class="titledesc"><?php _e('Search custom taxonomies','SearchEverything'); ?>:</td>
133
+ <td class="forminp">
134
+ <select id="search_tags" name="search_taxonomies" >
135
+ <option<?php if ($options['se_use_tax_search'] == 'No') { echo ' selected="selected"'; } ?> value="No">&nbsp;&nbsp;</option>
136
+ <option<?php if ($options['se_use_tax_search'] == 'Yes') { echo ' selected="selected"'; } ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
137
+ </select>
138
+ <br/><small></small>
139
+ </td>
140
+ </tr>
141
  <?php endif; ?>
142
  <?php
143
  // Show categories only for WP 2.5+
356
  </td>
357
  <td>
358
  <ul class="SE_lists">
359
+ <li><a href="#"><strong>EricLe Bail</strong></a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#690, #285, #272, #49, #44 and #60</a>)</li>
360
  <li><a href="#">Gary Traffanstedt</a> (<a href="https://redmine.sproutventure.com/projects/search-everything/issues" target="blank">#43</a>)</li>
361
  <li><a href="http://codium.co.nz" target="blank">Matias Gertel</a></li>
362
  <li><a href="http://striderweb.com/" target="blank">Stephen Rider</a></li>