-
Website
http://dancameron.org/ -
Original page
http://dancameron.org/wordpress/wordpress-plugins/search-everything-wordpress-plugin -
Subscribe
All Comments -
Community
-
Top Commenters
-
LillyLipscomb
1 comment · 1 points
-
paynito
1 comment · 1 points
-
stevehahn
8 comments · 1 points
-
futurelevel
2 comments · 1 points
-
Jason Hansen
4 comments · 2 points
-
-
Popular Threads
I'm having a problem: Using your tool to be able to search as well in custom fields, I do NOT want to find attachments as well. But I can't deactivate it, when searcheverything is activated it is searching for attachments, no matter if that's function checkbox is deactivated or not. (try: www.selbstausbildung.de: search "joomla" - there'll be two pages and one attachment).
Where's the error?
Thanks again!
Do you mind shooting me an email?
Is it possible to search the Links also? I'm building a site with 100's of links, and I can't seem to find a way to search them.
So far, I emptied the (), included add_comments_search_join() somewhere in the searchform.php page of my blog, and it seems to work, so I must have done something right... (I don't know much about php...).
However, in the search results, only the links to the posts themselves appear, and there is no distinction between whether the hit is in a post or a comment. Is there a way to make that distinction, so that what comes up in the result list is the text in which the word appears, and not just the head and excerpt of the post?
another question: how do you sort the recent comments by comment? I want that too! I'm using the plugin get-recent-comments by Krischan Jodies, but I haven't found a way to get the sorting that you have here. Is there another plugin?
window.document.getElementById('post-1′).parentNode.className += ‘ adhesive_post';I'm assuming that's because I'm using the "adhesive" plugin to keep that post at the top of the page, but is there something for me to do to get rid of that?
Thanks so much for your help.
Thanks again for a great plugin!
would you know of a way to extend the search capabilities to more handmade tables?
thanks, nader
The Plugin URI in the plugin itself is "http://dancameron.org/searcheverything/" -- unfortunately, you seem to have moved the page (to here). This means that when users click the link on the admin Manage Plugins page, we get a 404. A redirect the the canonical home of Search Everything would be a kindness for all concerned.
Too, it would be nice if you provided an explicit statement of the current version number somewhere prominent. I had to download a new copy and peer inside to see if it had been updated from v 0.01 yet. For better or worse, until the wp-plugin-mgr plugin returns, one has to rely on the author's plugin page to stay up to date.
I know its not that easy, but is it possible to include categories aswell in the search? Sometimes the name or the description of a category is the keyword users are searching for, but they get "no results"...
Would be nice to read about that!
Regards!
Jens
Thank you for your help.
thanks
Mike
Thank you for your help.
Thanks :)
**********************************************
script type="text/javascript" src="http://dancameron.org/wp-content/themes/2.2/js/livesearch.js.php" /script
//
You could also deduce if it's the plugin by deactivating it and searching the core search of wordpress to see if you have the same issue.
However, since the word I was purposely searching for was in the comments, it pulled up the post but didn't expand the comments so a User might think that it was a bogus return, is that something I screwed up or are you maybe planning to have the comments expanded, maybe even the word highlighted, in the future.
I just want to make sure I'm getting the most out of what it has to offer at this point. Thx.
Was just wondering if you can use some kind of code within the loop of the search.php template file to tell whether or not each 'post' returned by the search is a post, page or comment? So that each can be treated differently by the theme.
Thanks.
I've extended Search Everything to incorporate some of the items in your todo list, building an admin interface and also adding the ability to search drafts and attachments if so desired. Hope you don't mind.
You can take a look at http://kinrowan.net/blog/wordpress/search-all. Comments welcome.
cori
http://www.blog.mediaprojekte.de/index.php?s=got
i want my search results show up like that. i have no posts in my site, there are only pages. is there a way to do the search results like this ?
Afterwards, search can't pull up any comment results. Any ideas on where to look? It's a pretty standard Kubrick theme.
I don't know anything about the neccessity to double-set any of the options, but I can say that the failing of the comment search is the result of a bug that I introduced when I modded Dan's original plugin. I let Dan know of the bug yesterday. My mod of Dan's plugin has the correction already in place.
What is the core difference between your two plugins?
Cori, I left a message on your site. Your downnload link still points to the old version.
.DS_Store
._search_everything2.php
gpl.txt
search_everything2.php
So all I need is the last one? Okay...
Cheers!
What's wrong?
Warning: sev_option_page(/home//public_html/wp-content/themes/connections/searchform.php): failed to open stream: No such file or directory in /home//public_html/wp-content/plugins/search_everything2.php on line 224
Warning: sev_option_page(/home//public_html/wp-content/themes/connections/searchform.php): failed to open stream: No such file or directory in /home//public_html/wp-content/plugins/search_everything2.php on line 224
Wonder if you would also modify this to include tag file, I use UTW 3.1 for tagging but search doesn't cover tags inserted into the post.
Jon: Yea, it seems most themes don't support the search feature on the plugin page, I'm contemplating taking it out.
Looking at John's error, I determined what I goofed up regarding the search box on the options page in some themes. Since I only initially tested this on my own mod of the WP Default theme I didn't realize that I was relying on something not in the core WP install.
Version 0.3 of Search All (http://kinrowan.net/blog/wordpress/search-all/) resolves this issue; Dan, please feel free (of course) to include this in a newer version of Search Everything.
Is there any chance you could update the plugin so it includes results from the only faq plugin for wordpress i can find, you can see it over at http://rane.hasitsown.com/blog/plink/technical/....
If you could integrate that, it would be greatly appreciated.
@jon May 14th, 2006 at 2:22 pm
Reason for the error:-
This error comes when the theme doesn't include searchform.php. Since the theme doesn't have searchform.php, the default one will be used, so it shouldn't harm to copy the default searchform.php into your theme directory.
Suggested solution:-
Copy searchform.php from /wp-content/themes/default to /wp-content/themes/[theme]
Make it writable so that you can modify it and bingo!!!
You can download it at: http://www.junyent.org/blog/index.php?p=468lp_l...
thanks for the great plugin - excellent stuff. I wondered if you or someone else might be able to assist me with an issue i have please.
I have a form on my website allowing users to submit info - this info goes to a news table i have created in my WP database. I then have a page which displays this info (based on a sql query i guess).
Now when i search for a word which i know is in this table of info, this page is not included in the search results. Any idea of what i can do to enable my new table of info to be included, or is this not possible as it is in a different table with results only loaded on the page based on the sql query .... im not sure if i know exactly what im talking about, but perhaps this will make sense to someone.
Thanks in advance for any help.
I assume there some php for it but I don't have it. Right now all I get is the page title.
Thanks.
another question would be if you really plan to integrate searching inside tags I would really love that as my site relies heavily on tags.
Just a small error report:
If the search finds nothing, it says "NothingNot Found"instead of "Nothing found"
("
" /
)
What can I do? :p
Great plug-in. Doesn't get easier than this.
I found you from the wordpress plug-in database site (http://wp-plugins.net/), where they're still posting an older version of this plug-in (with a link that points to idancameron.com/blah..... ) Also lists that its compatability only extends to WP 1.5.
I would update them, but I don't want to seem like I'm taking credit.
Thanks again,
Thx mate
first off all I found my self in heaven finding out you integrated the tag/metadata search as an option.
so, first of all, 100 hugs fr that!
then, undfortunately, activating this option, brings:
"WordPress database error: [Unknown column 'languages.language_idLEFT' in 'on clause']"
the other options are working actually. this only happens with the metadata option on. ... which, of course, was the reason I installed that plugin of yours so hopefully.
as I am absolutely novice to php (actually not even that, really), it would be nice to get hints, what could be done about it. as it seems connected to "language" somehow, it might have to do with the gengo-plugin, which I installed for multilingual blogging...?!
any advice most welcome! thanx already
WordPress database error: [Column 'meta_value' in where clause is ambiguous]
SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_postmeta AS postrestrictions_meta ON wp_posts.ID = postrestrictions_meta.post_id AND postrestrictions_meta.meta_key = 'post_restrictions' LEFT JOIN wp_comments ON ( comment_post_ID = ID AND comment_approved = '1') LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE 1=1 AND (((post_title LIKE '«out%') OR (post_content LIKE '«out%')) OR (post_title LIKE '«out%') OR (post_content LIKE '«out%')) AND post_date_gmt
i belive that it's will be better
nice Plugin ! When you change in line number 319 to
function SEv_add_options_panel() {
add_options_page('Search Everything', 'Search Everything', 1, __FILE__, 'SEv_option_page');
}
then is this plugin also for Wp 1.5* usable.
Do you like a german Version of your Plugin ? I translate, when you like it.
thx and best regards Frank
I'm thinking in extending the plugin to using other tables, any idea how to do that (I want to search in other tables even those created from plugins)
thanks for this plugins, saved me a lot of coding ;)
Anyway. Love the plugin. Just one thing.
I have the search on my sidebar, not a separate page. At this point I dont' know what it does it if it finds multiple results. Not a lot of data on the site. Irrelevant wandering from actual question.......
Anyway... If the search results in a page, the page is displayed, but it uses the post template not the page template, so I have the dreaded "posted in category uncategorized" at the bottom of the page. (when the page is accessed through normal navigation means it uses the page template, which does not have the posting meta data displayed)
Is there an easy way to specify which template to use to display a page as the result of a search??
I have a minimal working knowledge of php, but didn't see any reference to templates when I skimmed through the plugin code
Thanks!!
Could you in the next version please fix this small error? Currently we see in the search_everything(.*).php the following:
function SE2_options_style()
#search_options tr.child_option {
margin-left: 15px;
margin-top; -3px;
}
The last line should be:
margin-top: -3px;
So replace the ; by a :
Thanks for the great plugin!
DO you know of any plug-ins which put a blurb about the page on the results page under the title of the page? Similar to Google display etc.
Cheers,
Dave.
To solve this you need to update the SE2_search_pages function ...
//search pages
function SE2_search_pages($where) {
global $wp_query;
if (!empty($wp_query-query_vars['s'])) {
$where = str_replace(" AND (post_type = 'post'", " AND (post_type = 'page'", $where);
$where = str_replace(" AND (post_status = 'publish'", " AND (post_status = 'publish' or post_status = 'static'", $where);
}
SE2_log("pages where: ".$where);
return $where;
}
Grtz,
Peter
WordPress database error: [Column ‘meta_value' in where clause is ambiguous]
SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_postmeta AS miniposts_meta ON (wp_posts.ID = miniposts_meta.post_id)LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE 1=1 AND (((post_title LIKE '%diario%') OR (post_content LIKE '%diario%')) OR (post_title LIKE '%diario%') OR (post_content LIKE '%diario%')) AND post_date_gmt
$where .= " OR wp_postmeta.meta_value [...]
Some metadata, as UTW Tags, are stored in a peculiar way: while no problem with single words, "usa" is stored as "usa", phrases, eg. "united states of america", are stored as "united-states-of-america".
So if I search "united states of america" I don't get the result and really I can't hope my users to search "united-states-of-america" (by the way: if they even would do this they wouldn't get an eventual "united states of america" from post contents).
I don't think it's hard to work it around, it's a matter of converting spaces in minus signs in the query string in the single case of metadata search, but I'm a phpnewbie. Any ideas?
Is there any way to force it to use the slug as the URL link rather than the page title? Thanks :)
The nice part about doing that is that Google will already index everything in your site for you, regardless of whether the content came from a post, a comment, or a plugin.
The only downside would be the delay in accurate results depending on how often Google crawls your blog and updates its indexes, but I don't see any other way of truly getting everything, unless you wrote your own type of "spider" component that would maintain your own index of your site on a more frequent basis than Google does and then have a plugin go against that.
.a href=".?php the_title(); ?.". Title here ./a.
The error was using "the_title();". That's why it was capitalizing and separating the title with spaces, instead of using the slug (i.e. linksing to "Title here" instead of "title-here")
When I changed "the_title();" to "the_permalink();" it all fixed itself.
Hopefully that helps someone else (yes, I will admit to my stupidity, if it'll help someone else!)
I am echoing comments from May 17, 2006
-------------------------
Hi Dan, i’m using your plugin on my site, it’s my first time with wordpress.
Is there any chance you could update the plugin so it includes results from the only faq plugin for wordpress i can find, you can see it over at rane.hasitsown.com/blog/plink/technical/33/wordpress-faq-plugin/.
If you could integrate that, it would be greatly appreciated
-------------------------
The FAQ Plugin by RANE is pretty hot and would be much more valuable if one could include it in the search. I looked at your code, but don't have enough php/mysql knowlege to figure out how to make this work.
Can you please help?
Thanks,
Chris
I might release a plugin that later uses google ajax since I've already coded it for another static site but don't keep your hopes up for it to be released soon.
good luck.
I just found your plugin and really like it but it doesn't seem to be working with WP 2.0.6.
Are you aware of any problems with the new version of 2.0.6?
Thanks
Eric
i really love your plugin. Thanks a lot.
But I have the same problem now. WP Version is 2.0.6. The search doesn't include the pages. Yes, I have ticked the checkbox in the options.
It would be very nice if there's a way to fix this problem.
All the best
Tom
I found the problem in the new plugin version:
all str_replace functions use strings with double quotes ("), but only escaped single quotes (\') are correct.
Example line 89:
"publish" must be written as \'publish\', "static" as \'static\'
I made the changes and it works fine.
Download: http://www.fastagent.de/res/download/searchever...
Happy New Year,
Peter
the WordPress developers made changes in classes.php
They used to mix up " and ' quotes before. Now they only use single quotes.
I added now the following line to your plugin:
$where = str_replace('"', '\'', $where);
This ensures that only single quotes are used in $where.
Changes:
85, 102, 114: line added as described above
90, 103, 115, 116: line changed as described in my previous comment
-Ian
the plugin works fine now. Searchs Pages and everything.
I think the problem is on your site now.
Check again if the desired checkboxes are ticked.
For some reason you have to do it twice until it remains ticked.
Cheers
Tom
I'm testing this plugin with WP2.1 and it's not working with static pages (yes, I enable it in the plugin's options)
Any idea ?
Thanks !
/"
" name="s" id="s" /
now it works. At the first time, the plugin don't enable my selected options. Thank You!
jm
52;berraschten
You refer to v2.5-Oct23 in your WP 2.1 paragraph at the top of the page -- but I don't see a download link?
Version: 2.6 Jan09-2007 does seem to be working on WordPress 2.1.
A suggestion: please update the version number at the top of this page where it says "Version: 2.5 Oct23".
A comment:
I've seen this on more than one installation (2.0.6/7 as well as 2.1). I think I've learned the sequence is:
Activate plugin
Go to options and set them. Click update
Try a search. It fails. Poke around trying to find out what's wrong.
Finally go back to the options page and see that none of the settings are there.
Click them again. Click update again.
Be happy.
PS: Your PayPal donation doesn't seem to be working. I'll try to remember to check back on my next install since this is such a necessary piece of code.
I am trying to get my search to work and even though I have it set to search everything it doesn't pick up basic info in the pages.
Any ideas why? theme problem?
Thank you!!
MJ
My search results display post excerpts, but the full page is returned.
Regards
Gary O
search results display the js that runs the embedded player.
just thought you might like to know.
keep up the good work!
It is slightly more convoluted than it needs to be simply because $post_type is always "post" in the search loop for some reason... perhaps this will be of service to someone out there.
post_type == "page") { $pageparent = get_post($pagecheck-post_parent); ?post_parent); ?" title="Permanent Link to post_title; ?"post_title; ?For the past 6 months this plugin has been great!
I have some "pages" in the works that I would rather not be returned in search results. Is there a way to exclude pages?
cheers!
shua
Dan,
For the past 6 months this plugin has been great!
I have some “pages†in the works that I would rather not be returned in search results. Is there a way to exclude pages?
cheers!
shua"
got the same problem. please fix this nice plugin for us.
Thank you!
Shua/itsme - You can exclude pages in the options
Search Every Comment
Search only Approved comments only?
Search Every Draft
Search Every Attachment
Search Custom Fields (Metadata)
There is no field or other mechanism to exclude specific page ids, or pagebynames,etc.
http://www.tearsea.com/?p=554
great plugin and thanks~~~
I have some “pages†in the works that I would rather not be returned in search results. Is there a way to exclude specific pages?
cheers!
shua
Hope that helps.
Either set the level to 10 which is admins only
function SE2_add_options_panel() {
add_options_page('Search Everything', 'Search Everything', 10, 'SE2_options_page', 'SE2_option_page');
}
or possibly a better choice which is to give it to those people with edit plugin rights
function SE2_add_options_panel() {
add_options_page('Search Everything', 'Search Everything', 'edit_plugins', 'SE2_options_page', 'SE2_option_page');
}
is there anyway you could include that?
thank you so much for your work!
Dan: You should maybe make the trackback / pingback section collapsible on this theme. It just occurred to me in writing this reply, since I have to scroll way up to see the previous comment, so I can reference it when writing the next one. What do you think?
I found the link to the Google code page and posted the issue there.
Jared, thanks for the tip. Obviously I'll have to do extra coding to work around non-protected "protection". Jeez what a crock. In WordPress apparently "Protected" means protected only if one provides extra coding to do the protecting.
I wonder how many people using this plugin and others are unaware that their protected page may not be protected unless they really test it out to make sure no plugins have affected it.
The vast majority of bloggers want to blog, not code. So it never occurs to them that something might be amiss with their protected pages simply because they installed a plugin or two or three. Few do thorough testing I'm sure. Somebody will get burned no doubt and whine about it on the WordPress support forum before too long :-)
This particular plugin should be modified to preserve the WordPress protection, and it sounds like Dan is working on that.
I was mostly just wanting to point out that the non-standard uploading functionality you described should probably also be modified to only allow admins to upload, whether anyone else can see the form or not.
The general principle (IMHO) is that if a user installs any WordPress plugin (or extra functionality like the upload form you described), they are assuming the risk that the default behavior of WordPress may be modified in ways they don't expect, unless they are able to read through and review the code to understand exactly everything it's doing.
The flexibility that allows plugin authors to do this can be a benefit and a curse, since it opens the door for lots of new features as well as problems.
Would also love to see 'posts' at top, then 'comments' that match the search query broken out next.
Great plugin! Got a bug report for you though. If the user searched for anything containing an apostrophe (') it returns the following error. Any suggestions?
Thanks for the great plugin,
Guy
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%') ORDER BY post_date DESC LIMIT 0, 20' at line 1]
SELECT DISTINCT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts LEFT JOIN wp_comments ON ( comment_post_ID = ID AND comment_approved = '1') WHERE 1=1 AND (((post_title LIKE '%%') OR (post_content LIKE '%%'))) AND ((post_status = 'publish' OR post_status = 'private')) OR (comment_content LIKE '%'%') ORDER BY post_date DESC LIMIT 0, 20
I'm trying to use the 'Search Everything' plugin on a site where I work. It's currently on a dev site (http://www.gooselane.com/gooselaneeditions/).
My question is this: I'm a relative noob to the coding thing and not too familiar with php. My desire is to structure the search so that when a search word is found on a page, the results return basically just the page header and then the sentence the word appears in below vs. the whole page/post.
Is this something that's conceiveable or am I talking about bassically writing a whole new app? I'm having trouble determining from Wordpress.org and other sources, what .php file I should even start with to begin editing.
FYI, my current theme (tree2) doesn't have a search.php file, I'm just using the plugin. I don't know if that matters or not.
Not looking for someone to do this for me, per se, just point me down the right road so I can maybe figure out how to hack it myself.
Thanks for your time,
-buKit
======================
hello, I like this plugin, only trouble is with search every page and every comments enabled, v3 on wordpress 2.1 breaks with a mysql syntax error if you use characters like apostrophe, (') in the search. Version 2.3 of the plugin on wordpress 2.04 seems to escape special characters but breaks with the same error on wordpress 2.1.2. The default wordpress search doesn't seem to have any problems handling special characters. Has anyone else had this problem or have any idea how to fix it?
Are there any plans to have it search the description of the uploaded files? [At least in my experience the files aren't being found in that way, either.] Can you comment on any differences in how your Google Ajax plugin differs in its searching of uploaded files? I guess I just don't understand what you mean by "searching attachments".
Thanks very much for the plugin! Certainly searching pages gets us a long way! And I'll try your newer plugin soon.
Do you have any ETA for a security update that resolves the issue?
$where = str_replace(' OR (post_content LIKE \'%' . $wp_query-query_vars['s'] . '%\'', ' OR (post_content LIKE \'%' . $wp_query-query_vars['s'] . '%\') OR (post_excerpt LIKE \'%' . $wp_query-query_vars['s'] . '%\'', $where);
thanks for the plugin, it used to work like a charm with 2.1, but now, after the 2.1.3 upgrade, it seems not to work any longer. I've also re-downloaded and installed a couple of minutes ago, but never changed: it doesn't find words just like before.
It's just me, or is it a known problem?
Thanks in advance for all the support,
Francesco
$where = str_replace('post_type = \'post\' AND ', 'post_password = \'\' AND ', $where);Thanks for the nice plug!
It's great plugin. it works!! really everything can search now.... haha...
thanks.
I've just installed the plugin and it's a massive improvement over the previous search functionality. Thanks!
One questions: it seems that the plugin is returning search results that include deleted posts and pages. Is this something to do with the plugin itself or the way that wordpress runs the database?
Cheers,
Alex
Hi Dan,
I've just seen this comment (there are a lot of comments here and I missed that one. I'll move everything to there. thanks!
Alex
Might be a nice plugin...if I knew how to install it! haha
It adds functionality to the already included wp search box. If you do not have a search box you can either request it from your theme author, use widgets or get the code from a default theme and place it into your side/header/wherever.
how can i search inside the page? it seems this plugin just search in the title of the pages for me.
Really nice plugin, great job. Search produces much better results in WP. won´t use wp without it.
Hello from Germany
michael