Total Pageviews

Friday, 2 December 2011

WP-PostURL

[ 插件描述 ]


本插件允许你在所有文章的开头和结尾处插入一段自定义的文字。这段文字可以是你的版权声明,也可以是广告,或者其它文字。
安装完插件后,你可以自由编辑你的用户自定义字符串。自定义字符串允许使用HTML语句,请参考插件提供的缺省字符串。另外,你还可以在自定义字符串中使用下面的变量:
  • %site_url% – 站点的URL链接
  • %site_name% – 站点的名字
  • %post_url% – 显示这段内容的文章的URL链接
  • %post_title% – 显示这段内容的文章的标题
如果”header文本”不为空,那么这段文字将被插入到文章的开头;否则不在文章开头处插入。
如果”Footer文本”不为空,那么这段文字将被插入到文章的结尾;否则不在文章结尾处插入文字。
你可以选择在哪些页面中显示你自己定义的文字,这些页面可以是:
  • 博客首页 – 你的自定义文字会在博客首页中显示
  • Page页面 – 你的自定义文字会在类型为”Page”的文章中显示
  • 分类页面 – 你的自定义文字会在分类页面中显示
  • 标签页面 – 你的自定义文字会在标签页面中显示
  • 归档页面 – 你的自定义文字会在归档页面中显示
  • 单篇文章 – 你的自定义文字会在单篇文章中显示
  • Feed – 你的自定义文字会在所输出的Feed中显示
如果你不想帮助推广WP-PostURL插件,你可以不选择这一项,这样就不会显示WP-PostURL插件的信息了。
使用中还有什么疑问,请在此页留言。
在此,我要感谢Lester “GaMerZ” ChanWP-PageNavi的作者。本插件的大部分代码都源自于他的WP-PageNavi。这就是开源的好处,你不用从头开始实现你的作品。

[ 安装方法 ]


WordPress.org上下载WP-PostURL插件。
  1. 上传整个wp-posturl目录到/wp-content/plugins/目录
  2. 到WordPress后台管理页面中激活插件,插件的名字是Add Post URL
  3. 设置-->添加文章链接页对插件进行配置。
如果你想完全卸载本插件,也需要在设置-->添加文章链接选择卸载,这会完全删除WP-PostURL插件所添加的配置选项,并自动停用此插件。
------------------------------------------------

This plugin allows you to insert a user specific text at the beginning and/or ending of all your post. The text can be a copyright declaration, advertisement codes, etc. HTML codes are allowed. You can select which pages to display the specific text.
It accepts following macros in user specific text:
  • %site_url% – the URI of your site
  • %site_name% – the name of your site
  • %post_url% – the URI of the post where the text is displayed
  • %post_title% – the title of the post where the text is displayed
If the header text is not empty, it will be inserted to the head of your post; otherwise no head text will be inserted.
If the footer text is not empty, it will be inserted to the foot of your post; otherwise no footer text will be inserted.
You can choose which pages to display the header text and/or footer text. It includes:
  • Blog Home – the header/footer text will be displayed on blog home
  • Page – the header/footer text will be displayed on pages
  • Category – the header/footer text will be displayed on category
  • Tag – the header/footer text will be displayed on tags
  • Archive – the header/footer text will be displayed on archives
  • Single – the header/footer text will be displayed on single
  • Feed – the header/footer text will be displayed in feed
If you don’t want to help promote WP-PostURL plugin, you can uncheck this checkbox. The credit of WP-PostURL will not be displayed.
I also want to thinks Lester “GaMerZ” Chan, the author of WP-PageNavi. Most
codes of this plugin are derived from his WP-PageNavi plugin.

[ Installation ]


Goto WordPress.org to download WP-PostURL.
  1. Upload whole wp-posturl directory to the /wp-content/plugins/ directory;
  2. Activate the plugin through the ‘Plugins’ menu in WordPress;
  3. Goto “Setting –> Add Post URL” page to define your user specific text;
You can completely uninstall WP-PostURL plugin. It will remove all the option settings created by this plugin, and deactive this plugin at the same time.

No comments:

Post a Comment