Tonight I tried to talk someone through adding the forum description to the template and he was having no luck so I tried it myself. I can't get the template copied to my theme to be picked up. I'm putting this as a task, not a bug, because it's late and it's possible I'm doing something stupid. I just wanted to note it so I remember to dig in more to make sure this isn't a bug since it's important functionality.

Michelle

Comments

troky’s picture

What template did you copy (exact filename)?

michelle’s picture

advanced-forum.naked.forums.tpl.php is the file that need to be changed. This is what I tried. None of these worked and the cache was cleared each time.

1) Copied advanced-forum.naked.forums.tpl.php to the theme.

2) Copied forums.tpl.php over to the theme as well in case it was hitting that no-derivitive-without-original issue.

3) Copied 1 & 2 to the base theme in case there was an issue with subthemes.

4) Renamed advanced-forum.naked.forums.tpl.php to advanced-forum.forums.tpl.php to get rid of the style specificity.

At that point I was out of ideas and told him to just edit the template in Naked itself until I could figure out what's wrong. I haven't had time to dig into the code, yet. Might not be for a few days or more. I'm pretty swamped right now.

Michelle

troky’s picture

2a) Use advanced-forum-forums.tpl.php anywhere in theme folder.

Template override (and future) naming convention is: advanced-forum-<template_name>.tpl.php

That is major todo for 3.x.

michelle’s picture

Status: Active » Closed (works as designed)

Ahhhh, that was it. And then the core forum template isn't needed. Definitely not a bug, then. Just didn't quite get my naming right. Been a long time since I've dug into any of that. I was just trying to help someone on IRC so ran thru it on my own site to try and figure out what was going wrong.

Thanks!

Michelle

aLearner’s picture

troky and Michelle,

Thanks so much for helping out! This is very useful information! I'll try it out and report back.

aLearner’s picture

troky and Michelle,

Just confirming that the steps above did solve the issue I was facing. So, all is good and things work as they should.

Thank you for taking the time to clarify things for me. It's much-appreciated.

modctek’s picture

I'm not clear on how to change the naming of the files. In my case, using the Silver Bells theme, but I want to alter the layout of the topic icon legend.

If I read the above correctly, I should copy "advanced-forum.naked.topic-legend.tpl.php" to my theme folder and rename it "advanced-forum-topic-legend.tpl.php"?

Also, what if my theme has a "templates" folder. I'm assuming it should go in the top-level of the theme directory and *not* into that sub-folder.

troky’s picture

advanced-forum-topic-legend.tpl.php is proper filename. You can put it anywhere in your theme (sub)folder.