Closed (works as designed)
Project:
Advanced Forum
Version:
7.x-2.x-dev
Component:
Styles
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
5 Sep 2011 at 04:28 UTC
Updated:
13 Aug 2012 at 06:29 UTC
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
Comment #1
troky commentedWhat template did you copy (exact filename)?
Comment #2
michelleadvanced-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
Comment #3
troky commented2a) Use
advanced-forum-forums.tpl.phpanywhere in theme folder.Template override (and future) naming convention is: advanced-forum-<template_name>.tpl.php
That is major todo for 3.x.
Comment #4
michelleAhhhh, 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
Comment #5
aLearner commentedtroky and Michelle,
Thanks so much for helping out! This is very useful information! I'll try it out and report back.
Comment #6
aLearner commentedtroky 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.
Comment #7
modctek commentedI'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.
Comment #8
troky commentedadvanced-forum-topic-legend.tpl.php is proper filename. You can put it anywhere in your theme (sub)folder.