Skip to content

A simple liveblog using PHP that posts to itself, withKnown, 10Centuries, micro.blog (because it has an RSS feed), and Twitter at the same time. Very rude, very hackable. Beware.

License

Notifications You must be signed in to change notification settings

nitinthewiz/TheLiveblog

Repository files navigation

TheLiveblog

A simple liveblog using PHP that posts to itself, withKnown, 10Centuries, micro.blog (because it has an RSS feed), and Twitter at the same time. Very rude, very hackable. Beware.

Requirements

  1. PHP > 5.3
  2. Codebird PHP for Twitter
  3. PHP Curl needs to be installed for CodeBird. There are ways to disable that. Look 'em up.

What it is and what it does

This is a very simple liveblog. It posts to itself (sample at Nitin Khanna's Liveblog ) and to Twitter / 10Centuries / withKnown. It's not fancy, but it works. Beware, it's very easily hackable so make sure the passphrase you setup is strong.
If a post is >140 chars, it truncates to 75 chars and adds your liveblog link to the end.

Setup

You'll need -

  1. Twitter consumer key and token
  2. Twitter userkey and secret
  3. 10Centuries API key
  4. Withknown API key

Open configs.php -- all items are explained in the document, along with where to find them. Replace the dummy values with your own values.

How to use

Now that you've setup the files, upload them to your server (if you've not already done that). In some instances, you'll have to change the owner of the following files from your own user to 'www-data' - create.php, index.php, text.txt

Open yoursite.com/create.php and bookmark this.

The textarea is where you'll write your post. The Passphrase Field is where you enter your passphrase, as set out in your config. Character count is filled out as you proceed.

Fill both and hit submit. If the post goes through, you'll see the link to your post on 10C and Twitter displayed above the textarea.

If it fails, well bupkes.

The posts will be displayed on yoursite.com. The link to your post on 10C is the little star wars empire logo, twitter (obvs) is the twitter icon.

Issues

  1. Very weak login
  2. Doesn't support hashtags in Share links (Hashtags and @-mentions work when posting)
  3. Too much stuff is inline. This is a hack project. If you want to help me clean up the code, I'll accept all pull requests.
  4. I created this when I was exporting content from the WP liveblog plugin because that one didn't support an infinite stream. So, there could be bugs because of my cleanup. Oh well.

ToDo

[] Try to get this system working with some other services. Currently thinking of Mastodon and Pnut. [] Try to extract syndication information from the post to withknown. [] I would like to apply the indieweb mf2 tags to the list of posts

About

A simple liveblog using PHP that posts to itself, withKnown, 10Centuries, micro.blog (because it has an RSS feed), and Twitter at the same time. Very rude, very hackable. Beware.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published