我的虎宝宝
2010,03,13 by brian | 没有评论 | 归类于:WordPress mu |我的虎宝宝
在三月十二日出生啦
装了Popular Posts 这个插件,可我们本土菜鸟们看不懂外国鸟语,做了这个中文语言包
另外这个插件还需要Post-Plugin Library 才能正常工作。
注意:这两个插件的中文语言文件,必须放在 /wp-content/plugins/ 目录下才行,而不是放在插件目录!!
下载:
Tags: Popular Posts, 中文语言包, 插件, 语言包
Google Analyticator 2.12
» Ronald Heft, Jr.汉化修改 brian (url)
Google’s Analytics 是google免费提供的网站流量分析工具,本插件可以在你的博客页面中增加 Google’s Analytics需要的跟踪代码. 启用该插件后,请进入 设置 然后填入你的 Google Analytics UID 然后启用.
WP-PluginsUsed 1.40
» Lester 'GaMerZ' Chan (url)
在日志中显示WordPress的插件(启用/未启用的插件分别显示).
wp slug translate 1.5
» 偶爱偶家 (url)
wp slug translate将你日志的主题用google translate 翻译成英语或者拼音加入到你日志的永久链接中.
幻灯片 1.22
» NextGEN DEV-Team (url)
在边栏以幻灯片显示相册
相关文章 1.0
» Denis (url)
可在文章末尾加入相关文章 设置
相册 0.98
» NextGEN DEV-Team (url)
给你的博客增加相册功能,并可在侧边栏随机显示你的照片
请讲中文! 0.2
» Bingu (url)
垃圾评论屏蔽插件,屏蔽不含中文字的评论.
飞舞的蝴蝶 0.0.1
» brian (url)
在你博客上显示一对蓝色的蝴蝶
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
» Mulberry (url)
This plugin is able to show Recent Comments, Most Commented Posts, Recent Posts, Commenting Leader
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
» 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
» 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
» Guillaume Hébert (url)
Display your Picasa Web Galleries in a post or in a page.
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
» 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
» Michael Toppa (url)
A plugin for integrating Picasa photos in WordPress.
显示社区信息 0.0.1
» brian (url)
将 WordPress Related Posts 1.0 插件改善为更适合mu用户使用。
主要修改内容为增加插件默认参数,只需用Plugin Commander 将此插件开启,用户博客的文章结尾即能显示相关文章。
修改内容:
1.在开头增加:
/* 插件默认值 by itjoy.net 2008/10/11 */
$wp_rp_default['wp_rp_title']=”相关文章”;
$wp_rp_default['wp_no_rp']=”commented”;
$wp_rp_default['wp_no_rp_text']=”热门文章”;
$wp_rp_default['wp_rp_limit']=”10″;
$wp_rp_default['wp_rp_exclude']=”";
$wp_rp_default['wp_rp_auto']=”yes”;
$wp_rp_default['wp_rp_rss']=”";
$wp_rp_default['wp_rp_comments']=”";
$wp_rp_default['wp_rp_date']=”";
/* end 插件默认值 */
2.在有$wp_rp = get_option(”wp_rp”); 的位置修改为:
global $wp_rp_default;
$wp_rp = get_option(”wp_rp”);
if(count($wp_rp)<=1)$wp_rp=$wp_rp_default;
效果:
下载:
或在这里下载修改好的 相关文章插件 1.0 ,已含简体中文语言包。
Tags: WordPress mu, 插件, 改进
theme-preview是一个允许未登录用户预览主题首页的插件,
现改进了一下,使其也能显示除首页之外的其他页面。
另外加入一个函数,可以调用以显示指定数量个主题资料。
插件效果请看我的 ITjoy 博客社区 的首页,具体调用方法可看插件中介绍。
Tags: mu, theme, theme-preview, 插件, 改进
主题多的时候,挑选主题很麻烦,特别是想要的主题不在第一页的时候,得一页一页的去翻。
搞定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 “  ”.$theme_show.’ of ‘.$theme_all;//add for show num of search result ?></h2>
修改四个地方,都没动到wordpress原有的代码,手术还不算大,和效果很不错啊,看下面的图:
主题多的时候,像我现在有近100个,要一个个启用,手都点断了(radio又那么小);
用下面的js函数可以帮你把所有的主题全部开启或禁用。
需要在 wp-admin/wpmu-themes.php 21行后加入以下两个javascript函数:
<script type=’text/javascript’>
function active_theme_all(){
obj=document.all(”form1″);
for (i=0;i<obj.length;i++){
if(obj[i].type==’radio’ && obj[i].value==’enabled’) obj[i].checked=true;
}
}
function disnable_theme_all(){
obj=document.all(”form1″);
for (i=0;i<obj.length;i++){
if(obj[i].type==’radio’ && obj[i].value==’disabled’) obj[i].checked=true;
}
}
</script>
然后在你喜欢的地方添加控制的radio
<input type=”radio” name=”theme_all” onclick=”active_theme_all();” value=”enabled”><?php _e(’Active’) ?><input type=”radio” name=”theme_all” onclick=”disnable_theme_all();” value=”disabled”>
成功了,效果如下:
Tags: theme, WordPress mu, 主题
安装完后连找不到中发白啦~更别说东南西北了。
用editplus全部替换功能改了一下语言包,
1.插件名字改为相册(原叫图集,下面又有个子功能菜单叫图集);
2.图集改叫相片夹–看到就清楚是什么意思了;
3.相册还是叫相册:)
4.图片改叫相片
这下关系清楚了,相片-》相片夹-》相册
增加了一个子菜单->上传相片
wordpress用户没什么关系,多摸索摸索就会了,可mu要尽量多为用户着想,用户只想写日志,上传相片而已。
在 wp-content\plugins\nextgen-gallery\admin\admin.php
中 function add_nextgen_gallery_menu 内增加下列代码:
add_submenu_page( NGGFOLDER , __(’Add Gallery’, ‘nggallery’), __(’Add Gallery’, ‘nggallery’), ‘NextGEN Upload images’, ‘nggallery-add-gallery’, ’show_menu’);
新菜单效果如图:
另外现在用户新开通相册后,根本不知道如何去页面那里加入相册,太麻烦了,直接在启用相册插件的时候自动增加这个相册页面,默认显示建立的前两个相片夹的内容.用户只要启用了这个插件,上传图片后就直接能在博客上看见了。
wp-content\plugins\nextgen-gallery\ngginstall.php 93行,dbDelta($sql); 后面增加以下内容:
// add by libanglai 20080909
$sql=”INSERT INTO `”.$wpdb->prefix.”posts` ( `post_content` , `post_title` , `post_category` , `post_status` , `comment_status` , `ping_status` , `post_name` , `guid` , `menu_order` , `post_type`)
VALUES ( ‘[slideshow=1][gallery=1][slideshow=2][gallery=2]‘, ’相册’, 0, ’publish’, ’open’, ’open’, ’brainstorming-test’, ”, 0, ’page’ ) ;”;
dbDelta($sql);
//end add
thickbox文件夹里面的JS文件还有待汉化。–不过简单,就一些CLICK CLOSE而已。
本地测试的时候发现编辑页面时加入相册页面那个弹出窗口乱码,需要在
wp-content\plugins\nextgen-gallery\tinymce3\window.php 第23行后增加一下内容:
header(’Content-Type: text/html; charset=’ . get_option(’blog_charset’), true); //add by libanglai 20080909
Tags: Nextgen Gallery, WordPress mu, 乱码, 相册
wp_admin/index.php.php 42行后加入以下内容,并另存为UTF-8编码(懒的去整语言文件了)
谁可以帮忙写一个这个功能的插件?因为更改wp本身的文件实在不是太好。
<!– quikedit –>
<div id=”rightnow”>
<h3 class=”reallynow”>博客快捷管理</h3>
<div style=”line-height:3;background-color: rgb(198, 217, 233);padding-left: 15px;”>
<strong>修改资料:</strong>
<a href=’options-general.php’ class=”rbutton”>博客基本信息</a>
<a href=’profile.php’ class=”rbutton”>个人资料和密码</a>
<br>
<strong>您的日志:</strong>
<a href=”post-new.php” class=”rbutton”>写日志</a> <a href=’edit.php’>修改日志</a>
<br>
<strong>特殊页面:</strong>
<a href=”page-new.php”><?php _e(’Write a New Page’); ?></a> <a href=”edit-pages.php”>修改页面</a>
<br>
<strong>友情链接:</strong>
<a href=”link-add.php” class=”rbutton”><?php _e(’Add Link’); ?></a> <a href=”link-manager.php”><?php _e(’Manage Links’); ?></a>
<br>
<strong>管理其他:</strong>
<a href=’edit-comments.php’><?php _e(’Comments’); ?></a>
<a href=’categories.php’>文章分类</a>
<a href=’edit-link-categories.php’><?php _e(’Link Categories’); ?></a>
<a href=’edit-tags.php’><?php _e(’Tags’); ?></a>
<a href=’upload.php’><?php _e(’Media Library’); ?></a>
<br>
<strong>布局外观:</strong>
<a href=”themes.php” class=”rbutton”><?php _e(’Change Theme’); ?></a>
<a href=’widgets.php’>侧边栏管理</a>
</div>
</div><!– quikedit –>
效果图: