Hi,

first of all thank you a million times for this module!

I have installed it and would like to have recent comments displayed when viewing a node. For example, when I view 'story' content type, there would be a discuss link at the bottom. When there are e.g. 15 comments on that story, there would be 5 comments displayed under the text and in order to see all of the comments, the user would have to click a link.

I thought that the option "Number of comments to display:" on the settings page deals with this, but it seems to have no effect no matter what I choose.

Also, the option "Login/Register link for Anonymous users" didn't work for me. There are no links displayed for anonymous users, although permissions are set correctly.

Comments

lion123’s picture

I was playing a bit with permissions (adding all of the permissions to anonymous users, then removing them) and now links Login/Register link for Anonymous users is displayed.

However, no improvement with "Number of comments to display"

AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke

lion123,

Yeah... the login for anonymous is a bit tricky to get.

I see that count... it was there from the former programmer. It is not used anywhere. I guess I should remove it from the admin screen. To change the number of comments in your forums, go to the following path:

admin/content/node-type/forum

Unfortunately, there is only one count for all the forums.

Did you have something else in mind?

Thank you.
Alexis Wilke

lion123’s picture

Thank you for your reply.

Number of comments displayed on forum page is not a problem.

The thing I'd like to accomplish is to have recent comments displayed when viewing a node. So, when you use 'discuss this' link in a node, you create a forum topic. I'd like to see recent messages from that topic in a node.

Example:

There is a node called 'Drupal CMS'. There is a 'discuss this' link at the bottom. You click it and create a forum topic called 'Drupal CMS Forum Topic'. Now you write a comment to that topic, someone replies etc. In the end there are for instance 14 messages in that topic. Now I'd like to see last 3 or 5 of these comments under the original node 'Drupal CMS'. There would also be a link, something like - "See all of the comments by clicking on this link"

I hope I clarified this one :)

AlexisWilke’s picture

lion123,

I thought that the point of using Discuss This! was to avoid seeing the comments on the page. I assume that what you are saying is to put those comments on the 'Drupal CMS' page, correct? In which case, why not just accept comments on that page?

Thank you.
Alexis

lion123’s picture

Yes, there would be a few recent comments displayed on 'Drupal CMS' page.

Well, my primary community interaction is on forum and I'd like to avoid filling articles with too many comments. This way users are motivated to write on forum (when they see other comments) and I get more active forum.

AlexisWilke’s picture

It could have been the idea behind having that field... 8-)

I think it will be relatively easy. If I recall, there is a function one can call to get a list of the comments. I'm not too sure, though, whether we can control the number of comments... More later.

Thank you.
Alexis

lion123’s picture

It would be great if you could implement that option. Even better if we would be able to choose number of comments displayed :)

AlexisWilke’s picture

Status: Active » Fixed

lion123,

This is done. Let me know if you have any problems. You'll have to check out the -dev within the next 12h.

If you have problems with it, don't hesitate to reopen this issue.

Thank you.
Alexis Wilke

lion123’s picture

Status: Fixed » Active

Hi Alexis,

thanks for implementing this function, but I get the following error when trying to publish a comment and create a new topic:

Fatal error: Call to undefined function _discussthis_get_forum() in C:\server\htdocs\00novo\sites\all\modules\discussthis\discussthis.module on line 837

AlexisWilke’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Status: Active » Fixed

lion123,

Ha! Ha! Okay... I found a couple of issues. 8-)

The code has changed from D5 to D6 a while back and there were a couple things that I did not understand. Now I got it and made fixes as I think is required (better suited.)

Again, don't hesitate to re-open the issue if you still have problems. I have tested a lot more and fixed the very problem you mentioned here.

Thank you.
Alexis Wilke

lion123’s picture

Now there's no error, but there are no comments displayed under the article. I wrote 3 comments, but they are displayed only on forum and under the article is only "Participate in this discussion" link

lion123’s picture

Status: Fixed » Active
AlexisWilke’s picture

Did you edit the settings (admin/settings/discussthis) and put a number larger than 0 in the "Number of comments" field?

Thank you.
Alexis

P.S. it works on my page where I have one comment "Discussing..." ... is one of them (I tried on 3 different nodes).

lion123’s picture

Yed I did, but it didn't show. I'll do some more testing during the day and let you know.

lion123’s picture

Ok, I'm obviously having some problems with my testing environment. I couldn't get any Discuss this link visible so I reinstalled the whole Drupal system.

Unfortunately, it's still the same. I downgraded to Discuss This 1.3 (not dev!) but there were no links again. I guess that it works if you can make it work on your site.

AlexisWilke’s picture

lion123,

I tested on a site where I know I never had Discuss This! installed and it worked. Did you make sure to select the proper forum & format in the Discuss This! settings? It only works on regular nodes (opposed to Views and other generated pages.)

Thank you.
Alexis

lion123’s picture

Works now! :D

The problem was that it was nested in a div class that I defined in my theme as "display:none" long time ago :)

Is there a way to change the output style? Something like creating an own div class that could be positioned as we wish. Does Discuss This control output at all or it's defined by our theme?

To explain a little - I'd like to get a title above these comments (something like "newest comments"). I'd also like to move comments to the bottom of the node, since there are tags displayed under the text. The current output is:

text
comments
tags
"discuss this" link

Thank you once more!

AlexisWilke’s picture

Status: Active » Fixed

lion123,

I'll mark this request as fixed 8-)

For the theming, the link is defined in a list item:

    <li class="discussthis">...</li>

Is that what you want to theme? I would think that would be easy enough? We could add a <div> but it could interfere with many other themes.

Thank you.
Alexis

P.S. If the theme is still a problem, let's open another issue!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Rob T’s picture

Status: Closed (fixed) » Active

My DiscussThis link appears and works great. What isn't working is the display of comments on the original node. I have changed the DiscussThis admin setting for "Number of comments", but they still never appear on my original node.

The source code for the node shows that DiscussThis is doing something, as I see this in the source, but no comment data seems to be getting through:

<div class="discussthis">
  <div id="comments" class=""></div>
</div>

Any advice would be appreciated. I truly want the ability to display a small amount of comments on the original node, even if they reside in the associated forum topic node.

---------
***Not part of this issue: As a module feature request (providing the display of comments on original node can work), I'd love to have the ability to determine how many comments to show on the original node per content type - configurable in the same area as the forum designation and input format select.

Rob T’s picture

Status: Active » Fixed

Moving back to "fixed". I had previously experimented with AJAX Comments (which requires Comments Bonus API). While AJAX Comments was long gone, I still has the Comments Bonus API module active. Once I turned that off, this feature worked as desired.

Coincidentally, this same Comments Bonus API messes with the comments forms and Talk, another contributed module that works with stock Drupal comments.

AlexisWilke’s picture

Rob,

Good. 8-)

As I was looking at the problem, I noticed that the module was not including the CSS file. So I added that and now things are being formatted. Anyway... I tested the comment some more first and it worked for me anyway... so that makes sense (incompatibility interactions.)

Thank you.
Alexis

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

texas-bronius’s picture

Just wanted to add a support note to anyone reading this: I had to enable "View Comments" for anonymous, and the issue described above appears to have been resolved for me. Using 1.5.

Thanks for the great module! :D

AlexisWilke’s picture

Thank you texas-bronius!

I updated my Known Issues page with the info:

https://secure.m2osw.com/doc_discussthis_knownissues

Best,
Alexis