该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

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

  1. Create a new Downloads, as you will normally do for a normal post.
  2. In the “software informations” meta box, provide the version, size, download link, editor website, editor url miror link if available
  3. Choose a category, add tags et license type (eg: freeware, shareware,etc..)
  4. Add featured image to illustrate it
  5. 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);

屏幕截图

  • List downloads with views
  • The metabox of custom post type Downlaods with software informations
  • Ajax Alert subscription

安装

From your WordPress dashboard

  1. Visit ‘Plugins > Add New’
  2. Search for ‘download-directory’
  3. Activate Download Repository Pro from your Plugins page.
  4. Enjoy

From WordPress.org

  1. Download the plugin.
  2. Upload the ‘download-directory’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate the plugin from your Plugins page.
  4. Enjoy

From GitHub

  1. Download the plugin.
  2. Upload the ‘download-directory’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate the plugin from your Plugins page.
  4. Enjoy

常见问题

404 not found Error for the post, category or tags

You should refresh your rewrite links : Go to Admin > Settings > Permalink.
Clic the Save button. This will refresh your permalink

评价

2017 年 3 月 3 日
%down_cat% is not done properly in the plugin. Get lots of 404 and 400 Bad Request errors. Won’t even work with a new bare wordpress install. If you leave a comment on a post it will return 400 error. With “%down_cat%” literal in the url.
阅读所有1条评价

贡献者及开发者

“Download Directory” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Download Directory”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.1

Fix text domain for localization.

1.0

  • Initial Release.