Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've applied all the template.php modifications, followed the directions to the T, but my forum comments won't theme according to what is specified. I have a node-forum.tpl.php, the forums are themed, and even the top post is themed-- any idea why the comments retain the original node layout?
Comments
Comment #1
Michelle"I have a node-forum.tpl.php"
That could be the problem. Since Drupal picks up on files by that name automatically, it might be interferring with the advforum code. Try moving that out of your theme and see if it helps.
Michelle
Comment #2
dangarc CreditAttribution: dangarc commentedwhen i move the file out, the forum loses its node scheme.
here is an excerpt from my template.php:
Comment #3
dangarc CreditAttribution: dangarc commentedwait, i think i see it. hang on.
*edit*
No, even after cleaning the code-- nothing.
Any ideas?
Comment #4
MichelleYour change made it worse. Go back to what you had in the first post and change "return array();" to "return $vars;"
Michelle
Comment #5
dangarc CreditAttribution: dangarc commentedhuh. So you want...
I can understand the first bit, that code definitely did work well, but not theming. Give me a second, I'm trying it out now.
*edit*
you're a genius, that worked great!
for the life of me, i don't remember why i was returning an array... but it didn't break anything in there, so its all good.
Comment #6
MichelleGarland and some other things only return $vars from the page case and return array() (which is basically returning nothing) from everything else. Since the default theme only deals with the page case, that's fine for them. But it's a pain if you want to add anything to the other cases because the results don't get returned unless you change that last return.
Thankfully this isn't an issue in D6 because adding these 3 lines of code cause more support requests.... Sigh.
Michelle
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.