Skip to content

nForum 1.1 Changelog

xw2423 edited this page Mar 10, 2013 · 4 revisions

本文档记录了nForum1.0版本至nForum1.1版本的大部分变化,由于nForum1.1从开发至稳定经历了一段时间,所以,本文档所记录的变化可能包含了多个git版本的更新。写下本文档时nForum的版本为此版本,目前github上的nForum最新版本即为nForum1.1,如果需要使用nForum1.0请git checkout 1.0或直接点击此下载

nForum1.1的主要变化

  • 重构了前端html,javascript并重新定义了ajax交互的数据格式,详细内容参看文档nForum-Front

  • 使用nforum_iconv处理所有编码转换,此函数在 app/vendors/inc/func.php

  • 进站界面采用ajax登录验证后跳转,如果需提供其他界面的跳转请修改 app/www/js/forum.pre.js

  • 对于文章和邮件使用了新的回复和转发接口,具体参见 app/vendors/model/article.phpapp/vendors/model/mail.php 的修改

  • 修复了附件个数超出规定个数的帖子的显示问题

  • 提供缩略图功能并应用于手机版和API,参见 app/controllers/components/thumbnail.php ,请手动添加 tmp/cache/thumbnail 文件夹并将其属性设置成为777

  • 新增 app/config/redirectacl.php 配置文件,配置不跳转的界面和搜索引擎选项

  • 对于核心css、javascript文件采用手动打包,在命令行下运行

    cake -app app buildasset

    会在app/www/css和app/www/js目录下生成新的pack文件

  • 新增全站搜索功能,由app/config/nforum.php中的$config['search']['site']控制

  • app/config/nforum.php 文件新增以下配置,具体参见 app/config/nforum.php.example ,请仔细对照新配置修改。

     $config['search']['site'] = false;
     $config['jsr']['session']['timeout'] = 60;
     $config['site']['preIndex'] = true;
     $config['redirect']['time'] = 4;
     $config['thumbnail']['small'] = array(120, null);
     $config['thumbnail']['middle'] = array(240, null);
    
  • nForum API,查看nForum API获取详细描述

新增API

  • /article/board/forward/id 转寄文章

  • /mail/box/reply/num 回信接口

  • /mail/box/forward/num 转寄信件

  • 用户元数据:增加 is_hide,is_register,is_admin,new_mail,full_mail,stay_count字段

  • 版面元数据:增加 user_online_count字段

  • 附件元数据:增加 thumbnail_small,thumbnail_middle字段

Clone this wiki locally