文章内容
三 13th, 2010WordPress插件Zelig Show Plugins
如果某位童鞋细心的话,会发现本人博客上,有个plugins页面,打开会看到所安装的插件列表,其实没多大用处,纯属蛋疼用的,显得稍微有点牛X而已。如果呢,你也想有个这样的页面,那请继续看;如果没什么兴趣的,可以略过下面的YY,直接comment或者关掉你的浏览器。
首先,得介绍一下这位兄台,Zelig Show Plugins,官方主页在这里:http://zeligplanet.altervista.org/2006/08/wordpress-plugin-zelig-show-plugins
(This plugin allows to create a WordPress page where to show a list of all the active plugins of your web site. For every plugin, only the following elements will be shown: name (with a link to the plugin page), version number and author (with a link to his home page). Starting from version 1.2 there‘s an option to show plugins descriptions too.)(就是介绍这个插件的,我就不翻译了)
接下来是下载,安装:[slider title="Expand-展开"]
INSTRUCTIONS:
- Download the zip file (current version is 1.2 of november 28, 2006).
- Extract the zelig-show-plugins.php file into the plugins directory in your WordPress installation (wp-content/plugins).
- Log in to WordPress administration. Go to the Plugins page and Activate this plugin.
- Create a new page template saving with a different name the “page.php” file present in your template, then edit it adding in the right place (usually before the row starting with <?php edit_post_link… ) the following HTML code:
<?php zelig_show_plugins(); ?>
You also have to add at the top of this new template the code that defines it’s name (or change it, if already present):
<?php
/*
Template Name: Plugins
*/
?>
- Create a new page using this template, adding a title and if necessary some text. Loading this page, the plugins list will be shown automatically.
- In case, you can also edit the “style.css” of your template to set up the visualization style of the table. The classes used are the following:
.plugins-list (DIV including the whole table)
.alternate-plug-row (class assigned to the odd rows of the table)
.plug-row (class assigned to the even rows of the table)
[/slider]
这一段呢,稍微说一下,下载,安装,在后台激活这个都会。接下来:
1.复制一下你主题的page.php,并且重命名,如“plugins.php”;
2.用编辑器打开plugins.php,找到类似于<?php edit_post_link…(如果没有,可以在read more之类的)前面,加上<?php zelig_show_plugins(); ?>;
3.在plugins.php里的最上面添加如下说明性代码:
<?php
/*
Template Name: Plugins
*/
?>
4.在后台新建一个页面,命名为plugins(或者其他任何名字都可以),然后在模板那选择plugins(就是刚才定义的模板)
5.可以自己修改style.css,显示不同的样式等等。
This plugin can display a text row after the end of the table with the total count of active plugins. You can change the default text of this line or exclude it at all. Another option lets you show plugins descriptions too. You can set all these options using some parameters of the zelig_show_plugins() function:
EXAMPLES:[slider title="Expand-展开"]
<?php zelig_show_plugins('show_count=0'); ?>
Excludes displaying of the line with the total count of plugins.
<?php zelig_show_plugins('before=That's amazing: &after= active plugins!'); ?>
Displays the line “That’s amazing: XX active plugins!” after the table.
<?php zelig_show_plugins('before=&after= active plugins.'); ?>
Displays the line “XX active plugins.” after the table.
<?php zelig_show_plugins('description=1'); ?>
Displays plugins descriptions too.[/slider]
就是可以定义不同的显示形式,根据自己需求来修改对应的代码,说了那么多废话,其实就是添加个代码,自己琢磨琢磨,当然老鸟可以忽略我的所有废话。
Related Posts
RECENT POSTS
PREVIOUS POST
NEXT POST
Comments (8)
看来你也是蛮喜欢折腾的
@Firm 有点吧,也不算折腾,就是纯属娱乐的
我是最头疼插件。
我的邮件插件到现在还没好。
而且每次换主题的时候 别人会带很多插件。麻烦。。。。
很麻烦。 :angry
@搓板 wp就是用来折腾的,累了的时候就不弄了~~
@juse 嘿嘿,谢谢来访~~
的确作用不大,好玩就装吧
嗯,也许只是个展示作用而已~~