Widgets MU

Update: 下面所说方法不正确了,请到这里查看新的方法:

http://blog.manboo.info/577.htm

下面的方法可以让wordpress MU全站默认支持Widgets,而不需要用户再自己去激活这个插件,

首先到这里下载原版插件,

然后新建一个文本文件,里面写上这些代码:

  1. <?php
  2.  
  3.   $widgets = glob(dirname(__FILE__).'/widgets/*.php');
  4.   if( is_array( $widgets ) ) {
  5.       foreach ( $widgets as $widget ) {
  6.           if( is_file( $widget ) )
  7.               include_once( $widget );
  8.       }
  9.   }
  10. ?>

保存为.php。

最后,将这个php文件和刚下载解压缩得到的文件夹上传到wp-content/mu-/文件夹中。

不过,似乎这个插件跟后台的编辑器有些冲突。

Popularity: 46% [?]

Tags: , ,
Related posts

cirtexhosting_ads.gif

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word