Giter Club home page Giter Club logo

Comments (8)

jlicht avatar jlicht commented on June 27, 2024

Thanks for the report. I believe your diagnosis is correct, and we're working on getting the fix out.

from amber_wordpress.

genevec avatar genevec commented on June 27, 2024

We just pushed 1.4.1 on WordPress. Once you update, it should be working for you.

from amber_wordpress.

aribn avatar aribn commented on June 27, 2024

Those files are successfully loading after updating the plugin, but nothing happens when I hover over a link that has been archived. The Amber Dashboard shows that links were successfully snapshotted. I set Available Links and Unavailable Links both to the "hover" setting, but nothing happens when I hover over a an archived link. Wordpress site at http://favorites.aribadernatal.com.

from amber_wordpress.

genevec avatar genevec commented on June 27, 2024

How many seconds have you set the "Hover delay" to notify the end user? For immediate display of preserved links, you might want to indicate 0 there.

If this isn't the problem, let me know and we'll keep digging.

from amber_wordpress.

aribn avatar aribn commented on June 27, 2024

It had been at 2 seconds. I changed both to 0 seconds, but still nothing pops up.

from amber_wordpress.

genevec avatar genevec commented on June 27, 2024

Hmm. @jlicht would you be able to look into this?

from amber_wordpress.

jlicht avatar jlicht commented on June 27, 2024

It suspect that the regexp in the filter that examines a post before it's displayed to extract URLs is getting confused by the target="_blank" that's part of the links on those pages. It gets the URLs wrong, and therefore can't find a match.

I think we'll fix this by changing the regular expression in the filter() function to use a non-greedy match.

Old:
$re = '/href=["\'](http[^\v()<>{}\[\]]+)[\'"]/i';

New:
$re = '/href=["\'](http[^\v()<>{}\[\]]+?)[\'"]/i';

from amber_wordpress.

aribn avatar aribn commented on June 27, 2024

That worked! (I modified amber.php locally to test, loaded a post, and verified that the Amber popover appears when hovering over an archived link.) Thank you for tracking this down!
popover

from amber_wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.