Git Product home page Git Product logo

discuz_myupload's Introduction

=== 使用说明

###使用七牛直传接管discuz的论坛附件上传。

  1. 假设discuz代码位于 /my/website/ 下,插件的代码位于 discuz_myupload/ 下。

  2. 拷贝 discuz_myupload/code/ 中的所有文件到 /my/website/ 中。

  3. /my/website/misc.php /my/website/forum.php /my/website/source/module/forum/forum_image.php 三个文件的权限改为666。

  4. 如果使用了自定义模板,需要修改 /my/website/template/custom_template/forum/ 文件夹中的 forumdisplay_fastpost.htmpost.htmviewthread_fastpost.htm 三个文件中swfupload相关设置。 可参考 discuz_my_upload/code/template/default/ 中的相应文件。

forumdisplay_fastpost.htm中的修改:
forumdisplay_fastpost
viewthread_fastpost.htm中的修改:
viewthread_fastpost
post.htm 第一处修改:
post_1
post.htm 第二处修改:
post

  1. 进入discuz管理中心->应用->插件,安装并启用“七牛云存储直传助手 v0.0.1”。
    before_installed
    installed
    turned_on

  2. 进入discuz管理中心->应用->七牛云存储直传助手的设置页面,按照自己的实际情况填写参数, 并将“是否使用七牛直传”设置为“是”。
    settings

  3. 进入discuz管理中心->全局->上传设置->基本设置, 设置“本地附件url地址”为http://<your-qiniu-domain>/data/attachment
    local_url

  4. 如果要停止使用,只需将“是否使用七牛直传”设置为“否”。

discuz_myupload's People

Contributors

tuktalk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.