Philippians Underground Recycle Bucket
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Count Posts & Comments / 插件

向下

Count Posts & Comments / 插件 Empty Count Posts & Comments / 插件

發表  Sundog 周一 10月 06, 2008 12:49 pm

插件描述:

Count Posts & Comments(CPC)支持在博客页面展示您的博客总日志数以及总评论数。CPC插件共有三种调用方式,分别为调用总日志数和总评论数、单独调用Feedburner样式的总日志数、单独调用Feedburner样式的总评论数。

如果您熟悉CSS样式的相关内容,还可以在编辑插件文件夹内cpc-css.css样式文件修改这三种调用方式的样式,使这个插件和您的博客看起来更协调。

安装说明:

1. 下载插件.zip包,解压后上传整个插件文件夹到 /wp-content/plugins/ 目录下;
2. 在插件菜单列表激活CPC插件;
3. 在主题的适当位置插入调用函数。

调用函数:

1. 调用总日志数和总评论数

<?php ShowCount(); ?>


2. 调用Feedburner样式的总日志数

<?php ShowPostCount(); ?>

默认样式如下:
Count Posts & Comments / 插件 Post_c10

规格:95×19

3. 调用Feedburner样式的总评论数

<?php ShowCommentCount(); ?>

默认样式如下:
Count Posts & Comments / 插件 Commen10

规格:95×19

4. 纯数字调用

调用总日志数:
<?php ShowPostTextCount(); ?>

调用总评论数:
<?php ShowCommentTextCount(); ?>

如果您不喜欢上面的几种样式,使用纯数字调用能更方便您自定义样式。
Sundog
Sundog
拾荒阿伯
拾荒阿伯

文章數 : 104
注冊日期 : 2008-09-30
年齡 : 45
來自 : Taipei, Taiwan

http://philippians.chinarenluntan.info

回頂端 向下

回頂端


 
這個論壇的權限:
無法 在這個版面回復文章