Giter Club home page Giter Club logo

feed-reader's Introduction

Feed Reader

A very simple feed reader plugin for WordPress. (Not recommended for use in the real world.)

image

feed-reader's People

Contributors

janboddez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

feed-reader's Issues

Use static variables, rather than WP's object cache?

Right now, we fetch models early, and cache them. Then after we're done with them, we delete the cached model, so as not to run into issues with persistent object cache plugins. (We really only want to cache for the duration of the request.) Maybe static properties are the cleaner solution.

Table alignment

ths are currently/by default center-aligned, tds left-aligned (or right, I suppose, on rtl installs).

Only one attached image/video is displayed

Not sure if there's feeds that have more than one (h-feeds often do, though), but we should eventually tackle this better.

Also, can we display them on the single-entry page, too? And, if so, avoid duplicates?

Syndication targets?

This is going to be a difficult one, probably. Maybe we should leave it to the Micropub clients. :-)

"No Title"

Some authors name their notes "No Title," causing these notes to be interpreted as ... articles.

If we could somehow filter titles, perhaps provide the feed as an argument, we could allow site owners to "fix" this, for particular feeds.

"Real-time" sidebar updates

Stole this idea from Monocle, way back: refresh unread counts once per minute or so (this part is optional, even, as navigating around would update the sidebar anyhow, and polling only occurs once every 15 minutes at best), using AJAX, and each time an item is marked (un)read.

Since we're already using JS for the (un)read buttons, shouldn't be to hard to trigger the function.

Support OPML v2

Way we currently detect categories is, if an outline does not have a URL, we consider it a category, and keep that in memory as the "current" category. (This also wrongly applies a category to uncategorized items that somehow follow a [closed] "category" outline.)

if ( empty( $url ) && empty( $attrs['XMLURL'] ) ) {

Think OPML v2 supports a comma-separated (?) category attribute on the actual feed items themselves, so we could try adding that in.

Since we support only one category per feed (which is different from WP's built-in taxonomies), we can either pick the first or the last one, for now.

Microsub

Add a Microsub endpoint, map categories to "channels," feeds to "sources," support at least marking entries as read.

Other items (e.g., following new feeds, etc.) to be considered.

Add filters

I sometimes prefer to have an item's author name replaced with the name I gave the feed, for instance, although the icons help a lot recognizing the individual feed.

But I still might wanna "correct" longer or faulty names/feeds, etc.

So, make item name and author filterable, and then we'll see about everything else.

Cleanup

Add a command or cron function to weekly or so to clean up old (read) entries.

Have the top bar button show the no. of unread posts

Now, because it's likely rendered way ahead of the sidebar, we might wanna avoid needless queries en run the whole category/feed thing with all unread entries here, and cache it for the current request only.

Post status

Maybe there should be an option, whether a (reply, etc.) post should be draft or published.

Turn "wide enough" images into block-level elements

This may something most easily accomplished by JS. Add display: block to largish images, programmatically?

Doing so would "fix" captions that use, e.g., em instead of figcaption, and so on, by forcing them onto a line of their own.

Responsive tables

It'd be nice if we could wrap tables in a selectable / scrollable div so as to keep them readable on smaller screens.

Code highlighting

This could be a plugin, once we have those filters in place. Or a native thingy. Or a separate option.

Image proxy user-agent

Some site return a 403 when WordPress attempts to fetch their images. Should be okay with a "spoofed" user agent.

Gray out "Bookmark" button?

It can take a little while for bookmarks and replies to go through ... We're probably better off immediately hiding the form, or graying out the submit button until successful submission is confirmed.

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.