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