###使用七牛直传接管discuz的论坛附件上传。
-
假设discuz代码位于
/my/website/
下,插件的代码位于discuz_myupload/
下。 -
拷贝
discuz_myupload/code/
中的所有文件到/my/website/
中。 -
将
/my/website/misc.php
/my/website/forum.php
/my/website/source/module/forum/forum_image.php
三个文件的权限改为666。 -
如果使用了自定义模板,需要修改
/my/website/template/custom_template/forum/
文件夹中的forumdisplay_fastpost.htm
、post.htm
、viewthread_fastpost.htm
三个文件中swfupload相关设置。 可参考discuz_my_upload/code/template/default/
中的相应文件。
forumdisplay_fastpost.htm中的修改:
viewthread_fastpost.htm中的修改:
post.htm 第一处修改:
post.htm 第二处修改: