Log in

View Full Version : Display Forum Name In Forum Display


MalakaiGonzalez
09-22-2009, 12:34 PM
Is there a way i can display the name of the forum when viewing the forum, in forumdisplay.

Say i had a forum called "Sports" and i clicked on it, then above the threads i want to put the forum name "Sports".

Something like this, im using this in the SHOWTHREAD template, to display the thread name when viewing a thread.
<h2>$thread[title]</h2>

Lynne
09-22-2009, 02:11 PM
Sure. I think it's just called $forum[title] or $foruminfo[title]. You can turn on the Description for the forums and it would be there, too.

MalakaiGonzalez
09-22-2009, 04:02 PM
Thanks a lot Lynne, it was $foruminfo[title]... :D

On a side note, for the one im using this in the SHOWTHREAD template, to display the thread name when viewing a thread:
<h2>$thread[title]</h2>

Is there a way to only display it in certain forums?

Lynne
09-22-2009, 07:21 PM
Put a condition around it:
<if condition="in_array($forumid, array(x, y, z))">
code to show title only in forumid x, y, or z
</if>