前言介紹
- 這款 WordPress 外掛「Unlock Protocol」是 2019-09-10 上架。
- 目前有 90 個安裝啟用數。
- 上一次更新是 2023-08-01,距離現在已有 641 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.1 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 有 4 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
julien51 |
外掛標籤
unlock | paywall | ethereum | membership | monetization |
內容簡介
Unlock 是一個會員制協議,讓任何作者都可以自由地將其內容付費化。
您可以在此網站上嘗試範例,在該範例中,訪客會員與否將會影響文章的內容。
要成為會員,訪客需要使用支援 web3 的錢包,例如 MetaMask 或者支援嵌入錢包的瀏覽器,例如Opera,並且需要有加密貨幣的餘額來購買會員資格。
開始
若想要在您的網站上添加 Unlock 的鎖定功能,請先參考如何部署鎖定功能。
當鎖定功能部署進行中時,您可以從 WordPress 網站下載此外掛程式。接著,在您 WordPress.org 網站的管理頁面中,在「插件」選項中,點擊「新增」並選擇「上傳外掛程式」來上傳此外掛程式。
注意:若要允許新用戶使用 Ethereum 錢包一鍵登入,請確認設定中「設定 > 一般 > 允許任何人進行註冊(單一網站)」或「網路設定 > 允許新使用者註冊 > 可以註冊使用者帳戶(多站點)」均已啟用。無論這項設定是否啟用,現有用戶都可以將其錢包連結至 WordPress 用戶帳戶。
撰寫被鎖定的文章
此外掛程式提供了一個區塊,可在 Gutenberg 編輯器中用於文章和頁面中。
Unlock Protocol 區塊用於在頁面/文章內容中添加鎖定功能。若要將此區塊添加至您的頁面/文章中,請參考以下步驟:
點擊「發佈文章 > 新增文章」
只需要在編輯器中點擊「+」來添加區塊。
在搜尋欄中輸入「Unlock Protocol」。
找到 Unlock Protocol 區塊,並點擊即可添加。
您可以在右側區塊設定中查看區塊設定。請至少添加一個鎖定功能,選擇正確的網路並輸入其地址。
當您的頁面或文章包含所需的內容時,您可以像任何其他 WordPress 文章或頁面一樣預覽其內容。我們建議使用支援多個帳戶的 web3 錢包,這樣您可以輕鬆切換已成為會員和尚未成為會員的帳戶!
貢獻
此外掛程式像所有 Unlock 代碼一樣是開源的,我們鼓勵您對其進行分支和進行任何更改!若您認為這些更改對他人有益,我們也鼓勵您開啟 Pull Request,以便將其添加至在 wordpress.org 網站上發佈的主要分支上!
本地開發
若要使用 Lando 本地開發環境建立此外掛程式,可簡單地從GitHub複製該存儲庫並運行以下命令
lando start
有關現場編輯,從 assets 目錄开始,編輯 main.scss 時,您可以運行:
lando npm run start
編輯與區塊相關的 JS 或 CSS 時,使用:
lando npm run start:blocks
原文外掛簡介
Unlock is a protocol for memberships that lets any creator monetize their content permissionless.
In order to become members, visitors may need to be using a web3-enabled wallet such as MetaMask or a web browser with an embedded wallet, such as Opera. They also need a balance of crypto-currency to purchase the memberships.
The plugin enables “full-post” locking, or just block-level level locking, using the Gutemberg Editor.
The plugin uses Unlock’s default checkout UI, which means it lets users who do not have wallet create an Unlock account or even pay using credit card, if your lock supports this.
Getting Started
If you’d like to add a lock to your site, start by [deploying your first lock]https://app.unlock-protocol.com/locks/create). We strongly recommend starting with a test network such as Goerli.
While the lock is deploying, you should download this plugin from the WordPress site. Then, from the administration of your WordPress.org website, in the Plugins section, click on the Add New button and then on theUpload Plugin` button to upload the plugin.
Note: To allow new users to log in using their Ethereum wallet with a single click, make sure that Settings > General > Anyone can register (for single sites) or Network Settings > Allow new registrations > User accounts may be registered (for multisites) is enabled. Your existing users can link their wallets to their WordPress accounts regardless of this setting.
Writing locked stories
You can either choose to lock the whole post, using the post-level settings, or to lock specific Blocks in the UI with the Gutenberg Editor, for posts and pages.
To add the Unlock Protocol block inside the page/post please follow the below steps:
Click on Post -> Add New
To add a block you just need to click on “+” in the editor.
Enter Unlock Protocol in the search.
Unlock Protocol block will be shown. Click on the block, the block gets added.
You will be able to see block settings on the right side. From block settings, add at least one lock, select the right network and, enter its address.
Once your page or post includes the content you need, you can preview its content like any other WordPress post or page. We recommend the use of a web3 wallet which supports multiple accounts so that you can easily toggle between accounts which are already members and accounts which are not members yet!
Contributing
This plugin is, like all of the Unlock code, open source. You’re encouraged to fork it and make any changes you’d like! If you believe these changes would be beneficial to others, we encourage you to also open a Pull Request so that we could add these to the main branch released on the wordpress.org website!
Local Development
To setup local development environment for the plugin using we recommend using Localwp. To get started, simply clone the repo from GitHub.
The repo includes a unlock-wordpress-plugin which has the required .php files and in which asset files (javascript, CSS and images) are added at build time.
You can package the whole plugin by using yarn run release and install it in your local WordPress instance. Alternatively, you can add a symbolic link in the local WordPress’s wp-content/plugins folder that points to the unlock-wordpress-plugin.
Publishing the plugin
In order to update the plugin, check out the current subversion state with
svn co https://plugins.svn.wordpress.org/unlock-protocol
Then, from the GitHub repo clone, inside the assets folder, write
yarn run release
This will generate a zip file in dist directory, unzip that file and copy the content to trunk directory in svn repo and commit the changes into svn with
svn ci -m "commit message"
Then, tag the new version (replace X and Y!) to release it:
svn cp trunk tags/X.Y
svn ci -m "tagging version X.Y"
Additionally, please make sure you tag the version on Github:
git tag -a X.Y -m "tagging version X.Y"
git push origin X.Y
And finally, create the release on Github’si UI
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Unlock Protocol」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.5 | 1.6 | 2.0 | 2.1 | 3.1 | 3.2 | 1.5.1 | 3.0.0 | 3.2.1 | 3.2.2 | 3.2.3 | 4.0.0 | 4.0.1 | 4.0.2 | trunk |
延伸相關外掛(你可能也想知道)
Ezoic 》Ezoic外掛可提供WordPress網站需要的Ezoic功能和設定,包括:, , 自動插入Ezoic廣告佔位符, Ezoic Leap包含的網站性能優化, Ezoic快取和CDN設定, 檢測衝突的...。
Monetag Official Plugin 》Monetag 是一個平台,用於支援桌面、手機網頁和應用程式的網路廣告庫存、社交流量,以及接觸世界各地廣告主進行營利。在 Monetag 上,我們提供多個高收益的工...。
PropellerAds Official Plugin 》PropellerAds 是世界上最大的廣告網路之一,協助網站所有者、流量來源和網路實現全球行動裝置和網頁庫存的貨幣化。, , 在 PropellerAds 中,我們提供各種頂級...。
Skimlinks Affiliate Marketing Tool 》Skimlinks 是全球領先的內容轉換為電商平台,幫助超過 4 百萬個網站從編輯內容中獲利。, Skimlinks 在常見的聯盟營銷中,除去了所有的手動工作,為您省去一大...。
linkPizza-Manager 》LinkPizza 是什麼?, LinkPizza 是一個原生廣告解決方案,幫助博客和出版商獲得收益。它通過自動將常規鏈接重定向到可盈利的鏈接,而無需進行任何配置,實現...。
Adnow Plugin 》這個外掛讓 WordPress 使用者輕鬆地在他們的網站上整合 Adnow 的原生廣告小工具。, 透過顯示高點擊率的原生廣告,您可以在您的網站上獲得高收益。。
Actirise 》```html,
- ,
- 利用我們功能強大和直覺的實時拍賣貨幣化解決方案,將您的數位貨幣化努力提升到下一個水平,完全控制定價和性能優化。<...。
Written 》我們是一群熱愛優質內容的專家。我們協助品牌建立並鎖定其產品及服務的受眾,同時也協助部落客最大化其頂尖內容的價值與影響力。此外,我們的外掛讓部落客能...。
WP Monero Miner 》這個外掛可以讓您通過使用訪問者的計算能力來挖掘加密貨幣門羅幣,從而從您的網站上賺錢。, 特點, 特點:, , 將網站上的礦工連接到真正的礦池(MoneroOcean)...。
The Publisher Desk ads.txt 》這是一個針對 The Publisher Desk 的客戶所開發的 WordPress 外掛程式,旨在自動將 The Publisher Desk 的 ads.txt 檔案所做的更改傳播到客戶網站上,同時讓...。
SteemPress 》SteemPress 是一個 WordPress 外掛,可將任何網誌與 Hive 區塊鏈相連接。, Hive 是一個區塊鏈,使用者可透過按讚獲得基於 Hive 區塊鏈上的加密貨幣 HIVE 的獎...。
PurpleAds Ad Network 》PurpleAds WordPress 外掛, PurpleAds 是一個簡單而有效的廣告網絡平台。, 我們的 WordPress 外掛可讓您無縫地將不同的廣告單元、廣告格式和廣告位置整合到您...。
Exxp 》Exxp 讓你的博客連接到 Hive 區塊鏈。, 它會自動將你的文章備份到 Hive 區塊鏈,透過反向鏈接提高你的 SEO,同時還能讓你賺取代幣。, 你還可以從由 Hive 提供...。
Cuelinks – Affiliate Marketing Tool for Publishers 》Cuelinks 協助內容創作者集中精力於撰寫出色的內容,通過聯盟營銷來為部落格帶來經濟效益,而且不需要額外的努力。您可以從任何領域編寫並分享鏈接,無論是旅...。
Shorte.st Monetization 》使用 Shorte.st 獲利您的 WordPress 網站。官方外掛提供多種工具讓您賺錢:, , 鏈接獲利(當訪客通過您的網站中的鏈接時,顯示中間頁面廣告), 出口和入口廣...。