Giter VIP home page Giter VIP logo

Comments (7)

LoeiFy avatar LoeiFy commented on August 25, 2024

多说确实有问题。迟点考虑加上自带回复功能

from diaspora.

LoeiFy avatar LoeiFy commented on August 25, 2024

好吧,我应该不大会去增加自带 wp 回复功能的了。有兴趣的可以自行添加,提个 pr 什么的。

这里说明下多说评论功能位置:
https://github.com/LoeiFy/Diaspora/blob/master/assets/Diaspora.js#L448-L468

            // comment
            case (tag.indexOf('comment') != -1):
                Diaspora.loading()
                $('.comment').removeClass('link').html('')

                var id = $('.comment').data('id'),
                    get_comments = function() {
                        var el = document.createElement('div');
                        el.setAttribute('data-thread-key', id)
                        DUOSHUO.EmbedThread(el)
                        $('.comment').html(el)
                        Diaspora.loaded()
                    };

                if (window.DUOSHUO) {
                    get_comments()
                } else {
                    $.getScript('//static.duoshuo.com/embed.js', function() {
                        get_comments()
                    })
                }
            break;

如果想取消掉多说评论,只需要修改这个地方的触发函数即可

from diaspora.

zerwill avatar zerwill commented on August 25, 2024

这个怎么改成 畅言呢 不太懂js

from diaspora.

zerwill avatar zerwill commented on August 25, 2024

@LoeiFy

from diaspora.

LoeiFy avatar LoeiFy commented on August 25, 2024

@zerwill 这个可以换,迟点会添加一个配置,选择几个主流评论系统及自带评论系统

from diaspora.

PeterCxy avatar PeterCxy commented on August 25, 2024

@zerwill 关于如何替换评论系统你可以看我移植到Ghost的时候替换为Disqus的commit PeterCxy/ghost-diaspora@aedd1ad

from diaspora.

LoeiFy avatar LoeiFy commented on August 25, 2024

已经添加自带评论支持,但是没有添加 css 样式,需要自行添加

from diaspora.

Related Issues (20)

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.