MyBB Community Forums

Full Version: Template Variable Dictionary?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a place where I can find most/all of the variables that are available for use in MyBB templates?

I'm looking for a type of thing that would do this:
Quote:{$forum_url} = Inserts the appropriate forum URL.
{$forum['name']} = Inserts the name of the appropriate forum.
And so on....

So does anyone know if there is a place that has this?
There is no resource like this that I know of and it would be incredibly difficult to make one. The variables available depend on the template and where it is called from.

Is there a particular variable you are looking for?
If you want to do your forum's url you can use {$mybb->settings['bburl']}. To display your forums name you can use {$mybb->settings['bbname']}. Both of those would be available on every page.
(2014-10-13, 12:53 PM)dragonexpert Wrote: [ -> ]If you want to do your forum's url you can use {$mybb->settings['bburl']}.  To display your forums name you can use {$mybb->settings['bbname']}.  Both of those would be available on every page.

I was looking for more specific variables like the variable that is just for a forum fid, instead of the whole url to that forum.