WordPress.org

Forums

New Plugin: Advanced Search (37 posts)

  1. lxg
    Member
    Posted 8 years ago #

    I've developed a plugin that provides an advanced search form for WordPress. It uses MySQL's fulltext search feature and thereby provides a powerful tool to effectively search medium and large websites.

    Read more and grab a copy at http://www.contutto.com/blog/software/wordpress-advanced-search-plugin/

  2. Chris_K
    Member
    Posted 8 years ago #

    Intriguing! Do you have it in action on your blog?

  3. lxg
    Member
    Posted 8 years ago #

    No, it's written so badly and I don't want to mess up my site. ;-)

    No, just kidding. The problem is that my sites are much to small so that search would be too funny.

    I have installed it on a bigger site, but I have yet to tune the CSS for it. But you can have a look, if you want: http://www.turbojugend-aachen.de/erweiterte-suche/

    A screenshot of the form in the Kubrick theme is available from here: http://www.contutto.com/download/screenshot_ctas.png

    (Don't let yourself irritate by the German; it's fully gettexted.)

  4. Chris_K
    Member
    Posted 8 years ago #

    Ah, thank you. Very cool! I'll be playing with your plugin on one of my sites soon. :-)

    (fortunately, i read German a lot better than I speak it!)

  5. lxg
    Member
    Posted 8 years ago #

    An english screenshot is now available, too.
    http://www.contutto.com/download/screenshot_ctas-en.png

    Hope you'll like the plugin. :-)

  6. Chris_K
    Member
    Posted 8 years ago #

    Only issues I've seen so far is that the last link, in the last bullet on the page for "feature" is borked on my site.
    You can see it http://www.solo-technology.com/blog/advanced-search

    (no, I've not actually done any styling yet -- soon!)

  7. lxg
    Member
    Posted 8 years ago #

    Yeah, stupid me... I have escaped the quotes with a backslash in the plugin file.

    This had also caused a problem with the German localisation, and it is already fixed.

    You can either remove the backslashes before the double quotes in advancedsearch.php, line 186, or you can download the corrected version.

  8. Chris_K
    Member
    Posted 8 years ago #

    Awesome. I made the change and it works delightfully.

  9. basketball
    Member
    Posted 8 years ago #

    Is there an alternate download link? Site seems to be down right now

  10. lxg
    Member
    Posted 8 years ago #

    Yes, there was a power failiure in the data center and my server is down right now. (*grrrrr*!)

    It should be back in one or two hours.

  11. lxg
    Member
    Posted 8 years ago #

    Ok, the site is back online, and all downloads are available again.

  12. basketball
    Member
    Posted 8 years ago #

    Great plugin, lot of awesome features, but it just doesn't seem to work for me?

    http://www.bballcity.com/search

    ie) When I try to search "pages" only, it shows a ton of posts, when I try to exclude a category I still get posts from that category in the results. :(

  13. basketball
    Member
    Posted 8 years ago #

    Is their a certain configuration that you need your database to be in? It doesn't seem to be working at all for me.

    - The any, all, none, fields have no effect on the search results.
    - It doesn't seem to be able to include certain categories, or exclude any
    - The "include results from" section doesn't filter out things that aren't checked

    The sort by date, ascending / descending seems to work well though.

  14. lxg
    Member
    Posted 8 years ago #

    Hi basketball,

    the any/all problem I could reproduce. This is an obvious bug I'll have to fix. Thanks for pointing out.

    But the categories can be excluded: When I search for "Bryant", I get posts from "Basketball" while when I deactivate this category, I get nothing.

    The "include results from" does not actively exclude, but it silently ignores. E.g. if a post is in two categories, and one is unselected for search, the post will still be found.

  15. basketball
    Member
    Posted 8 years ago #

    Ahh I think the one big problem I was having is that I wanted to see how well the relevance thing was working so I selected all the categories and chose "OR". Basically if you do that, it just brings up every single post on your website and the results were kinda messed up and far too inclusive.

    I think I am going to use a "truncated" version of the plugin which just has the category choices, sorting, and display options, which is basically what I have been looking for in a search plugin for ages! =D

  16. Truth
    Member
    Posted 8 years ago #

    I'm using this on my site and would say it's great, but the form aren't valid XHTML though =x if it is, it would be great. =]

  17. lxg
    Member
    Posted 8 years ago #

    Indeed, I didn't put too much (read: no) effort into validating the HTML output.

    This will change with the new version, where the form will be valid XHTML 1.1 and semantically more correct.

  18. lxg
    Member
    Posted 8 years ago #

    basketball: The relevance thing is a big mystery of MySQL... but you can have the value shown.

    Put something like the following into the Loop in your search.php

    Relevance: <?php echo round($post->score, 2) * 100; ?>

    As for the any/all issue: I'll remove the three fields in the next version. Instead there will be only one, and it will be possible to arbitrarily use all of MySQL's boolean operators.

  19. basketball
    Member
    Posted 8 years ago #

    Boolean operators in wordpress search!
    That would be P-I-M-P!! =D

  20. Truth
    Member
    Posted 8 years ago #

    That would be great! =)

    I would also like to suggest an optional CSS file to custom the page? Just a suggestion, not sure whether it would be useful or not =x

  21. lxg
    Member
    Posted 8 years ago #

    Hey guys...
    I've got news for you, good news! :-D

    http://www.contutto.com/blog/software/advanced-search-02/

    Truth: I've included a CSS snippet, but I'd love to see yours, too.

  22. basketball
    Member
    Posted 8 years ago #

    A lot of great improvements, I really think that WordPress should look into incorporating this into a future release :-) Thanks for an awesome plugin bud!

  23. morphinex
    Member
    Posted 8 years ago #

    Your plugin is wonderful! I'm no good with CSS or PHP, but I was able to set it up with relative ease. Now, I can finally find what I actually want =)

  24. lxg
    Member
    Posted 8 years ago #

    Glad you like it, guys. :-)

    basketball: I see you created a beautiful template. May I link your advanced search page as show case on my site?

  25. basketball
    Member
    Posted 8 years ago #

  26. lxg
    Member
    Posted 8 years ago #

    Ok added you... (even despite your Google Ads ;-)). Really nice implementation, I hope inspires others to make a customized search form.

    Btw, for all Spanish speakers: Since tonight, there is a Spanish localization available as additional download.

  27. basketball
    Member
    Posted 8 years ago #

    Haha thanks dude, love the description: "a lightweight and stylish version" ;-)

  28. lxg
    Member
    Posted 8 years ago #

    Once again, a new version is available!

    There's only one improvement, however: the plugin features multicolor search term highlighting now. This functionality can be easily customized (and even turned off! ;-)).

    Upgrading from previous versions is possible without any problems.

    Read more: http://www.contutto.com/blog/software/advanced-search-03/

  29. lxg
    Member
    Posted 8 years ago #

    Btw, a demo is now also available on my site.

    Have a sample or play for yourself...

  30. jeffvand
    Member
    Posted 8 years ago #

    Hey Mastermind. I love the plugin and had my site upgraded to PHP5 just to try it out. If I can get it to work it is exactly what I need. I do have one question. I am currently using Photopress for my pictures and it just brings up a big Red X when I try it out. You can see it here: http://www.vandfam.net/blog Can I edit the code and fix this somehow? Any suggestions? Perhaps editing the location of the pictures? Danke sehr!!

Topic Closed

This topic has been closed to new replies.

About this Topic