Code Monkey home page Code Monkey logo

rt-mastodon-feed's Introduction

rt-mastodon-feed

A simple widget for Wordpress that displays a Mastodon feed. Uses SimplePie.

Blogpost with more info here

Features

  • Super simple, easy to modify
  • If caching is enabled, the feed is processed only every hour instead of every time
  • Supports multiple images, movies, detects Youtube links and embeds as movie

Real world examples

Visit codedojo.com or c2kyoto.com to see it in action. You can also remove the wordpress specific stuff, hardcode the feed url and use it on a regular webpage too.

Installation

  • First, download SimplePie and install it. It's pretty simple. It's a php thingie that can download and process rss feeds as well as cache them and required for this widget
  • Put the entire rt-mastodon-feed folder in your wordpress wp-content/plugins directory.
  • In the Wordpress Plugins menu, click "Enable" on the plugin. If SimplePie isn't installed, it will tell you.
  • On The Wordpress Dashboard, look for a new "RT Mastodon Feed Settings" option. Click that and fill in the info.
  • Add the RT Mastodon Feed widget to your sidebar using Wordpress' customize menu.

That's it!

Known Issues and warnings

  • It downloads any movies completely even if you haven't clicked them. I chose to do it this way but others may disagree due to bandwith concerns (there's no way to easily get a thumbnail of a movie via mastodon, is there?)
  • Movies are just white until you click the play button on iOS Safari, not sure why (help me obi-wan css master)
  • For some reason I had trouble grabbing the feed avatar image automatically so I force you to manually put in the URL to it. If you right click your avatar and view image, that link should work I guess
  • If you want to customize the css, it's located inside the main .php file because Seth is lazy
  • I've barely used it, so who knows what won't work, for example I should really see what it does with re-toots or whatever you call them over there
  • Wordpress already has some version of SimplePie built in? Huh, didn't know that. I guess this should be converted to use that instead. whoever cares the most can do it, that's the rtsoft way

Patches/fixes appreciated!

rt-mastodon-feed's People

Contributors

sethrobinson avatar

Stargazers

 avatar

Watchers

 avatar

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.