Monthly Archive for 六月, 2009

WP-DownloadManager Plugin|中文教程 |【转】

» 下载插件(版本 1.31 )

点击这里 下载这个插件。你也可以在这里找到它。中文语言包

» 如何安装

  1. 打开wp-content/plugins 这个目录
  2. 把压缩包如下面名字的文件夹放在上面那个目录里:

    文件夹: wp-downloadmanager

  3. 把中文语言包里的文件解压到2中的目录下
  4. 激活WP-DownloadManager 插件
  5. 进入后台,按 (管理首页 -> 设置 -> 永久链接 -> 保存修改)这个操作
  6. 根据 使用说明 获取更多介绍

» 使用说明注意:以下的【 】换成[ ]

大概用法
  1. 为了在日志或者页面中嵌入单个下载的文件,可以在指定的位置写上代码 【download id=”2“】 这里的“2”是你上传的文件的id
  2. 为了在日志或者页面中嵌入多个下载的文件,可以在指定的位置写上代码 【download id=”1,2,3“]】这里的“1,2,3”是你上传的文件的id
  3. 已经嵌入进来的文件可以选择默认显示信息, 用 【download id=”1” display=”both“]】“ 1 ”是文件的id,” both” 的意思是同时显示文件名和文件描述, 要是换成“ name ”的话就只会显示文件名.这意味着它会覆盖“下载附件文件”这个下载模块(后台)里的显示方式。
  4. 如果你用的永久链接默认模式, 嵌入的文件的直接下载地址就是:’http://yoursite.com/index.php?dl_id=2‘.如果你用的永久链接友好模式, 嵌入的文件的直接下载地址就是:’http://yoursite.com/download/2/‘, 这里的 yoursite.com 就是你的 WordPress URL地址 , 2 文件的id。
  5. 某一下载分类的地址可以这样写: ‘http://yoursite.com/downloads/?dl_cat=3‘, 这里的 yoursite.com 就是你的 WordPress URL地址, downloads 是你的下载页的页名 , 3 是你下载分类的id。
  6. 为了让文件上传到指定的下载目录中,设置的下载目录必需开启777权限。你可以在下载设置中指定特定的下载目录。
  7. 可以按 ‘管理首页 -> 下载 -> 下载选项‘更改下载设置
  8. 可以按 ‘管理首页 -> 下载 -> 下载模版‘更改模版设置
关于下载页
  1. 按 ‘管理首页 -> 撰写 -> 页面‘操作
  2. 输入任何你喜欢的标题
  3. 假如你开启了永久链接的友好模式(非默认格式)的话,当你写完标题,下面就会出现一个编辑永久链接的“编辑”的链接。
  4. 点击并且往文本框内写入downloads(无空格) 然后点击保存。
  5. 在页面编辑区写入【page_download】(无空格),当然你也可以写入 【page_download category=”1″】, 这个的意思是显示id为1的分类的所有文件。
  6. 点击发布。
下载统计 (以 Widgets 显示)
  1. 激活 WP-DownloadManager Widget 插件
  2. 按 ‘管理首页 -> 外观 -> Widgets‘操作
  3. 选择显示 Most Downloaded
  4. 你能增加 the Most Downloaded Widget ,只要按”添加”就OK了.
  5. 添加显示后,你还可以对他编辑
  6. 选择显示 Newest Downloads
  7. 你能增加 the Newest Downloads Widgett ,只要按”添加”就OK了.
  8. 添加显示后,你还可以对他编辑
  9. 点击“保存修改”
下载统计 (在WP循环外<关于WP大循环可以网上找教程>)
  • 要显示 最热下载
  • 用以下代码:

    <?php if (function_exists(’get_most_downloaded’)): ?>
    <?php get_most_downloaded(); ?>
    <?php endif; ?>

    需要更改的参数就是默认显示的文件数(显示多少个文件)

    默认: get_most_downloaded(10);

  • 要显示 最近下载
  • 用以下代码:

    <?php if (function_exists(’get_recent_downloads’)): ?>
    <?php get_recent_downloads(); ?>
    <?php endif; ?>

    需要更改的参数就是默认显示的文件数(显示多少个文件)

    默认: get_recent_downloads(10);

  • 要显示 特定分类下载
  • 用以下代码:

    <?php if (function_exists(’get_downloads_category’)): ?>
    <?php get_downloads_category(1); ?>
    <?php endif; ?>

    需要更改的参数1就是要显示的分类的id
    需要更改的参数1就是要显示的文件数目

    默认: get_downloads_category(1, 10);

» 使用注意

