Tag Archive for 'wordpress'

mofire与其他服务的结合

偶然想到的,mofire现在这样把照片,声音还有视频(将来)直接传到wordpress的服务器上是“anti-social”的,因为没有很快的分享,分享渠道很狭窄 - 只是通过wordpress。
考虑把照片送到flickr或者picasa上,视频上传到youtube或者youcool,之后wordpress(blog)作为这些服务的一个“客户端”来展示这些内容。
进一步考虑,可以把内容直接再复制到twitter上,或者通过twitter发布新的blog,任何人都可以在第一时间track到你的行踪。
貌似这就是一个通过移动设备平台整合social service的方向。

mofire的用户

在网上找到一个用户,呵呵。也有了动力让我继续改进。
在mosh上被下载了2k多次。
还是真的做点改进吧。呵呵

October 14, 2008
Here we go again - Mofire as a weapon of choice
Filed under: Uncategorized — lol @ 12:47 pm

I found a new mobile blogging client for my nokia - mofire.hopefully it proves to be more reliable than the last one i tried which only worked for a few posts and then just quit working.
Powered by MoFire

日志的日志

记录blog的修改维护历史

1.首先上传并安装wordpress(meyu不支持ssh,所以只能ftp所有的文件)
2.在meyu的管理页面设置好域名转向(添加A记录)
3.在域名注册商的网站上添加相应的A记录
4.在wordpress上设置Blog URL和wordpress URL为: zhangv.com和zhangv.com/wordpress(相应要在空间根目录方一个wordpress的文件夹,拷贝index.php到里面)
5.在meyu的管理页面添加wordpress的数据库

6.把之前备份的wordpress数据导入
7.添加计数器(histats),在sidebar的模板里加入相应的javascript
8.添加chicklet插件

9.加入google analytcs 添加sitemap插件
10.加了一个广告在最不显眼的位置(sidebar的最下面)

11.添加delicious的widget
12.加了一个favicon
13.wp-comments-post.php放到4里说的wordpress文件夹里,否则留言时会报500错误
14.添加clustrmaps,在sidebar的模板里添加一段代码
15.添加fanfou插件(sidebar模板)
16.添加wp-t-wap插件,让blog支持wap浏览。也试了wp-wap,但是不支持wp2.5。可以通过zhangv.com/wap/index.php访问
17.添加google account widget,可以通过google账户登录

18.升级到2.7.1(注意不能覆盖,要把admin,includes文件夹先删除,否则会报错),2.7.1的管理界面增色不少。
19.用了k2的主题,很不错,比原来的default好一点。
20.使用favicon generator生成16*16的favicon
21.设置子域名blog.zhangv.com:先在cpanel加一条子域名项blog.zhangv.vhost.meyu.net,相应会在public_html文件夹下多了一个blog的文件夹,之后在域名空间商那里设置一条新的域名解析项blog.zhangv.com指向zhangv.com,类型为CNAME。将原来wordpress文件夹内的内容加到blog文件夹内,Blog URL和wordpress URL设置为blog.zhangv.com。原来在空间根目录放的index.php删除。同样方法设置wap.zhangv.com。
22.安装了snapshot插件,需要注册获取key

Scribefire真是太好用了

空间重新启用

在meyu上买了一块空间,目前速度还不错.推荐一下.昨天晚上一晚上终于把域名,数据库,wordpress的设置全搞定. 记录一下
1.首先上传并安装wordpress(meyu似乎不支持ssh,所以只能ftp所有的文件)
2.在meyu的管理页面设置好域名转向(添加A记录)
3.在域名注册商的网站上添加相应的A记录
4.在wordpress上设置Blog URL和wordpress URL为: zhangv.com和zhangv.com/wordpress
5.在meyu的管理页面添加wordpress的数据库
6.把之前备份的wordpress数据导入

wordpress的编辑权限

今天在wordpress上添加了一个测试用户,只有author的权限,在MoFire发送附件时候会有一点异常。图片的大小不起作用,无法添加embeded元素用来放声音。看来wordpress对用户的编辑权限限制也很细。只有administrator才可以。

