Support » Plugin: Disqus Comment System » [Plugin: Disqus Comment System] Getting Disqus comment counts to show up on wptouch-powered mobile s

  • 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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    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.

    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' ) ) {

    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;
    }

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Disqus Comment System] Getting Disqus comment counts to show up on wptouch-powered mobile s’ is closed to new replies.