LBRY WordPress plugin
Find a file
2022-02-13 10:48:02 -06:00
admin Enqueue stylesheet (#48) 2022-02-12 10:36:52 -06:00
bin Integrated unit tests 2018-10-06 12:12:36 -05:00
classes Merge branch 'master' into meta-box-create 2022-02-13 10:48:02 -06:00
frontend Stylized widget. Minor tweaks on spee.ch publisher 2018-11-12 14:38:16 -06:00
inc Added html-to-markdown package via composer 2018-10-05 16:50:42 -05:00
logs Implemented Daemon Logger 2018-10-29 16:55:26 -05:00
templates check if post meta is set 2022-02-12 18:10:06 -06:00
tests Created test for converting post to Markdown 2018-10-11 18:55:43 -05:00
tmp Keeping tmp directory in repo 2018-10-05 17:57:46 -05:00
vendor Added html-to-markdown package via composer 2018-10-05 16:50:42 -05:00
.gitignore Basic tabbed structure (#45) 2022-02-12 09:56:59 -06:00
.phpcs.xml.dist Integrated unit tests 2018-10-06 12:12:36 -05:00
.travis.yml Integrated unit tests 2018-10-06 12:12:36 -05:00
composer.json Added html-to-markdown package via composer 2018-10-05 16:50:42 -05:00
composer.lock Added html-to-markdown package via composer 2018-10-05 16:50:42 -05:00
index.php Initial Commit - Created Structure and Basic Settings Menu 2018-08-20 18:39:57 -05:00
lbrypress.php Allowing for Speech Channel credentials in options page 2019-01-24 13:26:30 -06:00
phpunit.xml.dist Integrated unit tests 2018-10-06 12:12:36 -05:00
README.md updates for speech channel 2020-12-10 00:10:15 -05:00
uninstall.php Initial Commit - Created Structure and Basic Settings Menu 2018-08-20 18:39:57 -05:00

LBRYPress - Publish from Wordpress to LBRY automatically

This plugin and readme are in early development. Thank you for your patience.

How it works

The LBRYPress plugin communicates with the LBRY network via a locally installed SDK. This allows you to create a channel and then mirror any published posts to it. If there are images or GIFs in your post, they will be uploaded to spee.ch (our blockchain-based image sharing service) automatically during the publishing process. If you update a post, it will also be updated on LBRY.

Downloading and installing the Wordpress plugin

First, install the LBRYPress plugin on Wordpress.

  1. Download the zip file for this repository.
  2. In Wordpress, install the plugin from the zip file. It will show errors until the next steps are completed.

Downloading and installing LBRY

This will step you through downloading the LBRY SDK, installing it, and running as a system service.

  1. Download the latest LBRY SDK from our releases page for your OS: wget https://github.com/lbryio/lbry-sdk/releases/download/v0.86.1/lbrynet-linux.zip
  2. Make a new directory in /opt named lbry: mkdir /opt/lbry
  3. You may need to install Unzip: sudo apt get install unzip
  4. Unzip the file here: unzip lbrynet-linux.zip -d /opt/lbry
  5. To get started, you can run the SDK manually at first. Open a new terminal, cd /opt/lbry and run: ./lbrynet start Once you do this, the SDK will startup in the current session and sync with the blockchain. Open a new terminal to issue further commands.

Install LBRY as system service (can skip this step for now)

  1. Create a file called lbrynet.service and insert it into /etc/systemd/system/:
[Unit]
Description="LBRYnet daemon"
After=network.target
[Service]
ExecStart=/opt/lbry/lbrynet start
User=YOURUSERNAME
Group=YOURUSERGROUP
Restart=on-failure
KillMode=process
[Install]
WantedBy=multi-user.target
  1. Run sudo systemctl daemon-reload
  2. Start it with: sudo service lbrynet start. If you are already running LBRY in the background, issue a lbrynet stop command first.

Funding and preparing your wallet

LBRY will require LBRY Credits (LBC) for the channel creation and publishing process. You can send LBC to this instance from your LBRY app / lbry.tv using the Wallet page > Send Credits. If you need LBC, sign up for a lbry.tv account or email us. After you send credits, they will be split into smaller amounts to facilatate the publishing process. You can also use an existing LBRY Desktop wallet/ channel by copying the default_wallet file into ~/.local/shared/lbry/lbryum/wallets.

  1. Go to the LBRYPress plugin page and find your wallet address:

  2. Copy this address and send at least a few credits to it. From the Desktop app/lbry.tv, go to the Wallet page > Send Credits.

  3. We will take the amount you deposited and split it up by a factor of 10. So if you deposited 10 LBC, you'd split it into 100: The decimal point is important, it will throw back an error without the structure of "10.0"

  4. Go to the LBRYnet Directory cd /opt/lbry/

  5. Run the command: ./lbrynet account fund --amount=10.0 --outputs=100

Setting up publishing

Experimental: republishing of images in blog to LBRY: If images or GIFs are used in your posts, they should be reposted to as thumbnails similar to the upload process in the LBRY apps. This feature may not work correctly at this time.

Please note: spee.ch channel creation is no longer available and that step can be skiped.

  1. Enter 0.1 for LBC per Publish.
  2. Click Save Settings.

Setting up a your blog publishing channel

If you don't already have a channel, this process will create a channel in your local wallet where your blog posts will be published to. Any available channels will be listed at the top of the Your Publishable Channels section.

  1. Enter the channel you wish to create and publish under in New Channel Name.
  2. Enter a bid of 0.01 (this can be increased later).
  3. Click Add New Channel.

Publishing blog posts

When creating a new post (or editing an existing one), you can choose to publish it on LBRY as well. If you do this for an existing post, it will not retain the original date (known issue).

  1. Create your post.
  2. At the bottom of the Document menu, find LBRY Network, and click Sync this post on channel.
  3. Select the channel you want to publish it on.
  4. Click Publish.
  5. The plugin will automatically add a link to content on LBRY.
  6. Give it a few minutes to publish and be confirmed on the network (there's currently no feedback for this). Check your content at: https://lbry.tv/@ChannelName.

If you edit a post, it will also create an update on the LBRY network.

Need help?

Email us at hello@lbry.com if you need assistance setting up the LBRYPress plugin.