inherit
223366
0
Jun 20, 2024 5:38:45 GMT -8
mikemcd
176
July 2015
mikemcd
|
Post by mikemcd on Dec 25, 2016 8:25:18 GMT -8
Are loops and variables that are found in templates available to all HTML?
I'm trying to copy the forum information and stats section of the home page to a custom page. Going into the Home template and copying it to an HTML box widget in a zone on a custom page only seems to half work. It looks like it builds everything right, but instead of actual information I get stuff like
Users Online in the Last 24 Hours
$[total_staff_online_24] Staff, $[total_members_online_24]
instead of
Users Online in the Last 24 Hours
1 Staff, 2 Members
Is there any way to copy or modify those loops and variables? Where the heck are they really stored?
Thanks!
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Dec 25, 2016 15:18:36 GMT -8
Template variables only work in the templates. Custom pages have access to "global variables" which you will see on the Html tab but nothing else.
Additionally info centre data is only available on the home page of the forum so attempting to display it elsewhere would not function properly.
|
|