Title: dwnldr
Author: findshorty
Published: <strong>2016 年 7 月 13 日</strong>
Last modified: 2016 年 9 月 8 日

---

搜尋外掛

![](https://ps.w.org/dwnldr/assets/banner-772x250.png?rev=1453926)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/dwnldr/assets/icon-256x256.png?rev=1453926)

# dwnldr

 由 [findshorty](https://profiles.wordpress.org/findshorty/) 開發

[下載](https://downloads.wordpress.org/plugin/dwnldr.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/dwnldr/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/dwnldr/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/dwnldr/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/dwnldr/#developers)

 [技術支援](https://wordpress.org/support/plugin/dwnldr/)

## 外掛說明

Sometimes there is no need for a huge, complex download manager, and let’s face 
it there’s rarely a need for an attachment page (who uses them right?).

Simply add a link in your post, shortcode, widget or page to the attachment page
of the file you want your users to download, and that’s it.

dwnldr will log who’s downloaded it and when, and force the download without exposing
your download’s URL.

And don’t forget – if you like the plugin, please [remember to review](https://wordpress.org/support/view/plugin-reviews/dwnldr)!
Thanks!

And if you’re having any issues, or you’d like to suggest a feature – [please write a support post](https://wordpress.org/support/plugin/dwnldr)!

## 安裝方式

 1. Upload the plugin files to the `/wp-content/plugins/dwnldr` directory, or install
    the plugin through the WordPress plugins screen directly, using
     the full unzipped
    plugin file.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. To add a download link, simply select your attachment using the Add Media button
    and select Link To -> Attachment Page.
 4. The attachment page is _usually_ ?attachment_id=[your file id] (it doesn’t matter
    what path you use, as long as the link ends in the attachment id).

## 常見問題集

  Where are the logs?

You can find your logs on the “edit post” page in the dashboard.
 If you’re viewing
your media library as a grid, make sure you click the “Edit more details” link from
within the dialog. If your media library is in list format, you’ll see a Downloads
column showing you the total downloads for that item. Clicking the download count,
or the edit link, will take you to the edit post page, and the logs are towards 
the bottom.

  Can I change the file extensions people can download?

Yes – to change the file extensions that you want to allow people to download (instead
of serving up the attachment page for that file), add the following to your theme’s
functions.php file.

    ```
    add_filter('dwnldr_extensions', 'my_dwnldr_extensions');
    function my_dwnldr_extensions( $extensions ) {
        return array('.pdf','.jpg','.jpeg', etc...);
    }
    ```

  Can I add to the log?

You can also change, or add to, the data you want to log when a person downloads
a file with the following.

    ```
    add_filter('dwnldr_log', 'my_dwnldr_log');
    function my_dwnldr_log( $data ) {
        $mydata = array(
            'anything_you_like' => 'some data about the download'
        );
        return array_merge($data, $mydata);
    }
    ```

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈dwnldr〉的開發相關工作。

參與者

 *   [ findshorty ](https://profiles.wordpress.org/findshorty/)

[將〈dwnldr〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/dwnldr)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/dwnldr/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/dwnldr/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/dwnldr/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/dwnldr/)。

## 變更記錄

#### 1.031

Fixed php warning in logs

#### 1.03

Added custom logs to download log table
 Added “Downloads” count column to media
library table

#### 1.02

Additional header in forced download to prevent OSX Safari users getting nonsense

Readme update

#### 1.01

User agent string output wrapped in htmlentities

#### 1.0

 * Initial version

## 中繼資料

 *  版本 **1.031**
 *  最後更新 **10 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.5.33**
 *  語言
 * [English (US)](https://wordpress.org/plugins/dwnldr/)
 * 標籤:
 * [attachment](https://tw.wordpress.org/plugins/tags/attachment/)[downloads](https://tw.wordpress.org/plugins/tags/downloads/)
   [pdf](https://tw.wordpress.org/plugins/tags/pdf/)
 *  [進階檢視](https://tw.wordpress.org/plugins/dwnldr/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/dwnldr/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/dwnldr/reviews/)

## 參與者

 *   [ findshorty ](https://profiles.wordpress.org/findshorty/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/dwnldr/)