MyBB Community Forums

Full Version: Active forum variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm adding a link to the bottom of my 'showthread' template that will bring a user back to the forum the thread was posted in. I figured out that {$forum['name']} will display the forum name but I can't seem to figure out what variable to use for the active forum url. Help? Smile
<a href="{$forum_url}">{$forum['name']}</a>

That's as close as I can get, except $forum_url points to the thread url and not the forum the thread was posted in. Sad
<a href="./forumdisplay?fid={$forum['fid']}">{$forum['name']}</a>

Does this work ?
(2008-08-03, 11:23 PM)LeX- Wrote: [ -> ]Does this work ?

{$forum['fid']} was exactly what I needed. Thanks!