WordPress.org

Forums

[Plugin: Highlight Search Terms] Good plugin but issue IE 7 and 8 (13 posts)

  1. JasonSGN08
    Member
    Posted 6 years ago #

    This plugin works perfectly with Firefox, Opera and Safari, but I could not get the search terms to display highlighted in IE 7 or 8. Any suggestions?

    http://wordpress.org/extend/plugins/highlight-search-terms/

  2. RavanH
    Member
    Posted 6 years ago #

    Fixed in 0.2 ... thanks for pointing it out, Jason :)

  3. yekurisu
    Member
    Posted 5 years ago #

    I've just activated the plugin and it works perfectly in Chrome & Firefox, but still does not in IE 8.0.7600.16385. I repeat after Jason: any suggestions?

  4. RavanH
    Member
    Posted 5 years ago #

    yerkurisu, i have no suggestion. sorry. i was under the impression that it did work in IE now. can it be that other javascript on your blog is interfering?

    i have found this jQ hilite extension to be very susceptible to other javascript... so if you find any cause here, or even a fix, please let me know!

  5. turnkey13
    Member
    Posted 5 years ago #

    great plugin, it works smoothly except internet explorer 7 and 8. error message says: object doesn't support this propery or method, and the error line: var regex = new RegExp('(<[^>]*>)|(\\b'+ search.replace(/([-.*+?^${}()|[\]\/\\])/g,'\\$1') +')', insensitive ? 'ig' : 'g');

  6. RavanH
    Member
    Posted 5 years ago #

    this problem seems to persist and i do not have a fix. the only thing i can think of is that IE8 somehow has problems with the single quotes in the regular expression.

    i currently do not have the means to test this but i uploaded a development version that (uses double quotes in the regexp) which you could try. i'd very much appreciate if you let me know what happens there.

    http://wordpress.org/extend/plugins/highlight-search-terms/download/

  7. RavanH
    Member
    Posted 5 years ago #

    The new stable version is now 0.4 which i tested in IE8 too...

    The search term wrapping is now limited to divs with class hentry which should be compliant with most modern wordpress themes. If this is not so in your case, you can edit the hlst.php file and change the .entry into anything else that works in your theme. using #content is not advised since it generates a blank page in FireFox and Opera.

    If there still are problems in IE, please give me a link so i can have a look. It might be causes by a conflict with other javascript.

  8. turnkey13
    Member
    Posted 5 years ago #

    after upgrade it stopped working for all browsers. Internet explorer it says: this.html()' is null or not an objectLine: return this.html(this.html().replace(regex, function(a, b, c){

  9. turnkey13
    Member
    Posted 5 years ago #

    how can I send you a personal mail for website adress to check the code.

  10. RavanH
    Member
    Posted 5 years ago #

    turnkey13, you can use the contact form on http://4visions.nl/en/index.php?section=40 if you like. or look for my e-mail address inside the hlst.php file in the plugin.

    before that: could you give the newest dev version (0.5beta) at try? i have the feeling there is some conflict going on and in this latest version i am using jQuery in safe mode... maybe that does the trick.

  11. turnkey13
    Member
    Posted 5 years ago #

    I tried the 0.5 and it doesn't work like 0.4 for all browsers.
    this.html()' is null or not an objectLine: and line is:

    return (a.charAt(0) == '<') ? a : '<span class="'+ span_class +'">' + c + '</span>';

    by the way, version 0.3 still works.. just gives error for internet explorer.

    good luck..

  12. turnkey13
    Member
    Posted 5 years ago #

    you can look link library plugin for this effect if you want. it has same highlight effect for spesific page search and it doesn't give error.

  13. RavanH
    Member
    Posted 5 years ago #

    As far as i can see, the Link Library plugin does a search and replace routine on the content to wrap keywords in span tags with class highlight_word (which then gets highlighted by CSS) so that is not helpful here.

    I'm still interested in a URL from you so I can take a look at your page source. Or can you paste it here, maybe? With the hilite plugin active ofcourse...

Topic Closed

This topic has been closed to new replies.

About this Topic