[WordPress] 外掛分享: BitTorrent My Blog

首頁外掛目錄 › BitTorrent My Blog
10+
安裝啟用
尚無評分
4073 天前
最後更新
問題解決
WordPress 3.9.1+ v0.1.5 上架:2015-01-11

內容簡介

您只需點擊幾下,就能將BitTorrent的強大功能引入您的博客。BitTorrent我的博客會自動為您的網站的每個部分創建.torrent文件,並自動為支持BitTorrent的瀏覽器提供這些種子文件,即使您的訪客沒有支持BitTorrent的Web瀏覽器,他們也可以通過BitTorrent點對點文件共享網絡下載並分享您的內容副本。您的網站本身為每個新種子提供網絡種子服務。

將任何網頁轉換為種子文件

安裝該插件後,您網站的任何網頁都可以通過將webseed參數添加到URL中轉換為種子文件。例如,假設您的博客在地址http://example.com/about/,那麼該頁面的種子下載鏈接為:http://example.com/about/webseed,如果您沒有使用漂亮的永久鏈接,那麼您可能會在地址http://example.com/?p=123上有一個類似的頁面,在這種情況下,您的該頁面的種子下載鏈接位於:http://example.com/?p=123&webseed。

請參閱插件FAQ以獲取更多有關主題的詳細信息。

訪客使用本地支持BitTorrent的瀏覽器(如Maelstrom)將自動接收您的頁面的.torrent版本,無需任何配置。

將WordPress媒體庫中的任何文件轉換為種子

您還可以通過簡單的短代碼將您網站上的任何文件或文件夾轉換為種子文件。 (主題設計師也可以使用相應的模板標記。)例如,您有一個名為my-awesome-video.avi的大文件,您想要通過種子發布它。當您將其上傳到您的網站上後,它將位於http://example.com/uploads/2015/01/my-awesome-video.avi。因此,您可以使用如下短代碼為其創建一個種子並獲得一個指向該種子的URL:

[wp_bittorrent_tag metainfo_file="http://example.com/uploads/2015/01/my-awesome-video.avi"]Download my video as a torrent![/wp_bittorrent_tag]

這將創建一個HTML鏈接,如下所示:

Download my video as a torrent!

相應的模板標記是,其中$url_to_torrent_seed是指您要轉換成種子的文件的URL。對於上面的示例,完整的模板代碼如下:

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「BitTorrent My Blog」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Bring the power of BitTorrent to your blog in just a few clicks. BitTorrent My Blog automatically creates .torrent files for every part of your website. It automatically serves these torrents to BitTorrent-capable browsers. Even without a BitTorrent-capable Web browser, your visitors can download and share copies of your content over the BitTorrent peer-to-peer file sharing network. Your web site itself serves as the web seed for each new torrent.
Turn any webpage into a torrent
With the plugin installed, any web page on your site can be turned into a torrent by adding a webseed parameter to the URL. So, for instance, if your blog has a page at the address http://example.com/about/, then the torrent download for this page is:
http://example.com/about/webseed

If you do not use pretty permalinks, then you might have a similar page at an address like http://example.com/?p=123, in which case your torrent download for that page is located at:
http://example.com/?p=123&webseed

See the plugin FAQ for more details on theming.
Visitors using a natively BitTorrent-capable browser (like Maelstrom), will automatically receive .torrent versions of your pages without any configuration needed.
Torrent anything in your WordPress Media Library
You can also create torrents out of any files or folders you have on your website with simple shortcodes. (Matching template tags are also available for theme designers.) For example, you have a big file called my-awesome-video.avi that you’d like to distribute as a torrent. When you upload it to your site, it’s available at http://example.com/uploads/2015/01/my-awesome-video.avi so you can make a torrent out of it and get a URL pointing to the torrent with a shortcode that looks like this:
[wp_bittorrent_tag metainfo_file="http://example.com/uploads/2015/01/my-awesome-video.avi"]Download my video as a torrent![/wp_bittorrent_tag]

This will create an HTML link like this:
Download my video as a torrent!

The matching template tag is where $url_to_torrent_seed is a URL to the file you want to make into a torrent. For the above example, the complete template code would be:
Download my video as a torrent!

See the Other Notes tab for additional shortcodes and template tag information.
Add a torrent feed to your podcast with zero configuration
BitTorrent My Blog automatically detects enclosures in RSS2 feeds and creates a new feed that replaces the original direct download enclosure with a torrent metainfo file enclosure. In other words, if you already have a podcast feed for episodes of your show, such as http://example.com/category/episodes/feed/, then simply installing this plugin will create another feed at http://example.com/category/episodes/feed/torrent/, which is the same as the regular feed but using torrent downloads instead of direct downloads. It couldn’t get easier than that!
Why might you want to publish your site on BitTorrent?

If you have a particularly popular post, replacing it with a web seed to share over BitTorrent can dramatically reduce the load on your server. This is also extremely helpful for podcasts or other large-size periodicals.
If you regularly host controversial content likely to be censored or threatened with a copyright takedown notice, publishing a web seed and encouraging your visitors to re-share it over BitTorrent can be the difference between being silenced and being heard.
Today’s centralized architectures are a thing of the past. New Web browsers, like Project Maelstrom, that use BitTorrent by default are already being experiemented with. Stay on the cutting edge.

You don’t need to know anything about BitTorrent to use this plugin. Use the zero-configuration out of the box options or customize the generated torrents on the plugin options screen. (The default tracker addresses udp://tracker.publicbt.com:80 and udp://open.demonii.com:1337/announce are used for all generated torrents unless you set your own.)
New to BitTorrent?
Read this gentle introduction to BitTorrent that clarifies BitTorrent’s complexity in very simple language.
Want to try before you install? Download the previous link as a torrent!
If you like this plugin, please consider making a donation for your use of the plugin, purchasing one of Meitar’s web development books or, better yet, contributing directly to Meitar’s Cyberbusking fund. (Publishing royalties ain’t exactly the lucrative income it used to be, y’know?) Your support is appreciated!
Template tags and shortcodes

wp_bittorrent_metainfo_file – Creates a .torrent metainfo file and returns the URL to it. Parameters:

$seed (string) The seed for the torrent. Can be a URL, a local file, or a local folder.
$return (bool) Whether to return the URL to the torrent or to print it. (Default: false, prints it.)
Example:

wp_bittorrent_magnet_uri – Creates a .torrent metainfo file and returns the magnet URI for it. Parameters:

$seed (string) The seed for the torrent. Can be a URL, a local file, or a local folder.
$return (bool) Whether to return the URL to the torrent or to print it. (Default: false, prints it.)
Example:

wp_bittorrent_magnet_pointer – Creates a .torrent metainfo file and returns a magnet pointer to it. (Mostly useful for Project Maelstrom, at the moment.) Parameters:

$seed (string) The seed for the torrent. Can be a URL, a local file, or a local folder.
$return (bool) Whether to return the URL to the torrent or to print it. (Default: false, prints it.)
Example:

Each of the above template tags has a matching shortcode:

[wp_bittorrent_tag metainfo_file="SEED_URL"]
[wp_bittorrent_tag magnet_uri="SEED_URL"]
[wp_bittorrent_tag magnet_pointer="SEED_URL"]

延伸相關外掛

文章
Filter
Mastodon