首页     ITJOY 博客社区     登录

Posts Tagged ‘WordPress’

本站使用的插件

02月 13th, 2009 by brian | 4 Comments | Filed in WordPress
There are 18 plugins used: 8 active plugins and 10 inactive plugins.
启用的插件

Google Analyticator 2.12  Google Analyticator 2.12
» Ronald Heft, Jr.汉化修改 brian (url)
Google’s Analytics 是google免费提供的网站流量分析工具,本插件可以在你的博客页面中增加 Google’s Analytics需要的跟踪代码. 启用该插件后,请进入 设置 然后填入你的 Google Analytics UID 然后启用.

WP-PluginsUsed 1.40  WP-PluginsUsed 1.40
» Lester 'GaMerZ' Chan (url)
在日志中显示WordPress的插件(启用/未启用的插件分别显示).

wp slug translate 1.5  wp slug translate 1.5
» 偶爱偶家 (url)
wp slug translate将你日志的主题用google translate 翻译成英语或者拼音加入到你日志的永久链接中.

幻灯片 1.22  幻灯片 1.22
» NextGEN DEV-Team (url)
在边栏以幻灯片显示相册

相关文章 1.0  相关文章 1.0
» Denis (url)
可在文章末尾加入相关文章 设置

相册 0.98  相册 0.98
» NextGEN DEV-Team (url)
给你的博客增加相册功能,并可在侧边栏随机显示你的照片

请讲中文! 0.2  请讲中文! 0.2
» Bingu (url)
垃圾评论屏蔽插件,屏蔽不含中文字的评论.

飞舞的蝴蝶 0.0.1  飞舞的蝴蝶 0.0.1
» brian (url)
在你博客上显示一对蓝色的蝴蝶


未启用的插件

Akismet 2.2.3  Akismet 2.2.3
» Matt Mullenweg (url)
Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a WordPress.com API key to use it. You can review the spam it catches under “Comments.” To show off your Akismet stats just put <?php akismet_counter(); ?> in your template. See also: WP Stats plugin.

Comment Hacks   Comment Hacks
» Mulberry (url)
This plugin is able to show Recent Comments, Most Commented Posts, Recent Posts, Commenting Leader

Defensio Anti-Spam 2.0  Defensio Anti-Spam 2.0
» Karabunga, Inc (url)
Defensio is an advanced spam filtering web service that learns and adapts to your behaviors as well to those of your readers and commenters. To use this plugin, you need to obtain a free API Key. Tell the world how many spam Defensio caught! Just put <?php defensio_counter(); ?> in your template.

Google XML Sitemaps 3.1.0.1  Google XML Sitemaps 3.1.0.1
» Arne Brachhold (url)
This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. Configuration Page

Javascript代码 0.1  Javascript代码 0.1
» Robert Mao (url)
Provides a widget interface for any HTML code, so you can insert any HTML code including Javascript code snips into the Wordpress MU’s siderbar.

kPicasa Gallery 0.1.5  kPicasa Gallery 0.1.5
» Guillaume Hébert (url)
Display your Picasa Web Galleries in a post or in a page.

Manageable 1.1  Manageable 1.1
» Aaron Harp (url)
Inline editing of the date, title, author, categories, tags, status and more on both posts and pages without leaving the “Manage” admin sections. No need to load each post or page individually. Simply double-click anywhere in the post or page row and when you’re done, press enter. Requires WordPress 2.5 or above.

podPress 8.8  podPress 8.8
» Dan Kuykendall (Seek3r) (url)
The podPress pluggin gives you everything you need in one easy plugin to use WordPress for Podcasting. Set it up in ‘podPress’->Feed/iTunes Settings. If you this plugin works for you, send us a comment.

Shashin 2.2.1  Shashin 2.2.1
» Michael Toppa (url)
A plugin for integrating Picasa photos in WordPress.

显示社区信息 0.0.1  显示社区信息 0.0.1
» brian (url)

Tags: , ,

主题选择页面增加搜索功能

09月 10th, 2008 by brian | No Comments | Filed in WordPress, WordPress mu

主题多的时候,挑选主题很麻烦,特别是想要的主题不在第一页的时候,得一页一页的去翻。

搞定wpmu-themes.php 的主题批量激活JS后轮到给 themes.php 动手术了。

1. /wp-admin/themes.php 19行,两个reset( $themes ) 之间的内容改为以下,目的是搜索符合的主题:

