By eric | January 24, 2008 - 4:41 pm - Posted in 技术::Tech

when you twist wpmu, sometime plugin does not work well especially aray_merge().

When the plugin call array_merge($options, $default), you may get argument #1 is not array error.

The solution is very simple, just change the code to array_merge((array)$options, $default)

By eric | - 3:27 pm - Posted in 技术::Tech

sometimes, we are just so stupid that wanna directly dump wordpress plugin into wpmu and wish it could work. Unfortunately, it won’t. And sometimes it looks everything is OK until you press the confirm button, your confirmation page will be leaded to the admin panel. why?

Hey, here is a simple way to twist.

Please remove this one ” $_SERVER[PHP_SELF].”

for example

plugin:

Picasa Plugin for WordPress

please open the page at wp-content/plugins/wp-picasalb/wp-picasalb.php

then do this

comment out

//define('PLB_ADMIN_URL', $_SERVER[PHP_SELF]."options-general.php?page=".basename(PLB_DIR).'/'.PLB_FILE);

And replace it as:

define('PLB_ADMIN_URL', "options-general.php?page=".basename(PLB_DIR).'/'.PLB_FILE);

By eric | January 17, 2008 - 7:45 am - Posted in 商财::Business, 技术::Tech

Will this be a good news or bad news? Of, coz…………. MySQL hold the largest open source market, now ……..
BTW: Read below, no wonder the default charset of MySQL is swedish

Will Silicon Valley Deals Kick Into Overdrive?

By VAUHINI VARA, CHRISTOPHER LAWTON and DON CLARK
January 17, 2008; Page B1

Acquisitions by Silicon Valley software giants Oracle Corp. and Sun Microsystems Inc. suggested a slowing economy and other forces could kick a recent wave of high-tech deals into higher gear.

Oracle succeeded yesterday in forging an $8.5 billion deal to acquire rival BEA Systems Inc., a maker of programs known as middleware that had resisted an unsolicited bid from Oracle in October. The $19.38-per-share price is about 14% higher than Oracle originally offered, but below the $21 figure that BEA sought. Investor Carl Icahn says he urged Oracle to raise its bid and then lobbied BEA to take the sweetened bid.

[Larry Ellison] Read The Full Story…

By eric | January 16, 2008 - 11:38 pm - Posted in 技术::Tech

if your wpmu plugin is using wp_register_sidebar_widget(), then you will get this error.

Very simple, of coz this wpmu, not wp. Just an easy change, will let you fly

take the wp_ off, you are on your way.

register_sidebar_widget()

register_widget_control()

By eric | January 10, 2008 - 8:44 am - Posted in 技术::Tech

At around line 742 of kses.php


[source:php]function kses_init_filters() {
// Normal filtering.
add_filter(’pre_comment_content’, ‘wp_filter_kses’);
add_filter(’title_save_pre’, ‘wp_filter_kses’);[/source]

[source:php]// Post filtering
// add_filter(’content_save_pre’, ‘wp_filter_post_kses’);
// add_filter(’excerpt_save_pre’, ‘wp_filter_post_kses’);
// add_filter(’content_filtered_save_pre’, ‘wp_filter_post_kses’);
}[/source]

Then your post won’t be filtered out, but only your comments.

Credits to http://dev.robertmao.com/2007/07/18/get-rid-of-boring-wpmus-post-htmljavascript-filtering/

Article original from http://www.buayacorp.com/files/wordpress/wordpress-advisory.html

I just copy here to the people who do not know.

Arbitrary File Upload Vulnerability in WordPress and WordPress MU

Author
Alexander Concha <alex at buayacorp dot com>
Affected versions
WordPress 2.2 and WordPress MU <= 1.2.2

Description

WordPress is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability.

WordPress allows the upload of limited set of file attachments. The name, title and other values are stored on wp_posts table with post_type=attachment, the path and other file properties are stored in wp_postmeta table using special fields named _wp_attached_file and _wp_attachment_metadata.

Read The Full Story…

语言包使用方法:

1、将压缩包中的”zh_CN.mo”文件上传到站点以下目录中:

“\wp-content\languages”

如果此目录不存在,请自行建立。

2、对站点根目录中的“wp-config.php”进行修改:

define (’WPLANG’, “);

修改为:

define (’WPLANG’, ‘zh_CN’);

If you go to your option and find your language still can not show up properly, at the most case is that your host is using 64 bit CPU and wordpress’s gettext file has not been updated according to this. Here is the code you have to accommodate.

Read The Full Story…

By eric | August 15, 2007 - 9:36 pm - Posted in 技术::Tech

LaiVah采用的是最新版本的vBulletin系统来构架BBS。vBulletin功能非常强大,但是我们这里并没有完全开放所有的功能。LaiVah论坛主要起到的是LaiVah用户们的一个交流平台的作用。通过论坛大家能更方便的交流。北美有很多论坛,但是都没有能使用最新的WEB2.0的特性,LaiVah决心提供这样的平台,给大家最新的用户体验。套用大腕里面的话,我们不求人气最多,但是我们求给用户的体验最酷,呵呵。

请大家访问http://bbs.laivah.com
欢迎前来交流~

By eric | August 13, 2007 - 9:58 pm - Posted in 技术::Tech

看到我的comment那里的变化了吗?很酷吧。
还不赶快打开你的插件?
来自Postreach的作品
http://www.postreach.com/postreach/showcase
难得的是居然为TT度身定做。
我把中文版放在附近里面了,下载了的朋友不要忘了添一个连接哦。
使用非常简单,只需要打开开关,你就搞定了。~~~

[##_1C|5813026582.jpg|width=”540″ height=”319″ alt=”User inserted image”|_##]
[##_1C|2072313234.zip||_##]

By eric | July 25, 2007 - 8:43 am - Posted in 技术::Tech

如果你不知道什么是joomla,那就不用继续读了。
欢迎参观http://www.laivah.com
我在blog页面里面,调用了tattertools的数据,
全部已经写成了joomla的mod,可以方便你在joomla的任何地方调用,
包括最新留言,最新加入,最新blog,top bloggers,数目都可以定制。
如果感兴趣的话,可以留言给我,我想办法提取一下。
才使用joomla不到一周,有行家看了,请不要笑话我了,呵呵

没有办法整合登陆。。。。。。。我不会做,有牛人,请出手啊

[##_1C|2590424045.jpg|width=”540″ height=”403″ alt=”User inserted image”|_##]新界面

BTW:貌似我的网站现在被大陆封了。如果有知道如何解封的朋友,请告诉我。我都不知道哪里上访啊。。。。。。。。何况我还不在国内。