2017-09-10, 11:37 PM
(2017-09-10, 10:29 PM)Michael2014 Wrote: Try this:
Open ./global.php and find:
$plugins->run_hooks("global_start");
and add the following code just Below that..
$stats = $cache->read("stats");
$stats['newest_user'] = build_profile_link($stats['lastusername'], $stats['lastuid']);
$total_posts = my_number_format($stats['numposts']);
$total_users = my_number_format($stats['numusers']);
Stats vars will work globally now..
You are welcome.
Tried that and I got an error..
A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.
Do NOT PM me for support unless I ask you on your support thread.