MyBB Community Forums

Full Version: Variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
$stats is an array, so {$stats} will generate an error.

OK, but there must be a script whre the template is evaluated!! And that script must have access to the array $stats through a global statement.


EDIT
OK, I see now that the portal_latestthreads template is a standard one. I will have a look.

EDIT 2
Can you show your version of the portal_latestthreads temlate?
(2015-08-29, 08:58 PM)Ad Bakker Wrote: [ -> ]$stats is an array, so {$stats} will generate an error.

OK, but there must be a script whre the template is evaluated!! And that script must have access to the array $stats through a global statement.


EDIT
OK, I see now that the portal_latestthreads template is a standard one. I will have a look.

EDIT 2
Can you show your version of the portal_latestthreads temlate?

<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$lang->latest_threads}</strong></td>
</tr>
{$threadlist}
</table>
<br>
(2015-08-29, 09:28 PM)Wires Wrote: [ -> ]
<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$lang->latest_threads}</strong></td>
</tr>
{$threadlist}
</table>
<br>

But I see none of the stats variables here Huh . Where do these come in?
Pages: 1 2