Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment #39

Closed
ghost opened this issue Nov 8, 2016 · 6 comments
Closed

Comment #39

ghost opened this issue Nov 8, 2016 · 6 comments

Comments

@ghost
Copy link

ghost commented Nov 8, 2016

change comment and share.
http://tohumtopraksu.com

<div` class="comment link" data-id="<?php the_ID(); `?>">Comment</div>
under
disqus comment code and share
disqus appears after the page is refreshed

@LoeiFy
Copy link
Owner

LoeiFy commented Nov 9, 2016

@cmedya
you can not put the disqus code directly into the page html
add disqus code and change here: https://github.com/LoeiFy/Diaspora/blob/master/assets/Diaspora.js#L447-L467

            // comment
            case (tag.indexOf('comment') != -1 && tag.indexOf('link') != -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;

@ghost
Copy link
Author

ghost commented Nov 9, 2016

where did I go wrong
Diaspora.js.zip

@LoeiFy
Copy link
Owner

LoeiFy commented Nov 17, 2016

@cmedya sorry that so late, i will publish new version with disqus later

@LoeiFy
Copy link
Owner

LoeiFy commented Nov 17, 2016

@cmedya
get the new version of Diaspora and add your disqus name here: https://github.com/LoeiFy/Diaspora/blob/master/header.php#L42-L46

<script>var disqus_shortname = 'your_disqus_name_here'</script>

@ghost
Copy link
Author

ghost commented Nov 18, 2016

Thanks @LoeiFy .

  • a separate language file.

@LoeiFy
Copy link
Owner

LoeiFy commented Nov 19, 2016

@cmedya sorry, i am not going on this theme multi-language development. hope your understanding

@LoeiFy LoeiFy closed this as completed Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant