Why you need to edit this? Use specific variables to fetch data,
(2012-11-24, 04:09 PM)jony Wrote: [ -> ]I only want it to say welcome back, Jony, without the date, I just want the date on a different var.
<span>Welcome Back, {$mybb->user['username']}</span>
For date & time:
{$lang->welcome_current_time}
For Most online you can use these variables:
{$recordcount} or {$mostonline['numusers']}
{$recorddate}
{$recordtime}
And for Who's Online you will be able to use:
{$onlinecount}
{$membercount}
{$guestcount}
{$botcount}
{$onlinemembers}
Newest Member:
{$newestmember}
Variable to show unread PM count:
{$mybb->user['pms_unread']}
Variable to show user reputation count:
{$mybb->user['reputation']}
Showing total User & Total Post at Header: (thanx to Yaldaram)
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: {$stats['numusers']} - Total Posts: {$stats['numposts']}</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");
Save the file.
For obtaining available variable list simply create a php file in your MyBB root with the name varlist.php (or something like that) including following code and call the php file in your browser.
<?
define("IN_MYBB", 1);
require_once "./global.php";
echo '<pre>';
var_dump($mybb);
var_dump($lang);
echo '</pre>';
?>