Hello,

I have installed nodecomment and nodeforum, and created 1 forum plus 1 topic and a few comments.

When I go through the Forums link (/forum), I can see the Forum, but with 0 posts and 0 comments. When I click on the Forum, no topics are listed.

When I use the node/nid link of the topic I have just created, then I can see the topic and the comments attached to the topic.

I am using the dev version.

Any Idea

Thanks,
Pascal

Comments

summit’s picture

Hi,
I do not have the same experience..
Do you have printscreens? Is Forum module still enabled.
Without more information I am not able to help you.
Do other experience the same?

greetings,
Martijn

summit’s picture

Status: Active » Closed (fixed)

Closed because of lack of activity.

jonphillips’s picture

Title: Topics and comments don't appera » Topics and comments don't apper
Status: Closed (fixed) » Active

Hi there!

This is happening to me too. (And many thanks for the module ... I'm excited to get it working properly.)

I'm guessing that the problem is that I'm seeing that the tids in my nodeforum table are set to zero? And/or no entries are made in the term_node table? I'm dangerous in that I understand this stuff a little bit, but not a lot.

I deactivated the old forum module before activating nodeforum, ran the update.php script, even deleted the old forum code just in case. But it doesn't seem to be setting the taxonomy term on the node. Is there any other information I could pass on to be helpful?

Once I go in and add the tid to nodeforum and an entry in term_node, I can see the nodes, reply to them (and the replies work fine) etc.

Thanks,
Jon

summit’s picture

Hi,

I had this experience earlier, than it was a Nodecomment case, because nodecomment is used, the node_comment_statistics table needs to be filled.
And of course the comment module needs to be disabled, and views enabled.

greetings,
Martijn

peterw’s picture

I am having a similar problem. When a user navigates into a forum and post a topic, the topic does not appear in that forum. Already existing topics and everything work fine when commenting, except when they create a new one. The topics do appear when looking at a view to display all forum topics.

What other information can I give to be more useful? I am using the 1.0 version of nodeforum, and the latest dev of nodecomment.

summit’s picture

Hi,

Nodeforum and nodecomment are integrated as forum is integrated with comment.
Therefore the nodeforum uses the functions from nodecomment.

Of course nodecomment was not build with supporting nodeforum functionality, but this needs further investigation.

EDIT: I have inserted this in the nodecomment.module just before:

**
 * Implementation of hook_link().
 */

to get no errors using nodecomment with nodeforum see: http://drupal.org/node/190304#comment-854518
(as using nodecomment with tracker):

if (!function_exists('comment_num_new')) {
  function comment_num_new($nid) {
    return nodecomment_num_new($nid);
  }
}

May be this helps you already with getting these integrated modules to work.
Greetings,
Martijn

jonphillips’s picture

Version: 5.x-1.x-dev » 5.x-1.0

Martijn,

You're a patient man with us. I inserted that code into my nodecomment module to see if that magically fixed anything, but sadly it didn't..

I'm still getting no tid set in the nodeforum table. It's always zero. The hook for nodeforum_insert clearly works because if I go in and hardcode a tid in there, it gets set in nodeforum. So perhaps something funky is happening in nodeforum_prepare? I'm approaching my limits of the inner workings of Drupal's node creation here ... the "post a new forum topic" link that I'm accessing does have a "section" query string with the appropriate tid in the URL ... but it doesn't seem to be either processing or stored correctly in nodeforum_prepare? Because it isn't there when nodeforum_insert tries to access it.

One other question - when a forum node is created, do you know what other entries in what other tables should be inserted? Is it just an entry in nodeforum? Should anything happen in term_node?

Thanks so much for your help.

Jon

summit’s picture

Hi,
Patience is my middle name :)

Nodeforum works like forum, so that you cannot have another taxonomy working together with the forum-taxonomy, is that the case with your install?
Did you clear the cache?

I do not really know how to help you further. I have nodeforum 1.0 installed exactly as in the tarball and my only chance in nodecomment is what I described above likewise tracker working with nodecomment.

Nodeforum works fine on www.trekking-world.com/nepal-forum
I will look in my database this evening if anything strange is happening to TID insertion.

Greetings,
Martijn

jonphillips’s picture

This helped solve my problem! Not exactly what you said, but when I went into my Categories screen, The Forums had no "Type" associated with it. When I clicked on "edit vocabulary", the forum topic selection was grayed out, but selected. I added "Comment" as a node type associated with the Forums vocabulary. After I submitted, the Categories table had "forum topic, comment" as the types associated with the Forums vocabulary. I went back in, deleted Comment, and "forum topic" remained ... and now it worked. I don't know if it was a quirk with my installation or a strange general hiccup, but here's what worked for me. Thanks so much for your help Martijn!

summit’s picture

Great it is working for you now!

Greetings,
Martijn

fersman4’s picture

#9 jonphillips

I had the same problem starting from a fresh install and no changes to nodeforum or nodecomment. I followed the steps from #9 (jonphillips) and viola! it started working properly.

peterw’s picture

this fixed my problem too. Is there some way this can be in the documentation somewhere, like the installation instructions, or is this tidbit only limited to a few installations?

EDIT: Ok, so I did some digging around in the database, and I just thought I should post how to recover these "lost forum topics". First you fill in those zero entries with the id of the forum. This tid (term id, the category) can be determined by editing the forum from the admin page: it is in the url. Importantly you also need to add a row into the term_node table. This is kind of a reverse link. You need to enter the node id of the forum topic, and the tid of the forum category as determined above. This is at least the case with 5.x as far as I know.

peterw’s picture

EDIT: by rereading one of the above posts, this question was answered. My apologies.

summit’s picture

Status: Active » Fixed

Great Peter,
Setting this to fix then! If you like this module, a link to www.trekking-world.com very much appreciated!
greetings,
Martijn

Status: Fixed » Closed (fixed)

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