博客空间支持.htaccess的话,永久链接那里设置友好模式(非默认)才会有作用。不设置友好模式的话,该插件貌似会出现问题,例如下载文件地址不存在。因此请开启博客空间的.htaccess功能

——————————–Tutorial in English—————————————–

» Download the file(Version 1.31 )

Click here to download the Plugin.You can also visit here.

» Installation Instructions

  1. Open wp-content/plugins Folder
  2. Put:

    Folder: wp-downloadmanager

  3. Activate WP-DownloadManager Plugin
  4. You Need To Re-Generate The Permalink (WP-Admin -> Settings -> Permalinks -> Save Changes)
  5. Refer To Usage For Further Instructions

» Usage InstructionsPS.the following “【 】” must be changed into ” [ ] ”

General Usage
  1. To embed a specific file to be downloaded into a post/page, use 【download id=”2“】where 2 is your file id.
  2. To embed multiple files to be downloaded into a post/page, use 【download id=”1,2,3“】where 1,2,3 are your file ids.
  3. To choose what to display within the embedded file, use 【download id=”1” display=”both“】 where 1 is your file id and both will display both the file name and file desccription, whereas name will only display the filename.Note that this will overwrite the “Download Embedded File” template you have in your Download Templates.
  4. If you are using Default Permalinks, the file direct download link will be ‘http://yoursite.com/index.php?dl_id=2‘. If you are using Nice Permalinks, the file direct download link will be ‘http://yoursite.com/download/2/‘, where yoursite.com is your WordPress URL and 2 is your file id.
  5. The direct download category link will be ‘http://yoursite.com/downloads/?dl_cat=3‘, where yoursite.com is your WordPress URL, downloads is your Downloads Page name and 3 is your download category id.
  6. In order to upload the files straight to the downloads folder, the folder must be first CHMOD to 777. You can specify which folder to be the downloads folder in Download Options.
  7. You can configure the Download Options in ‘WP-Admin -> Downloads -> Download Options
  8. You can configure the Download Templates in ‘WP-Admin -> Downloads -> Download Templates
Downloads Page
  1. Go to ‘WP-Admin -> Write -> Write Page
  2. Type any title you like in the post’s title area
  3. After typing the title, WordPress will generate the permalink to the page. You will see an ‘Edit’ link just beside the permalink.
  4. Click ‘Edit’ and type in ‘downloads‘ in the text field (without the quotes) and click ‘Save’.
  5. Type ‘【page_download】‘ in the post’s content area (without the quotes)
    You can also use 【page_download category=”1″】, this will display all downloads in Category ID 1.
  6. Click ‘Publish’
Download Stats (With Widgets)
  1. Activate WP-DownloadManager Widget Plugin
  2. Go to ‘WP-Admin -> Design -> Widgets
  3. To Display Most Downloaded
  4. You can add the Most Downloaded Widget Widget by clicking on the ‘Add’ link besides it.
  5. After adding, you can configure the Downloaded Widget Widget by clicking on the ‘Edit’ link besides it.
  6. To Display Newest Downloads
  7. You can add the Newest Downloads Widget Widget by clicking on the ‘Add’ link besides it.
  8. After adding, you can configure the Newest Downloads Widget Widget by clicking on the ‘Edit’ link besides it.
  9. Click ‘Save Changes’
Download Stats (Outside WP Loop)
  • To Display Most Downloaded
  • Use:

    <?php if (function_exists(’get_most_downloaded’)): ?>
    <?php get_most_downloaded(); ?>
    <?php endif; ?>

    The first value you pass in is the maximum number of files you want to get.

    Default: get_most_downloaded(10);

  • To Display Recent Downloads
  • Use:

    <?php if (function_exists(’get_recent_downloads’)): ?>
    <?php get_recent_downloads(); ?>
    <?php endif; ?>

    The first value you pass in is the maximum number of files you want to get.

    Default: get_recent_downloads(10);

  • To Display Downloads By Category
  • Use:

    <?php if (function_exists(’get_downloads_category’)): ?>
    <?php get_downloads_category(1); ?>
    <?php endif; ?>

    The first value you pass in is the category id.
    The second value you pass in is the maximum number of files you want to get.

Default: get_downloads_category(1, 10);

» FAQ

Permalinks will not work if your server space doesn’t support “.htaccess”。It seems that if you do not change Permalinks to “Nice Permalinks“,the Plugin will not work well.For example,the file direct download link is not been found。So makesure “.htaccess” can work.

————————————————————————-

WordPress 必备插件【转】

WordPress 必备插件

管理类

