• I installed WP 1.5 today and I seem to be having problems with a few of the plugins I’ve used in 1.2 (which isn’t too much of a surprise, I suppose.) Has anyone gotten the Search Hilite plugin to work in 1.5 yet? For some reason, it no longer wraps the searched text in a “hilite” class. Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Search Hilite won’t work in WP v1.5. However, Google-Highlight (it’s successor, named “Search Hilite v1.2” in the plugin manager) does.

    https://dev.wp-plugins.org/browser/google-highlight/

    Don’t be fooled by the name. Google-Highlight will highlight all keywords, regardless of which search engine you come from.

    Thread Starter guboogi

    (@guboogi)

    Hrm, actually this was the plugin that I had installed (it shows up as Search Hilite in the plugins window but the filename is Google-Hilite.php) Still no luck using it, though. Are you sure that it works? There doesn’t have to be anything added to my-hacks.php, does there? I have no clue what could be going wrong. Thanks.

    Moderator James Huff

    (@macmanx)

    Is it listed as v1.2? I’m using it just fine, nothing in my-hacks.php. Try it out for yourself: https://www.macmanx.com/wordpress/index.php

    Thread Starter guboogi

    (@guboogi)

    Yes, it’s v1.2. That’s strange, I guess I’ll look at it some more and try to figure it out. Basically all you have to do is activate the plugin and then have a class “hilite” in your stylesheet, right?

    I don’t think it’s a matter of defining the class in my stylesheet since if you search and check the source it doesn’t wrap the string in a hilite class. Any other possible suggestions?

    Moderator James Huff

    (@macmanx)

    Actually, the class “hilite” is in the plugin. You don’t need to add anything your stylesheet, just activate the plugin.

    This should be towards the bottom of the plugin:

    <style??type='text/css'>
    .hilite??{
    ????????????????color:??#fff;
    ????????????????background-color:??#f93;
    }
    </style>

    I’ve just installed the Hilite plugin in my WP 1.5 test site before uploading. I like the plugin, because it does what you expect of a search function.
    But it still has an old bug when searching from the blog:
    1. highlighting appears fine the first time you call it
    2. but if you enter a new search criterion which you know occurs in one of the posts retrieved by 1.
    3. then the old highlighting reappears
    4. and only when you press the search button again
    5. does the new search expression get highlighted.

    It’s as if something is being cached with the previous highlighting.
    MacManX, this happens on your site too! try searching for “captcha” and then for “secureImage” and you’ll see what I mean.

    Does any of the WP afficionados know what is happening?

    Moderator James Huff

    (@macmanx)

    That sounds like a cache issue. Unfortunately, I don’t think the plugin in under active development anymore.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Search Hilite Plugin with 1.5?’ is closed to new replies.