Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 13 Years, 6 Months, 3 Weeks ago Number Stats On Header
#1
Solved: 13 Years, 6 Months, 3 Weeks ago
Hi mybb.. I want ask you again Big Grin how to put Stats only Total Post and Total User in header. So in may page stats always in header.
you know like this

TOTAL USER
2330

TOTAL POST
574.101

Please help me.. If need plugin or modification post here Big Grin
#2
Solved: 13 Years, 6 Months, 3 Weeks ago
ACP > Templates > Header Templates > header_welcomeblock_member > and find;
{$lang->welcome_pms_usage}
and add the following code just After that;
 | <span style="font-size: 11px;">Total Users: {$total_users} - Total Posts: {$total_posts}</span>
Save the template.

Now open ./global.php and find;
$plugins->run_hooks("global_start");
and add the following code just Below that;
$stats = $cache->read("stats");
$total_posts = my_number_format($stats['numposts']);
$total_users = my_number_format($stats['numusers']);
Save the file.

Now you'll get like the following;
   
#3
Solved: 13 Years, 6 Months, 3 Weeks ago
(2011-06-28, 04:56 PM)Yaldaram Wrote: ACP > Templates > Header Templates > header_welcomeblock_member > and find;
{$lang->welcome_pms_usage}
and add the following code just After that;
 | <span style="font-size: 11px;">Total Users: {$total_users} - Total Posts: {$total_posts}</span>
Save the template.

Now open ./global.php and find;
$plugins->run_hooks("global_start");
and add the following code just Below that;
$stats = $cache->read("stats");
$total_posts = my_number_format($stats['numposts']);
$total_users = my_number_format($stats['numusers']);
Save the file.

Now you'll get like the following;

Wow thanks you're the best. Mark as solved
#4
Solved: 13 Years, 6 Months, 3 Weeks ago
No problem =)


Forum Jump:


Users browsing this thread: 1 Guest(s)