让IImage Browser在Wordpress2.5中重生

iimage browser upload
毫无疑问,IImage Browser是冰古最爱的用于上传图片(或其他文件)到服务器的wordpress插件,冰古已多次推荐,这里这里。而2.5的图片上传有这样那样的毛病,更让冰古觉得这个插件很不错。

但原作者似乎已经放弃更新这个很不错的插件了,最近的更新要追溯到2007年的5月,支持版本也只能到2.0。这个插件有个很不好的地方,就是要将其中一个文件iimage-browser.php放到wp-admin文件夹中,进行升级wordpress等操作时,可能导致该文件丢失。如下hack就能使IImage Browser工作于wordpress2.5下,并把iimage-browser.php文件同时放到plugins文件夹中。

1. 下载IImage Browser
2. 将里面的两个文件解压缩到iimage-browser文件夹中;
3. 打开iimage-browser-plugin.php,找到

  1. window.open("../wp-admin/iimage-browser.php", "IImageBrowser", "width=700,height=600,scrollbars=yes");

将其中的

  1. ../wp-admin/iimage-browser.php

直接改为

  1. http://你的wordpress/wp-content/plugins/iimage-browser/iimage-browser.php

保存。
4. 打开iimage-browser.php,找到如下数行,

  1. if (file_exists('admin.php')) {
  2.     require_once('../wp-config.php');
  3.     require_once('admin.php');        // WP after 1.3 alpha-3
  4. } else {
  5.     require_once('admin-header.php');    // WP before 1.3 alpha-3
  6. }
  7.  
  8. $ib_settings['real_path'] = './../wp-content/';
  9.  
  10. //URI of that directory relative to your blog installation URI
  11. $ib_settings['real_url'] = '/wp-content';

改为:

  1. if (file_exists('../../../wp-admin/admin.php')) {
  2.     require_once('../../../wp-config.php');
  3.     require_once(ABSPATH.'/wp-admin/admin.php');        // WP after 1.3 alpha-3
  4. } else {
  5.     require_once(ABSPATH.'/wp-admin/admin-header.php');    // WP before 1.3 alpha-3
  6. }
  7.  
  8. $ib_settings['real_path'] = ABSPATH.'/wp-content/images/';//这里可以修改到你喜欢的路径
  9.  
  10. //URI of that directory relative to your blog installation URI
  11. $ib_settings['real_url'] = '/wp-content/images';//这里也就同上啦

保存;
5. 将iimage-browser文件夹上传到plugins文件夹中;
6. 在后台激活就行啦。
iimage browser

对了,你要在HTML编辑区才能看到上面的按钮哦。

一张有趣的图片

有趣的图片

点击放大查看如何有趣。

Zooomr mark III

zooomr此次更新真可算下了“重本”

# 6 Months in the making
# Over 250 NEW features, improvements and refinements
# Sell your photos as stock — you keep 90% of the sale!
# Unlimited storage and archival for all users — no limits on photo size, either!
# For developers: An Open API so that you can access all of the richness of Zooomr in your own apps.

六个月的准备
250多项新特征,改进和完备
出售你的相片——你可以得到90%的收入
所有用户不限储存空间和存档数量——同样,相片的大小也没有限制!
给开发者的:开放的API。

一位热心的网友设置了倒计时,还有不到两个钟就到完成的时间,希望这次不会像上次的更新那样延误了许久才开放吧。