MyBB Community Forums

Full Version: get current forum title in template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I wanted to get the current "Forum" title inside forumdisplay and showthread templates. Is this possible without plugins?
didnt get you... Huh
I wanted to get the current "Forum title" inside the template, for example, this page forum title is "General Support"
{$forum['name']} should provide the forum name
I am not getting it printed if I use {$forum['name']}
Getting this value in PHP is also fine with me.
try using {$foruminfo['name']}
Still not getting
[attachment=31989]
If I am not mistaken, these are php variables which are defined and parsed in certain places of the forum. you can't use them in all pages unless they are global ones...

you initially asked about showthread and forumdisplay templates and we gave the info for that...

{$forum['name']} will print the forum name in showthread page and
{$foruminfo['name']} will get you the forum name in forumdisplay page
I tried these both
{$forum['name']} will print the forum name in showthread page and
{$foruminfo['name']} will get you the forum name in forumdisplay page
How ever I am not getting the values after page parsing.
Within which template exactly?
Pages: 1 2