Did you ever figure this out? I am trying to do something similar and it would be great to just be able to paste some known working code instead of trying to start from scratch. Thanks!
No actually, the template conditional didn't work well. I actually ended up just placing ALL my custom files within the /forum as opposed to root directory which resolved the problem.