diff --git a/model/Post.class.php b/model/Post.class.php index a9703b7e..8ba48f7a 100644 --- a/model/Post.class.php +++ b/model/Post.class.php @@ -152,6 +152,11 @@ class Post return $this->author !== null; } + public function hasDate() + { + return $this->date !== null; + } + public function getAuthorName() { switch(strtolower($this->author)) diff --git a/posts/faq/api-help.md b/posts/faq/api-help.md index 29c9ff32..ebe0b5de 100644 --- a/posts/faq/api-help.md +++ b/posts/faq/api-help.md @@ -1,6 +1,5 @@ --- title: How do I see the list of API functions I can call, and how do I call them? -date: '2015-06-21 16:00:00' --- Here is an example script to get the documentation for the various API calls. To use any of the functions displayed, just provide any specified arguments in a dictionary. @@ -15,7 +14,7 @@ Note: the lbry api can only be used while either the app or lbrynet-daemon comma except: print "You don't have lbrynet installed!" sys.exit(0) - + api = JSONRPCProxy.from_url(API_CONNECTION_STRING) if not api.is_running(): print api.daemon_status() diff --git a/posts/faq/custom-ui.md b/posts/faq/custom-ui.md index d908b1ae..d342bbe7 100644 --- a/posts/faq/custom-ui.md +++ b/posts/faq/custom-ui.md @@ -1,10 +1,13 @@ --- title: How do I specify a web-UI to use? -date: '2015-06-21 16:00:00' --- -If the files for the UI you'd like to use are storred locally on your computer, start lbry with the --ui flag: `lbrynet-daemon --ui=/full/path/to/ui/files/root/folder` +If the files for the UI you'd like to use are stored locally on your computer, start lbry with the `--ui` flag: -Note, once set with the UI flag the given UI will be cached by lbry and used as the default going forward. Also, it will only successfully load a UI if it contains a conforming requirements.txt file to specify required lbrynet and lbryum versions. [Here](https://github.com/lbryio/lbry-web-ui/blob/master/dist/requirements.txt) is an example requirements.txt file. + lbrynet-daemon --ui=/full/path/to/ui/files/root/folder -To reset your ui to pull from lbryio, or to try a UI still in development, run lbry with the --branch flag: `lbrynet=daemon --branch=master` +Once set with the UI flag, the given UI will be cached by lbry and used as the default going forward. Also, it will only successfully load a UI if it contains a conforming requirements.txt file to specify required lbrynet and lbryum versions. [Here](https://github.com/lbryio/lbry-web-ui/blob/master/dist/requirements.txt) is an example requirements.txt file. + +To reset your ui to pull from lbryio, or to try a UI still in development, run lbry with the `--branch` flag: + + lbrynet=daemon --branch=master diff --git a/posts/faq/how-to-get-lbry-command-line.md b/posts/faq/how-to-get-lbry-command-line.md index 92637b7a..253f6c0f 100644 --- a/posts/faq/how-to-get-lbry-command-line.md +++ b/posts/faq/how-to-get-lbry-command-line.md @@ -1,19 +1,20 @@ --- title: How do I get LBRY for development -date: '2015-06-21 16:00:00' --- -In order to run lbry from command line, you need more than the packaged app/deb. +#### On Linux -####On OS X +LBRY is installed into `/usr/share/python/lbrynet`. The executables are in +`/usr/share/python/lbrynet/bin`. For example, to run lbrynet-daemon, type: -You can install LBRY command line by running `curl -sL https://rawgit.com/lbryio/lbry-setup/master/lbry_setup_osx.sh | sudo bash` in a terminal. This script will install lbrynet and its dependancies, as well as the app. + /usr/share/python/lbrynet/bin/lbry -####On Linux -On Ubuntu or Mint you can install the prerequisites and lbrynet by running - sudo apt-get install libgmp3-dev build-essential python2.7 python2.7-dev python-pip - git clone https://github.com/lbryio/lbry.git - cd lbry - sudo python setup.py install +#### On OS X + +On OS X, you need more than the packaged app. You can install LBRY command line by running this in a terminal: + + curl -sL https://raw.githubusercontent.com/lbryio/lbry-setup/master/lbry_setup_osx.sh | sudo bash + +This script will install lbrynet and its dependancies, as well as the app. \ No newline at end of file diff --git a/posts/faq/how-to-run-lbry-with-lbrycrdd.md b/posts/faq/how-to-run-lbry-with-lbrycrdd.md index 1f996ea7..6f08f2a5 100644 --- a/posts/faq/how-to-run-lbry-with-lbrycrdd.md +++ b/posts/faq/how-to-run-lbry-with-lbrycrdd.md @@ -1,8 +1,9 @@ --- title: How do I run LBRY with lbrycrdd? -date: '2015-06-21 16:00:00' --- -Start lbry with the --wallet flag set: `lbrynet-daemon --wallet=lbrycrd` +Start lbry with the `--wallet flag` set: -Note: when you change the wallet it is persistant until you specify you want to use another wallet - lbryum - with the --wallet flag again. + lbrynet-daemon --wallet=lbrycrd + +Note: when you change the wallet, it is persistant until you specify you want to use another wallet - lbryum - with the --wallet flag again. diff --git a/posts/faq/how-to-run-lbry.md b/posts/faq/how-to-run-lbry.md index 8bfb2ea7..586d83d7 100644 --- a/posts/faq/how-to-run-lbry.md +++ b/posts/faq/how-to-run-lbry.md @@ -1,6 +1,5 @@ --- title: How do I run lbry from command line? -date: '2015-06-21 16:00:00' --- In a terminal window, run `lbrynet-daemon`. diff --git a/posts/faq/how-to-stop-lbry.md b/posts/faq/how-to-stop-lbry.md index 66eeabfc..3e7f0c96 100644 --- a/posts/faq/how-to-stop-lbry.md +++ b/posts/faq/how-to-stop-lbry.md @@ -1,6 +1,5 @@ --- title: How do I stop lbry from the command line? -date: '2015-06-21 16:00:00' --- You can ctrl-c or run `stop-lbrynet-daemon` diff --git a/posts/faq/is-lbry-open-source.md b/posts/faq/is-lbry-open-source.md index 42cb52d4..3c421d99 100644 --- a/posts/faq/is-lbry-open-source.md +++ b/posts/faq/is-lbry-open-source.md @@ -1,6 +1,5 @@ --- title: Is LBRY Open Source? -date: '2015-05-24 16:00:00' --- All of the code we have written for LBRY is open source - even this very website! You can access it on [GitHub](https://github.com/lbryio/). \ No newline at end of file diff --git a/posts/faq/lbry-directories.md b/posts/faq/lbry-directories.md index 246007dd..3ff90564 100644 --- a/posts/faq/lbry-directories.md +++ b/posts/faq/lbry-directories.md @@ -1,6 +1,5 @@ --- title: Where are all the behind the scenes files? -date: '2015-06-21 16:00:00' --- On linux, the relevant directories are `~/.lbrynet`, `~/.lbrycrd`, and `~/.lbryum`, depending on which wallets you've used. On OS X, the folders of interest are `~/Library/Application Support/LBRY`, `~/.lbrycrd` and `~/.lbryum`, also depending on which wallets you've used. diff --git a/posts/faq/to-log-to-console.md b/posts/faq/to-log-to-console.md index d97ae91d..3884468b 100644 --- a/posts/faq/to-log-to-console.md +++ b/posts/faq/to-log-to-console.md @@ -1,6 +1,7 @@ --- title: How can I see the log in the terminal? -date: '2015-06-21 16:00:00' --- -Run lbry with the --log-to-console flag set: `lbrynet-daemon --log-to-console` +Run lbry with the `--log-to-console` flag set: + + lbrynet-daemon --log-to-console diff --git a/view/template/content/post.php b/view/template/content/post.php index 90bad16d..e75f3eec 100644 --- a/view/template/content/post.php +++ b/view/template/content/post.php @@ -9,8 +9,10 @@

getTitle()) ?>

getAuthorName() ?> - hasAuthor() ? '•' : '' ?> - getDate()->format('M j') ?> + hasAuthor() && $post->hasDate() ? '•' : '' ?> + hasDate()): ?> + getDate()->format('M j') ?> +
@@ -27,10 +29,10 @@