MoFire

最新版本(latest version): 0.6.1 download

Source code:
http://code.google.com/p/mofire/
http://sourceforge.net/projects/mofire/

Download and try:
http://mosh.nokia.com/content/4897555AA597E7C5E040050A45306893

手机上的wordpress客户端(jme)

1.支持拍照并发布带图片附件的日志
2.可配置多个blog
3.可保存日志到手机
4.支持从本地载入图片并发布到blog
5.支持分类,标签,使用MetaWeblog API

类图:


mofire-uml-0.1

FAQs:

What is mofire?
It's a blogging client on your mobile phone.

What blogging application mofire supports?
Initially, this is for my own wordpress blog. Theoretically, it supports all the blog application that support metaweblog API.

Why “mofire"?
"mo" is my prefix, means "nothing", "fire" is to after my favorite blogging client - scribefire.

How to setup a blog configuration?
First create a "setting", input the field:
Name: identify the setting, you can have multiple settings
URL: the xmlrpc url of your blog server. eg, mine is: http://zhangv.com/xmlrpc.php
User: the user of blog server
Password: the password of user
set as default: if set, when you start mofire, it will use this setting and directly go to post form. If not, you have to choose the setting to use.
After all the above, [validate setting] to test if it is ok. Recommend you to validate it every time setting is changed.

How to post an blog?
First, make sure to [use] a setting in the setting list.
Input the title, select a category, fill the tags(split by comma or space).
Then [edit content] to open the content editing form, and write your stuff, then [post].

How to save an blog in the mobile phone?
After input all the stuff, if you don't have a working connection, you can choose to [save] it to your mobile phone and post it when you go to starbuck. Then choose [drafts], and select the entry and post it.

How to attach a photo from phone gallary?
Still working on, will implement later. JavaME seems cannot handle picture of size 100kb around.

How to use the camera and post the photo just shot?
Select [camera], and [capture] the scene. Then you can see the shrink photo displayed in the post form, you can remove it if not good. Then post it.
NOTE: make sure you have the privilege to insert an image in your blog entry.

Wavelog – wordpress手机客户端

今天在网上找到这个 Wavelog,同样是wordpress的blogging移动客户端 . 同样适用xmlrpc,只是作者是用symbian的native c++.没用过,貌似是要收费的.不错,有竞争对手了,我的mofire也要继续改进,下一个版本可以支持图片插入和拍照插入.

Powered by MoFire

怎样通过xmlrpc往wordpress上传文件

public class XmlRpc {
public static void main(String[] args) throws Exception {
XmlRpc xmlrpc = new XmlRpc();
Object result = xmlrpc.uploadFile();
System.out.println(result);
}
XmlRpcClient xmlrpc;
XmlRpcClientConfigImpl config;
public XmlRpc() throws MalformedURLException{
xmlrpc = new XmlRpcClient();
config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL("http://yourwordpress/xmlrpc.php"));
config.setConnectionTimeout(1000000);
xmlrpc.setConfig(config);
}

public Object uploadFile() throws XmlRpcException, IOException{
FileInputStream fis = new FileInputStream("c:/01.txt");
byte[] b = new byte[fis.available()];
fis.read(b);
HashMap map = new HashMap();
map.put("name", "abc.txt");
map.put("bits", b);
Object[] params = new Object[] {"1","yourname","yourpassword",map};
return xmlrpc.execute("metaWeblog.newMediaObject", params);
}
}

返回结果:

{type=, file=abc.txt, url=http://yourwordpress/wp-content/uploads/abc.txt}

使用apache的xmlrpc-client-3.1, wordpress2.3.2上测试通过

怎么在wordpress的主题里添加标签

wordpress的很多2.3上的主题不会显示tag - 主页index上和每个post的页面里都没有.
怎么把它填回去呢? 今天在网上找到了解决方案.

打开主题编辑

Main Index Template
Single Post

找到相应的位置加入:

<?php the_tags('before', 'separator', 'after'); ?>

我加的是:

<?php the_tags('Tags: ', ', ', ''); ?>

放到

<?php the_content(); ?>

后面