Coder Social home page Coder Social logo

duoshuo-phpcms's Introduction

1.访问http://duoshuo.com/create-site/ 创建多说站点,在管理后台获取代码

2.将本代码库的文件下载,选择与phpcms相同的encode(utf8或gbk),将其中的子目录拷贝到phpcms主目录下(api目录会合并到原api目录)

3.访问你站点下的duoshuo安装接口:http://xxxxx.com/api.php?op=duoshuo_install

4.安装完毕,删除api/duoshuo_install.php文件

5.备份模板文件(每种文档类型,已经评论列表模板)

6.在模板文件中插入多说代码(增加data-thread-key和data-title参数)

7.更新文档,在“应用”->“已安装的应用”里找到多说,“配置”。填入name和secret

8.数据库操作(建回流表) 建回流表:

CREATE TABLE IF NOT EXISTS v9_duoshuo_commentmeta (
post_id bigint(20) unsigned NOT NULL COMMENT '多说评论id',
tableid int(11) unsigned NOT NULL COMMENT '表id号',
cid int(10) unsigned NOT NULL COMMENT '本地表内评论id',
PRIMARY KEY (post_id),
KEY tableid (tableid,cid)
) ENGINE=MyISAM;

====!!申请站点后跟小武联系,告知你申请的多说二级域名以及api接口地址,一般是http://xxxxx.com/api.php?op=duoshuo 开通实时回流功能

9.测试回流效果

duoshuo-phpcms's People

Contributors

allendingchen 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.