Not Solved Where is "{$forums}" defined?
#1
Not Solved
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)
Reply
#2
Not Solved
It's defined in the PHP, here: https://github.com/mybb/mybb/blob/featur...x.php#L379
Reply
#3
Not Solved
(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!
Reply
#4
Not Solved
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?
Reply
#5
Not Solved
(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
Reply
#6
Not Solved
Not as far as I know I'm afraid.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)