改变WORDPRESS原本换页方法的插件,效果为显示页码列表而非“上一页 下一页”
安装:不解释
使用:见E文
Change the page navigation way.
Installation: unzip & enable
Usage: open your template, find index.php
search for navigation part like this:
- <div class="alignleft"><?php next_posts_link('« 较旧文章') ?></div>
- <div class="alignright"><?php previous_posts_link('较新文章 »') ?></div>
Replace it with this:
- <?php
- if(function_exists('SimplePageNavi') )
- SimplePageNavi();
- else
- {
- ?>
- <div class="alignleft"><?php next_posts_link('« 较旧文章') ?></div>
- <div class="alignright"><?php previous_posts_link('较新文章 »') ?></div>
- <?php
- }
- ?>
Quite easy, huh?
Download(333 times)
简单介绍下吧,此Plugin是基于Vanguard的Download Counter v1.0来写的,作用是统计附件的下载次数,并让下载者看到此文件已被载过多少次(DISCUZ!的下载次数总看过吧)
安装过程就不解释了,下面E文里有,还是老样子,有问题请留言或发至hjrgenius (a) 163.com,欢迎讨论:)
这是第三个WP插件了,写完以后对WordPress的敬仰有如滔滔江水连绵不绝又如黄河泛滥一发不可收拾。用Wordpress的架构来只是做BLOG实在是可惜可惜!
Hello everyone, this is the third plugin that I've developed/hacked/enhanced/etc... and I'm supposed to use english to descript it this time:)
Download:
Download(408 times)
Description:
The download counter plugin helps you Count the times a file has been downloaded as well as some misc statistics. It also let downloaders know how many times the file has been downloaded by others.
I enhanced it based on Vanguard's Download Counter v1.0.
Installation:
Unzip the contents of the .zip file. Upload the folder 'DownloadCounter' to: WordPress_directory/wp-content/plugins
Make sure that, inside your plugin folder, there're 3 files: download.php, DownloadCounter.php and functions.inc.php
Go to your administration panel and activate this plugin.
Usage:
The plugin is now installed, all you have to do now is
1.upload files via ftp or else.
2.add files using this plugin's Administration panel.No special code is needed to be placed in any of your theme files. This plugin automatically generates a simple HTML code to use in your files.
3.When you create/edit a post, there will be a button in the panel to let you add tags in the post. All you have to know is the id of the file(which can be got in administration panel of downloadcounter).
Then when the post is viewed, the tags will be automatically replaced with download link with the count of downloads.
If you have any problems, please leave a comment here or mail to hjrgenius (a) 163.com. Discussion is welcomed.
Good luck!
最新评论