[WordPress] 外掛分享: Download Directory

首頁外掛目錄 › Download Directory
WordPress 外掛 Download Directory 的封面圖片
20+
安裝啟用
★★★☆☆
3/5 分(1 則評價)
3511 天前
最後更新
問題解決
WordPress 4+ v1.0.1 上架:2016-08-05

內容簡介

Download Directory 允許您建立一個下載目錄網站,您可以提供給訪客軟件、免費軟件、共享軟件等列表。

與大多數主題兼容。

多語言:目前已翻譯成法語和英語。Pot 文件已提供,可在任何語言中完全翻譯。

Slug 可翻譯:每個存檔、帖子、類別、標籤等鏈接都可翻譯,這意味著您可以使用您的語言提供帖子 slug,例如:

site.dev/download/wordpress
site.dev/descargas/wordpress
site.dev/telecharger/wordpres
...

使用 Download Directory,您可以追踪每個軟件被下載的次數。

訪客還可以註冊到更新警報列表,讓他們在他們最喜愛的軟件有新版本發布時接收電子郵件警報。

更新軟件版本欄位時會自動向當前軟件的訂閱者發送電子郵件警報。

用戶還可以通過按照他們收到的電子郵件警報底部的鏈接取消註冊更新列表。

當用戶點擊“下載”時,他們將被重定向到“下載”頁面,自動加載下載、增加下載計數器,並允許您在此頁面中顯示您想顯示的內容(通過小工具),例如廣告等等...

此頁面還顯示下載鏈接,如果鏈接失效,則顯示指向網站編輯器的鏈接,甚至顯示鏡像鏈接(如果您提供它)。

您可以使用 3 個鏡像鏈接,加上直接下載鏈接。

法語演示頁面

實際演示頁面

用法

創建一個新的下載項目,就像通常創建一個新帖子一樣。
在“軟件信息”元框中提供版本、大小、下載鏈接、編輯器網站、編輯器 url 鏡像鏈接(如果有)
選擇一個類別,添加標籤與許可證類型(例如:免費軟件、共享軟件等)
添加特色圖像以進行說明
發佈

進階用法

您可以使用自己的模板來進行存檔、類別、標籤和單個文件。

對於存檔頁面,只需在當前主題目錄中創建一個名為 archive-down_repo.php 的文件。

對於單個頁面,只需在您的主題目錄中創建一個單個-down_repo.php 文件。

添加您自己的 CSS 和樣式。

在您的主題目錄中創建一個 css 文件,並根據您的喜好命名。
然後在您的主題功能文件中添加以下代碼(或在任何個人插件中):

add_filter('down_repo_style','my_custom_css',10,1);

function my_custom_css($css){

$css=get_stylesheet_directory_uri().'/mycss.css';

return $css;

}

這將簡單地用您的 CSS 文件替換插件的當前 CSS 文件。
如果您只想禁用插件的 CSS,只需添加一個 null 過濾器

add_filter('down_repo_style',function(){return null;},10,1);

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

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

原文外掛簡介

Download Directory allow you to create a download directory website. You will be abble to provide to your visitor a listing of software, freeware, shareware …
Work with mostly any theme
Multilingual ready : currently translated in French and English. .Pot file provided, can be fully translated in any language.
Slug translatable: Every archive, post, categories, tags … link are translatable. it’s mean than you can provide post slug in your language, like :

site.dev/download/wordpress
site.dev/descargas/wordpress
site.dev/telecharger/wordpres

With Download Directory, you can track the number of times each software are downloaded.
Visitor can also register to an update alert list, allowing them to receive an email alert when new release are available to their favorites softwares.
Updating the version field of a sofware automatically send an email alert to the suscriber of this current software.
User are also able to unregister themself from an update list whenever they want, simply by following the link at the bottom of the mail alerte they have received.
When user click on “download”, they are redirected to a “downloading” page, providing an automatic loading of the download, incrementing download counter and allowing you to display whatever you want in this page (via widgets), like advertising, etc …
This page also display the download link, and, in case it is broken, a link to the website editor, and even link to miror link if you provided it.
You can use 3 miror links, more the direct download link.
French Demo at http://www.patricelaurent.net/telechargements/
See it in action here : http://www.patricelaurent.net/telecharger/wordpress/download-directory/
Usage

Create a new Downloads, as you will normally do for a normal post.
In the “software informations” meta box, provide the version, size, download link, editor website, editor url miror link if available
Choose a category, add tags et license type (eg: freeware, shareware,etc..)
Add featured image to illustrate it
publish

Advanced usage
You can use your own template for archive, category, tags and single file.
For archives pages, just create an file called archive-down_repo.php in your current theme directory.
For single page, simply create a single-down_repo.php file in your theme directory.
Adding your own css and style.
create a css file in your theme directory. Name it as you want.
then add this code in your theme function file (or in any personnal plugin):
add_filter('down_repo_style','my_custom_css',10,1);

function my_custom_css($css){

$css=get_stylesheet_directory_uri().'/mycss.css';

return $css;

}

This will symply replace the current css file of the plugin by your one.
If you jsut want to disable the css of the plugin, just add a null filter
add_filter('down_repo_style',function(){return null;},10,1);

延伸相關外掛

文章
Filter
Apply Filters
Mastodon