Disqus Comment Count Integration

Hello there,

As my title says, I'm hoping for help integrating Disqus comment count in my news page, so it shows how many comments were made on each news item.

This probably is quite easy but I can't get it to work.
The original code looks like this:

`Link`

I've tried several modifications like this but I really suck at php. I can't find the function that calls the titlelink in mysql.

`"#disqus_thread">'View Comments`

I hope that one of you can help me!

Comments

  • Probably you should review some of the themeing tutorial and the object model. Then you would realize there is a fundamental difference between "get" functions and "print" functions. The latter produces the whole required HTML.

    What you want is `<?php echo getNewsURL(getNewsTitleLink()); ?>`
  • Thank you sbillard! I've tried "get" too but only tried getNewsTitleLink () without the getNewsUrl before.

    Well I'm still learning. Thanks again, even more since this was obviously a stupid question.
  • Here is another hint. One can always look at the code of the "print" functins to see where they get the items to be printed.
Sign In or Register to comment.