reset( $themes );
$theme_all=count($themes); //add by libanglai 20080910
foreach( $themes as $key => $theme ) {

if( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) {

unset( $themes[ $key ] );

}

//add by libanglai 20080910  start

else if( isset($_GET['search']) ) {

$str=$themes[ $key ][Name].’,’.$themes[ $key ][Title].’,’.$themes[ $key ][Description].’,’.$themes[ $key ][Author];

$str.=implode(’,',$themes[ $key ]['Tags']);

$str=strtolower($str);

//echo $str.”|”; //for debug

//echo strpos($str,strtolower($_GET['search'])).”<br>”; //for debug

if(strpos($str,strtolower($_GET['search']))===false ){

unset( $themes[ $key ] );

}

 }

//end add by libanglai 20080910 

}
reset( $themes );
$theme_show=count($themes); //add by libanglai 20080910

 

2. 62行 <?php if ( ! validate_current_theme() ) : ?> 之前加入以下内容,目的是加上搜索框

 

<!–for search  themes, add by libanglai //–>

<form action=’themes.php’ method=’get’ name=’form1′>

<div id=”message0″ class=”updated fade”><p><?php _e(’SEARCH THEMES: You can enter a word to search for the themes that name,description or tags include this word.’); ?>

<input type=input name=’search’ value=’<?php echo $_GET['search'];?>’><input type=submit value=”<?php _e(”Search”); ?>”>

</p></div>

</form>

<!– end //—>

 

3. 128行要改一下,否则搜索结果只有1个时不会显示

<?php if ( 1 < $theme_total ) { ?>

改为:

<?php if ( 1 <= $theme_total ) {//edit by libanglai 20080910 ?>

4. 117行改一下,让它显示搜索结果数和主题总数:

<h2><?php _e(’Available Themes’); ?></h2>

改为:

<h2><?php _e(’Available Themes’); echo “&nbsp  ”.$theme_show.’ of ‘.$theme_all;//add for show num of search result ?></h2>

修改四个地方,都没动到wordpress原有的代码,手术还不算大,和效果很不错啊,看下面的图:

 

后台增加搜索主题功能

后台增加搜索主题功能

Tags: , , ,

mu插件控制台plugin commander使用介绍

09月 6th, 2008 by brian | 1 Comment | Filed in WordPress mu

软件名称:Plugin Commander
当前版本:1.1.3
安装目录:mu-plugins
官方网站:http://firestats.cc/wiki/WPMUPluginCommander

相关介绍:该插件是基于 GPL 协议的一个项目,是由著名的 FireStats 插件的作者进行开发。该插件拥有以下功能:

  • 可以设置某些安装在 plugins 目录中的插件,在用户新创建 Blog 的时候自动启用。
  • 为已创建的 Blog 集体启用或禁用某些插件。
  • 能够设置哪些插件可以让用户在插件菜单中进行启用或者禁用。(前提是关闭 MU 自带的插件菜单而使用该插件提供的功能。)
  • 管理员可为某些 Blog 启用或禁用某些插件,尽管这些 Blog 的拥有者不可以对这些插件进行操作。
  • 国际化多语言支持。

有了以上这些功能,相信您架设起来的 BSP 功能会更丰富,而且控制的自由度也可增加不少。
该插件安装的时候需要将文件上传到 mu-plugins 目录中,并保证 plugin-commander.php 文件放在 mu-plugins 目录中,而非另外建立的目录中。(MU 的专用插件基本上都是这个装法!)

上传插件后,管理员登陆后台,在 “网站管理”中就能看见 “plugin commander”这个菜单了,进去可以控制其他插件的开闭。所以mu原有的那个插件管理已经多余了,可以在”网站管理”->”设置”中关闭。

其他用户登录后台后,可以在 “管理” 中看见 “plugins”这个菜单,可以对有授权的插件进行开闭操作。

如上,这个插件添加的菜单是英文的,觉得不方便的话可以这样修改:

  1. plugin-commander.php 41行,修改为如下内容(这是修改”Plugin Commander”的必须条件):
  2. add_submenu_page(PC_HOME, __(’Plugin Commander’, ‘plugin-commander’), __(’Plugin Commander’, ‘plugin-commander’), 8, ‘Plugin Commander’, ‘pc_page’);

  3. plugin-commander-zh_CN.po 中搜索”Plugin Commander”,
  4. 将中文翻译改为你喜欢的名字,如”插件控制台”

  5. plugin-commander.php 49行,修改为
  6. __(’Plugins’), 1,

  7. wp-content\languages\zh_CN.po 中搜索”Plugins”更改为”插件”。

完成。

Tags: , , ,