WordPress.org

Ready to get started?Download WordPress

Forums

Disqus Comment System
Getting Disqus comment counts to show up on wptouch-powered mobile s (6 posts)

  1. archon810
    Member
    Posted 2 years ago #

    Hi,

    I know Disqus comment counts aren't officially supported with the wptouch mobile plugin, but there has to be a relatively easy way to fix that.

    It's done on the desktop site, and the same logic should theoretically be applied to the mobile site, maybe after a tweak. It would be of tremendous value if these could work together as wptouch is pretty much the only mobile plugin for WordPress and cannot be underestimated.

    http://wordpress.org/extend/plugins/disqus-comment-system/

  2. Disqus Community Support
    Member
    Posted 2 years ago #

    Hi Artem,

    It looks like WPtouch has an explicit check which looks for Disqus and, if Disqus is present, hides the comment bubbles. Here's a screenshot: http://dl.dropbox.com/u/15229959/Screenshots/~_-e_q1genwf.png

    Are any WPtouch devs present in this forum? I'd be happy to help collaborate on any new implementations or shed any light on any questions that originally arose which drove this product decision.

    (Anyone who wants to override this functionality in the meantime can remove that !function_exists('dsq_comments_template') && code and comment bubbles will still show properly even when Disqus is activated.)

    Best,

    Tyler

  3. archon810
    Member
    Posted 2 years ago #

    Hey Tyler,

    I'm guessing they did it because (and I'm making an assumption here) the comment counts displayed are coming from WP and not Disqus, which has the potential of being severely out of sync.

    Ideally, Disqus would apply the same logic (if it doesn't already) as it does on the main site and replace the comment counts with the JS calls to the Disqus API - is it doing it if the code you mentioned is removed?

    I am an active member of the WPTouch forums and have communicated with their team in the past, so I'll try to get them to take a look at this issue.

    Thanks, Tyler.

  4. archon810
    Member
    Posted 2 years ago #

    Looks like dsq is mentioned in more than one place too.

    ack dsq
    include/compat.php
    29:remove_filter( 'comments_number', 'dsq_comments_number' );
    
    include/template-tags/theme.php
    273:    if ( function_exists( 'dsq_comments_template' ) ) {
    
    themes/classic/iphone/functions.php
    221:    if ( !function_exists( 'id_activate_hooks' ) || !function_exists( 'dsq_is_installed' ) ) {
    
    themes/classic/ipad/functions.php
    204:    if ( !function_exists( 'id_activate_hooks' ) || !function_exists( 'dsq_is_installed' ) ) {
  5. archon810
    Member
    Posted 2 years ago #

    OK, in wptouch-pro, all that I needed to do in the end is adding this to the custom CSS for mobile:

    .disqus .comment-bubble {
      display: block !important;
    }
  6. archon810
    Member
    Posted 2 years ago #

    Ticket opened with wptouch support here: http://www.bravenewcode.com/support/topic/wptouch-force-suppresses-comment-bubbles-if-disqus-is-installed (you need to be logged in to their Pro support to see it, so the link is useful to BraveNewCode staff and wptouch pro members).

    I hope this will lead to a solution that doesn't require hacks like the code above (which btw still doesn't show comment bubbles on individual post pages).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic