代码改变世界

asaph

2011-11-24 15:36  youxin  阅读(342)  评论(0编辑  收藏  举报

搞了几个小时总算搞好了,先看看asaph是什么

Asaph

 

Asaph is a micro-blogging system, focusing on collecting links and images from other pages. It allows you to post content directly from any page you are on. Asaph is not a full blown blog and it does not aim to be one — it just does this one task, but it's pretty good at it.

The alternative Stickney Theme also shows date and author information for each post and allows posting of longer texts. Feel free to modify these themes to your liking, or create new ones.

工程主页: http://www.phoboslab.org/projects/asaph

安装只需设置三个项目就可以了

$domain$absolutePath and $db. You also have the option to switch from the minimalist whiteout templates to the stickney templates by just replacing both occurrences of “whiteout” with “stickney” in the $templates setting.

但是我搞了好久,还没搞好,主要是二级域名和二级目录的问题

用二级域名

// Domain name and path where Asaph is installed in
public static $domain = 'asaph.schoolbaike.com';
public static $absolutePath = '/';

不行啊,改来改去就是不行,没辙,

最后迫不得已放在二级域名的目录下

// Domain name and path where Asaph is installed in
public static $domain = 'blog.schoolbaike.com';
public static $absolutePath = '/asaph/';

终于Ok了,

怎么换模板呢?

You also have the option to switch from the minimalist whiteout templates to the stickney templates by just replacing both occurrences of “whiteout” with “stickney” in the $templates setting.

在配置文件了把whiteout全都换成stickney就可以了啊!