Compare commits

...
Author SHA1 Message Date
Jeremy Kauffman 76bc068b29 hacky app image support 2020-01-21 18:18:52 -05:00
Jeremy Kauffman 57f16b454c add faq image 2020-01-21 15:00:26 -05:00
Thomas Zarebczan eed77ff351 appimage redirects 2020-01-21 12:50:22 -05:00
Thomas Zarebczan 1f3ff568f4 invites FAQ (#1207) 2020-01-20 15:47:06 -05:00
12 changed files with 128 additions and 75 deletions

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
---
title: How does the invite program work?
category: getstarted
---
You can earn LBRY Credits (LBC) for inviting others to use LBRY as well as letting us know who invited you. Invite new users to LBRY via email or a customized link on the [Invites page of LBRY Desktop or lbry.tv](http://open.lbry.com/?invite). This page will also show the status of existing invites.
*Note: Referral redemptions are typically limited to 20, but increases as your channel grows in popularity on LBRY. See the [limits section below](#limits)*
## Finding your invite link and status
To get to the [Invites area](http://open.lbry.com/?invite), click the Account menu in the top right and select **Invites**. You can now customize your invite link by selecting one of your channels from the drop down. Any of them will work, but the email we send out will include your largest subbed channel. You can also invite a user directly via email.
You will also see all of your invites, along with their status(es) - whether the user has accepted it (signed in) and if it is claimable or not (if the user is reward approved).
![invite](https://spee.ch/7/invites6.jpg)
## How does the invite link work?
When a user clicks your invite link, they are greeted with a welcome message and option to create an account. They will also automatically subscribe to your channel.
![url](https://spee.ch/6/invites-4.jpeg)
## When do I get my rewards?
If you have claimable invites, you will see a claim button with the total reward amount on the page. You will not receive rewards for each referral until those users join and use LBRY themselves (see below section regarding claimable invites). This is to combat invite fraud and abuse.
## Claiming your bonus for being invited and setting the inviter
For a limited time, you can claim a reward for being invited and letting us know which channel did so (so they can earn also). You must set the inviter before claiming your reward.
![invitee](https://spee.ch/b/invite-5.jpg)
## How many LBRY Credits do I earn?
New invites are eligible for a 20 LBC reward (subject to change based on our discretion).
## Is there a limit to the credits I can earn? {#limits}
The default limit for claimable invites is 20. Your limit increases as you use LBRY more and your channel grows in popularity. If you want us to review your account and allow for more redemptions, please first make sure you've claimed your maximum and then [email us](mailto:help@lbry.com) with details about yourself and users you are inviting.
## What is the difference between accepted and claimable?
Accepted means the user has signed into LBRY. Claimable means they have verified their account.
## What are the criteria for a claimable invite?
A claimable invite has the same definition as a Rewards eligible or Verified LBRY user. This means the referred user must have logged into LBRY and verified their account.
LBRY users who abuse either the Invite or Rewards system will not be eligible for invite redemption. If you have specific questions about individual invites which are not claimable, please reach out to the [helpdesk](mailto:help@lbry.com) with details.
## I have a clever idea to cheat the invite system
If you want to waste your time to receive no reward, be our guest. We will monitor the system closely and go to significant lengths to only allow legitimate users to join.
Rather than spending the time attempting to cheat and failing, we suggest you do productive work to earn LBRY credits. Join our [Discord chat](http://chat.lbry.com) and message or email [Tom](mailto:tom@lbry.com) (@jiggytom) or [Julie](mailto:julie@lbry.com) (@jsigwart) for opportunities.
-49
View File
@@ -1,49 +0,0 @@
---
title: How does the referral program work?
category: getstarted
---
You can earn LBRY Credits (LBC) for referring others to use LBRY. You can now view the status of your referrals and invite new users to LBRY via email or referral link on the Account overview page of LBRY Desktop or lbry.tv.
## Getting your referral link
To get to the Account Overview area, click the Account menu at the top right, and select `Overview`.
You will see all of your referrals, along with their status(es) - whether the user has accepted it (signed in) and if it is claimable or not (if the user is reward approved).
![invite]("https://spee.ch/f/invites.jpg)
*Note: Referral redemptions are currently limited to 10, but you can invite as many as you want*
## How many LBRY Credits do I earn and how do I see how many credits I've earned?
New invites are eligible for a 20 LBC reward (subject to change based on our discretion).
## When do I get my rewards?
If you have claimable rewards, you will see a claim button with the total reward amount on the page. You will not receive rewards for each referral until those users join and use LBRY themselves (see below section regarding claimable referrals). This is to combat referral fraud and abuse.
## How does the referral link work?
After a user clicks, installs and registers their email with LBRY, it may take up to an hour for the invite to appear on your Invites page.
## What are the criteria for a claimable referral?
A claimable referral has the same definition as a Rewards eligible or Verified LBRY user. This means the referred user must have logged into LBRY and verified their account.
LBRY users who abuse either the Referral or Rewards system will not be eligible for referral redemption. If you have specific questions about individual referrals which are not claimable, please reach out to the [helpdesk](mailto:help@lbry.com) with details.
## What is the difference between accepted and claimable?
Accepted means the user has signed into LBRY. Claimable means they have verified their account.
## Is there a limit to the credits I can earn?
If you expect to refer more than 50-100 people, please discuss it with us on [Discord chat](http://chat.lbry.com) or email [us](mailto:tom@lbry.com).
Currently, there is a limit of 10 redemptions per account.
## I have a clever idea to cheat the referral system.
If you want to waste your time to receive no reward, be our guest. We will be monitoring the system closely and will be going to significant lengths to only allow legitimate users to join.
Rather than spending the time attempting to cheat and failing, we suggest you do productive work to earn LBRY credits. Join our [Discord chat](http://chat.lbry.com) and message or email [Tom](mailto:tom@lbry.com) (@jiggytom) or [Julie](mailto:julie@lbry.com) (@jsigwart) for opportunities.
+20 -4
View File
@@ -12,7 +12,7 @@ class DownloadActions extends Actions
public static function executeDownloadReleaseAsset(string $repo, string $ext, bool $allowPrerelease = false)
{
return Controller::redirect(GitHub::getRepoReleaseUrl($repo, OS::getOsForExtension($ext), $allowPrerelease) ?: '/get', 302);
return Controller::redirect(GitHub::getRepoReleaseUrl($repo, $ext, $allowPrerelease) ?: '/get', 302);
}
public static function executeDownloadSnapshot(string $type)
@@ -40,6 +40,7 @@ class DownloadActions extends Actions
$osChoices = OS::getAll();
list($uri, $osTitle, $osIcon) = $osChoices[$os];
$params = [
'preferredExt' => $os === Os::OS_LINUX ? 'AppImage' : '',
'osTitle' => $osTitle,
'osIcon' => $osIcon,
'osScreenshotSrc' => 'https://spee.ch/b/desktop-035-og.jpeg',
@@ -53,7 +54,7 @@ class DownloadActions extends Actions
}
else
{
$asset = Github::getRepoAsset(GitHub::REPO_LBRY_DESKTOP, $os);
$asset = Github::getRepoAsset(GitHub::REPO_LBRY_DESKTOP, $os, $params['preferredExt']);
$params['downloadUrl'] = $asset ? $asset['browser_download_url'] : null;
}
@@ -132,21 +133,36 @@ class DownloadActions extends Actions
$os = static::guessOS();
if ($os && isset($osChoices[$os])) {
list($uri, $osTitle, $osIcon, $buttonLabel, $analyticsLabel) = $osChoices[$os];
list($uri, $osTitle, $osIcon, $oldButtonLabel, $analyticsLabel) = $osChoices[$os];
if ($os !== OS::OS_ANDROID) {
$asset = Github::getRepoAsset(GitHub::REPO_LBRY_DESKTOP, $os);
$asset = Github::getRepoAsset(GitHub::REPO_LBRY_DESKTOP, $os, $vars['preferredExt'] ?? '');
} else {
$asset = ['browser_download_url' => static::ANDROID_STORE_URL];
}
$buttonLabel = __('download.for-os2', ['%os%' => OS::OS_DETAIL($os)[1]]);
if (isset($vars['preferredExt']) && $vars['preferredExt']) {
$buttonLabel = __('Download .%ext%', ['%ext%' => $vars['preferredExt']]);
}
$vars += [
'analyticsLabel' => $analyticsLabel,
'buttonLabel' => $buttonLabel,
'isDownload' => true,
'downloadUrl' => $asset ? $asset['browser_download_url'] : null,
'os' => $os,
'skipRender' => isset($vars['preferredExt']) && $vars['preferredExt'] &&
substr_compare($asset['browser_download_url'], $vars['preferredExt'], -strlen($vars['preferredExt'])) !== 0,
'isAuto' => Request::getParam('auto'),
];
if ($os === OS::OS_LINUX && !isset($vars['preferredExt'])) {
$vars['isDownload'] = false;
$vars['downloadUrl'] = '/linux';
}
}
return $vars;
+4 -1
View File
@@ -17,7 +17,7 @@
/faq/claimtrie-implementation: https://lbry.tech/resources/lbry-claimtrie
/faq/proof-algorithm: https://lbry.tech/resources/pow
/faq/regtest-setup-guide: https://lbry.tech/resources/regtest-setup
/faq/bounty https://lbry.com/faq/how-to-get-lbry-command-line
/faq/bounty: https://lbry.tech/contribute
# FAQ
/faq/tips: /faq/appreciation
@@ -29,6 +29,7 @@
/faq/how-to-report-bugs: /faq/support
/what-is-lbry: /faq/what-is-lbry
/youtube/sync: /faq/youtube
/faq/referrals: /faq/invites
# Get
/dl/lbry_setup.sh: /get
@@ -72,11 +73,13 @@
/get/lbrynet.macos.zip: /releases/lbry.pkg
/get/lbrynet.osx.zip: /releases/lbry.pkg
/get/lbry.deb: /releases/lbry-desktop.deb
/get/lbry.AppImage: /releases/lbry-desktop.AppImage
/get/lbry.dmg: /releases/lbry-desktop.dmg
/get/lbry.pkg: /releases/lbry-desktop.dmg
/get/lbry.exe: /releases/lbry-desktop.exe
/get/lbry.msi: /releases/lbry-desktop.exe
/get/lbry.pre.deb: /releases/pre/lbry-desktop.deb
/get/lbry.pre.AppImage: /releases/pre/lbry-desktop.AppImage
/get/lbry.pre.dmg: /releases/pre/lbry-desktop.dmg
/get/lbry.pre.pkg: /releases/pre/lbry-desktop.dmg
/get/lbry.pre.exe: /releases/pre/lbry-desktop.exe
+18 -7
View File
@@ -10,7 +10,7 @@ class Github
switch ($os) {
case OS::OS_LINUX:
return
in_array($ext, ['deb']) ||
in_array($ext, ['deb', 'AppImage']) ||
in_array($asset['content_type'], ['application/x-debian-package', 'application/x-deb']) ||
stripos($asset['name'], 'linux') !== false;
case OS::OS_OSX:
@@ -30,7 +30,7 @@ class Github
}
}
protected static function findReleaseAssetForOs(array $release, string $os)
protected static function findReleaseAsset(array $release, string $os, string $preferredExt = '')
{
if (!in_array($os, array_keys(OS::getAll()))) {
throw new DomainException('Unknown OS');
@@ -40,11 +40,21 @@ class Github
throw new Exception('Release array missing assets - possible GitHub auth failure, auth limit, and/or inspect releases array');
}
$bestAsset = null;
foreach ($release['assets'] as $asset) {
if (static::isAssetForOs($asset, $os)) {
return $asset;
if (!$bestAsset) {
$bestAsset = $asset;
} else if ($os === Os::OS_LINUX) {
$ext = pathinfo($asset['name'], PATHINFO_EXTENSION);
if ($ext === $preferredExt || (!$preferredExt && $ext === 'AppImage')) {
$bestAsset = $asset;
}
}
}
}
return $bestAsset;
}
public static function getRepoRelease($repo, $prerelease = false, $cache = true)
@@ -63,16 +73,17 @@ class Github
return null;
}
public static function getRepoAsset($repo, $os, $prerelease = false, $cache = true)
public static function getRepoAsset($repo, $os, $preferredExt = '', $prerelease = false, $cache = true)
{
$release = static::getRepoRelease($repo, $prerelease, $cache);
return $release ? static::findReleaseAssetForOs($release, $os) : null;
return $release ? static::findReleaseAsset($release, $os, $preferredExt) : null;
}
public static function getRepoReleaseUrl($repo, $os, bool $prerelease = false, $cache = true)
public static function getRepoReleaseUrl($repo, $ext, bool $prerelease = false, $cache = true)
{
$asset = static::getRepoAsset($repo, $os, $prerelease, $cache);
$os = OS::getOsForExtension($ext);
$asset = static::getRepoAsset($repo, $os, $ext, $prerelease, $cache);
return $asset ? $asset['browser_download_url'] : null;
}
+1
View File
@@ -83,6 +83,7 @@ class OS
{
switch ($ext) {
case 'deb':
case 'AppImage':
return OS::OS_LINUX;
case 'dmg':
+1 -1
View File
@@ -1,4 +1,4 @@
<?php Response::addMetaImages($post->getImageUrls()) ?>
<?php Response::addMetaImages($post->getImageUrls() ?: [Request::getHostAndProto() . '/img/og-faq.png?_cache=' . date('Y-m-d')]) ?>
<?php Response::setMetaDescription(htmlspecialchars($post->getContentText(20, true))) ?>
<?php NavActions::setNavUri('/learn') ?>
+1
View File
@@ -1,3 +1,4 @@
<?php Response::addMetaImage(Request::getHostAndProto() . '/img/og-faq.png?_cache=' . date('Y-m-d')) ?>
<?php Response::setMetaDescription(__('description.faq')) ?>
<main class="ancillary">
+20 -11
View File
@@ -1,15 +1,24 @@
<?php if ($downloadUrl): ?>
<?php if ($skipRender): ?>
<?php elseif ($downloadUrl): ?>
<?php if ($os !== OS::OS_ANDROID): ?>
<a class="button button--<?php echo $buttonStyle?>"
download
href="<?php echo $downloadUrl ?>"
id="get-download-btn"
data-facebook-track="1"
data-analytics-category="Sign Up"
data-analytics-action="Download"
data-analytics-label="<?php echo $analyticsLabel ?>"
title="Download our app"
><?php echo __('download.for-os2', ['%os%' => OS::OS_DETAIL($os)[1]]) ?></a>
<?php if ($isDownload): ?>
<a class="button button--<?php echo $buttonStyle?>"
download
href="<?php echo $downloadUrl ?>"
id="get-download-btn"
data-facebook-track="1"
data-analytics-category="Sign Up"
data-analytics-action="Download"
data-analytics-label="<?php echo $analyticsLabel ?>"
title="Download LBRY App"
><?php echo $buttonLabel ?></a>
<?php else: ?>
<a class="button button--<?php echo $buttonStyle?>"
href="<?php echo $downloadUrl ?>"
id="get-download-btn"
title="Download LBRY App"
><?php echo $buttonLabel ?></a>
<?php endif ?>
<?php else: ?>
<a
class="button button--google-play"
+1 -1
View File
@@ -4,7 +4,7 @@
<br/>
<?php if ($os === OS::OS_LINUX): ?>
Works with Ubuntu, Debian, or any distro with <code>apt</code> or <code>dpkg</code>. For other Linux flavors including Arch and Flatpak support or compiling from source, <a href="https://github.com/lbryio/lbry-desktop#install">see our GitHub install page</a>.
We provide app builds as AppImage and .deb. For other Linux flavors including Arch and Flatpak support or compiling from source, <a href="https://github.com/lbryio/lbry-desktop#install">see our GitHub install page</a>.
<?php elseif ($os === OS::OS_OSX): ?>
Works with with macOS version 10.12.4 (Sierra), and higher.
<?php elseif ($sourceLink): ?>
+8 -1
View File
@@ -19,8 +19,15 @@
<p>Securely download the LBRY app here, and see what all the fuss is about!</p>
<?php $metaHtml = $os !== OS::OS_ANDROID ? View::Render('download/_meta') : false ?>
<?php echo View::Render('download/_downloadButton', [
'buttonStyle' => 'primary'
'buttonStyle' => 'primary',
'preferredExt' => $preferredExt
])?>
<?php if ($os === OS::OS_LINUX && $preferredExt === 'AppImage'): ?>
<?php echo View::Render('download/_downloadButton', [
'buttonStyle' => 'primary',
'preferredExt' => 'deb'
])?>
<?php endif ?>
<?php if ($os === OS::OS_ANDROID): ?>
<p style="font-size: 0.8rem;">You can also <a href="http://lbry.com/releases/lbry-android.apk" title="Download our Android app directly">download</a> our Android app directly</p>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB