MyBB Community Forums
Active forum variable - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Requests (https://community.mybb.com/forum-65.html)
+---- Thread: Active forum variable (/thread-34723.html)



Active forum variable - monacelli - 2008-08-03

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


RE: Active forum variable - LeX- - 2008-08-03

<a href="./forumdisplay?fid={$forum['fid']}">{$forum['name']}</a>

Does this work ?


RE: Active forum variable - monacelli - 2008-08-04

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

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