Member
Member
Yannick   30-06-2012, 17:11
#1

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.

`

Member
Member
sbillard   30-06-2012, 17:37
#2

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 ``

Member
Member
Yannick   30-06-2012, 18:53
#3

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.

Member
Member
sbillard   30-06-2012, 19:55
#4

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.