Stats:不占用系统资源的前提下做BLOG系统访问图表分析。
WP-ShortStat:是将一个简单的网站统计软件“Shortstat”移植到Wordpress。
WP-Cache:大访问量BLOG页面缓存。
OneClick Install :添加一个功能强大的上传器和安装器,以便于你安装模版或是插件。需要unzip及FTP支持。
Simple Tags管理Tag插件。
Role Manager:增强用户管理。
WP-DownloadManager:增加下载模块,见本站右上角“下载”。
WP-Mail-SMTP:用指定smtp发送站内邮件(HOST不支持邮件功能必备)。
AJAXed WordPress:AJAXed WordPress (AWP),是一个非常强大的AJAX插件。其实它不只是一个插件,它为wordpress提供全套的AJAXed 支持,以改善整个WORDPRESS的用户体验,管理能力和设计潜力。

 

发布类

podpress:是一款功能非常强的多媒体插件,可以在文章中插入任意格式的媒体文件。并有媒体预览及下载统计,是款很好的播客工具。支持格式有:MP3, RM, OGG, MP4, MOV, QT, FLV, ASF, WMV, AVI, and more。
wordTube: 是一款可以让您在您的 WordPress 博客上实现插入视频和音频等文件功能的插件。以此将您的博客变成播客。支持格式有:video( .flv or .swf), sound (MP3),grafic (JPG, GIF or PNG)。在后台中,您可以设置媒体文件的相关信息,而且它也拥有一套比较完整的文件管理系统。您可以通过后台程序直接上传媒体文件,或者直接对其他服务器中的文件进行链接。中文语言包|Readme
NextGEN Gallery : 在你的控制面板中添加一个相册,甚至是一个Flash相册。
WP-CODEBOX:代码高亮插件,支持多种语言、代码下载、复制到剪贴板、代码框收放及后台默认属性设置。
TinyMCE Advanced:编辑器增强。

访问亲善

WP-EMail:把看到的好文发邮件推荐给好友。(安装后,在Theme->index.php single.php 适当位置加入: <?php if(function_exists(’wp_email’)) { email_link(); } ?> )
WP-Print:格式化打印blog日志。(安装后,在Theme->index.php single.php适当位置加入: <?php if(function_exists(’wp_print’)) { print_link(); } ?> )
WP-PageNavi :是一款深受用户喜爱的 “WP 翻页”插件,可以实现翻页导航。
可折叠式分类树插件:国产插件。
Subscribe to comments:是一个健壮的插件。它使得评论者可通过 e-mail 来接收文章有新评论的提醒。这个插件包括功能完整的评论订阅管理器,评论者可以取消对某文章的订阅,屏蔽所有订阅的提醒,甚至包括改变接收提醒信息的email 地址!
Folding Categories for WordPress 2.3本人比较喜欢的分类树状显示插件。(如右边”分类导航”效果)
Extended Live Archive Plugin(以下简称ELA),能以日期列表和分类与标签列表等形式来汇总博客文章,其清晰易于浏览性是目前最理想的一款wordpress插件。
Theme Switcher可以让访问者来自由选择主题。
TinyMCEComments:留言编辑器增强。
AJAX Calendar:ajax化日历。

作者亲善

WP 2.3 Related Posts:WordPress 2.3 相关日志插件会根据日志的 tag 的相关性产生一个相关日志列表。并且把相关日志列表添加到Feed 中。
Random Posts Widget:随机显示几篇文章在Sidebar Widget,让旧文章”重见天日”。
CountPosts:可以知道blog总访问量和每篇文章的访问量。
DMSGuestbook:留言本插件,功能强大,并带有很强的可定制性,不会受到模板的约束,见本站右上角“留言”。
WP-PostRatings:给日志加入ajax化的评分机制。

SEO

Google XML Sitemaps:给你的 WordPress Blog 建立 Sitemap, 可以更加方便让 Google、 Yahoo 等搜索引擎收录你的站点,最新版的 Google (XML) Sitemaps 支持Ask.com、 Google、 Yahoo 和 MSN 等搜索引擎。目前官方提供的版本中,支持多种语言。
All in One SEO Pack:可以实现wordpress的整体优化。不需要title插件,meta插件,tag插件,也不需要DupPrevent Plugin插件,更不用担心因为插件的交替所带来的一堆麻烦。
Permalinks Migration Plugin:修改了Permalinks后,如果别的网站链接的地址、搜索引擎收录的地址是你以前的,那么点击过来就会出现404错误,找不到这个文件,现在有它就不用担心了,当有人访问你原来的地址时会自动转到新地址,需要重新设置Permalinks的人必备。