Hello. I am new to Drupal. I have enabled the forums module. I have also installed and enabled Advanced Forums. All seem to be functioning well.

I am attempting to do some customization of the main forum page.

The documentation I found said to copy the forums.tpl.php to my themes directory, make any changes to that file, clear the cache, and the changes should be reflected. This doesn't seem to be working for me. Am I doing something wrong?

I posted this to the wrong forum first. BrianV responded and said "The forums.tpl.php should be copied to the directory containing the theme you are using. For instance, if you are using Garland, copy the forums.tpl.php to themes/garland."

This is what I tried and it didn't work so any guidance would be greatly appreciated.

Thanks very much.

Comments

zmetzner’s picture

Title: <h1>Whos Online</h1> » Customer Theming of Forum
zmetzner’s picture

Title: Customer Theming of Forum » Custom Theming of Forum
michelle’s picture

Status: Active » Fixed

You're reading the wrong instructions. Try these: http://drupal.org/node/234042

Michelle

zmetzner’s picture

Hey Michelle,

Thanks for responding. Let me know if I am missing something but the instructions you referenced seem to say the same thing:

"Making slight alterations:
D6 Copy any .tpl or .css files you want to change to your theme directory. "

I am trying to edit forums.tpl.php in the /modules/forum dir.

I tried copying to my overall themes dir (/themes/foliage) and making a change there. That didn't seem to work.
Then I just tried copying it to my Advanced Forum theme dir ("boxy") but that didn't seem to work either.

Am I still misinterpreting the instructions?

Thanks.

michelle’s picture

Well, I guess "any" is vague. I just sort of assumed there that people would realize I meant Advanced Forum files, not literally "any" files. forums.tpl.php is not an AF file. If you are trying to modify an AF style, you need to modify the AF templates, not core forum's templates. The list is there on that page I linked you to.

Michelle

zmetzner’s picture

Got it. That worked. Thanks so much. Really appreciate the help.

michelle’s picture

Cool. :)

Curious... What are you changing?

Michelle

zmetzner’s picture

Sorry - Just saw your question. I wanted to change "forum" to "discussion". Was pretty straightforward overall but there was a table that had "forum" hard coded in advf-forum-list.tpl.

print t('Forum'); print t('Topics'); print t('Posts'); print t('Last post');

So I put that file in my theme dir, made the change manual, and all is good. Thanks again for the direction.

michelle’s picture

Ah, I see. Normally you'd use the translation system to override those. That's why they're wrapped in t(). But changing them in the template works as well.

Michelle

zmetzner’s picture

I took a quick look at the translation system but didn't dive in. I will check that out as well for future reference. Thanks!

michelle’s picture

If you don't need to do a whole language change, the string overrides module is your best bet.

Michelle

MGParisi’s picture

Try the String Replace Function http://drupal.org/project/stringoverrides

Reviews: http://drupalmodules.com/module/string-overrides

Hey, its a Rob Loach Production, what do you expect... 6 stars?

Anyways, thanks... this post is exactly what I needed as I transfer my site to 6.x!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.