Giter Site home page Giter Site logo

import-bookmarks's People

Contributors

janboddez avatar lotharthesavior avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

import-bookmarks's Issues

Replace empty return statements with proper error messages

Uploading an invalid file will result in a 'white screen of death', or rather, cause PHP to exit. In fact, all return; lines inside the import() function should really be replaced with something like wp_redirect( admin_url( 'tools.php?page=import-bookmarks&message=warning' ) ); exit;. Upon being redirected, the user should then be shown at a least a warning that something went wrong.

Get rid of set_time_limit()

The set_time_limit( 0 ); inside the import() method should probably go and may actually not be needed. On a temporary shared hosting setup, the plugin is able to process a few hundred bookmarks in well under 10 seconds (the typical PHP timeout is 30 seconds).

If PHP does choke on larger sets of bookmarks, though, the 'final' solution would likely be to have JavaScript send 'chunks' of 10 or so bookmarks off to the server one by one. (This has the added benefit of being able to show a progress bar.)

Add Support to Gutenberg

@janboddez

I noticed, while testing the plugin, that it create posts that end up creating the default post content. We could add "links" in case the "block editor" is active in the WordPress instance.

Let me know if this is something that you consider for this plugin.

Add option to detect duplicate entries

The import_bookmarks_uri custom field may be used to detect duplicate URLs for post types that support custom fields. An option to detect duplicate entries this way should be switchable, however. (There may be valid reasons to link to the same web page more than once.)

Import bookmarks from other sources.

As a user, I would like to be able to integrate this bookmark with an API that is cross browser and cross platform. Firefox uses for itself Pocket by default, and that is a very interesting option for bookmarking technologies.
Because Pocket has an API, we could use it, so the user could also import from there.

Let me know your thoughts.

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.