Hi Again -

I'm trying to post tests to my forums..and they don't show up. Log shows I posted them but they don't show on the page / forums. I know I'm missing something or a table got messed up..but I don't know what. I don't want to have to redo my whole site. Help?

-- Anna

Comments

nofue’s picture

Servus, Anna.

Just a trivial question: have you checked the publishing options for that user? Or, could it be the messages are hanging out in the queue, waiting for approval from some authorized user? Just a guess...

Norbert

-- form follows function

Norbert

-- form follows function

annabug’s picture

HI :)

Checked the que..not there. And I was posting them as admin so they should show, I would think. Good ideas though!

vm’s picture

Do you also have the categories.module installed? from the repository? I've only run into this when the vocabulary wasnt rebuilt after adding teh categories.module during testing.

annabug’s picture

Yes I do. What do you mean by rebuilt? That may be an issue and one I'm willing to look into. TY.

abloodworth’s picture

I was just having this problem as well with Drupal 5.7 and figured out the answer so I thought I'd post it. It seems like a Drupal Forums bug. When a forum is created, a Drupal Category is automatically created for it. If you go to Administer -> Categories when you are having this problem you will see that "Forums" does not have anything in the "Type" field. Despite what it says when you "Edit vocabulary" for the Forum about the Type -> Forum topic being "affixed to the forum vocabulary," it appears it isn't at first. I fixed this by adding another content type (e.g. Story) and saving. This added the "forum topic" content type (along with the "Story" content type) to the "Forums" vocabulary, and I could see that it had been added on the Administer -> Categories page. Then I just deleted the "Story" content type and "Forum topic" remained attached to the "Forums" vocabulary.

suityou01’s picture

Seems to be broken since adding bbcode and quicktags.

suityou01’s picture

The problem is that when the forum posts are added, the status flag is set to 0. If I manually update the table to set the status to 1 then the forum posts appear. I have the mod8 module installed but that has its own flag in its own table.

Baffled as to why the status is set to 0. This must be to do with publishing?

suityou01’s picture

I wanted to create a super user that could post without being moderated. I found another article that said to create a mini module
called moderation_skip, and the crux of it is this code

[code]
function moderation_skip_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
switch ($op) {
case 'presave':
if ($node->status != 1 && user_access('skip node moderation')) {
if (!user_access('administer nodes')) { // Don't reset for admins
$node->status = 1; // Publish the node.
}
}
break;
}
[/code]

But the node status is not being set to 1. Is presave the right $op to use? Any drupal bods spot the problem a mile off and make my life easier? Thanks in advance.

fehin’s picture

This solved it.