MyBB Community Forums

Full Version: Where is "{$forums}" defined?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My template for Index page contains a tag called {$forums}


Where is that tag defined?

thx

(posted here cuz i cannot find a Template forum)
(2018-01-11, 10:32 PM)Euan T Wrote: [ -> ]It's defined in the PHP, here: https://github.com/mybb/mybb/blob/featur...x.php#L379

you mean, there's no place in the admin panel to edit this?
isn't that the purpose of all the Template sets?

thx

i want to show only categories on the board home index page.
surely that can be done in the ACP Templates section, right?

thx!
No, there is no way to edit where a variable is defined in the code. Variables are defined in code and are accessible inside templates.

Are you wanting to change the page at /index.php to only show categories and not any subforums?
(2018-01-12, 07:19 PM)Euan T Wrote: [ -> ]Are you wanting to change the page at /index.php to only show categories and not any subforums?

Yes. I solved it by editing the Templates.
Is there another way?

thx
Not as far as I know I'm afraid.