Small modifications (working for me)
Whos Online:
Find in /includes/functions_online.php:
PHP Code:
case 'showgroups':
$userinfo['action'] = $vbphrase['viewing_forum_leaders'];
break;
under it add:
PHP Code:
case 'article':
$userinfo['action'] = $vbphrase['viewing_articles'];
break;
Still in includes/functions_online.php find:
PHP Code:
case 'showgroups.php':
$userinfo['activity'] = 'showgroups';
break;
Under it add:
PHP Code:
case 'article.php':
$userinfo['activity'] = 'article';
break;
Then add the following phrases:
Code:
Who's Online
Var: viewing_articles
Text: Viewing Articles
Admin Quick Stats Addition:
I plan on moderating all new articles so this is handy for me.
In ..admincp/index.php find:
PHP Code:
$newthreads = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "thread WHERE dateline >= $starttime");
Under it add:
PHP Code:
$newarticles = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "article WHERE dateline >= $starttime");
Still in ..admincp/index.php find:
PHP Code:
print_cells_row(array(
$vbphrase['new_threads_today'], vb_number_format($newthreads['count']),
$vbphrase['threads_awaiting_moderation'] . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=posts"), vb_number_format($threadcount['count']),
), 0, 0, -4, 'top', 1);
Under it add:
PHP Code:
print_cells_row(array(
$vbphrase['new_articles_today'], vb_number_format($newarticles['count']),
$vbphrase['articles_awaiting_moderation'] . construct_link_code($vbphrase['view'], "article.php?do=modarticles"), vb_number_format($articlecount['count']),
), 0, 0, -4, 'top', 1);
Add the following phrases:
Code:
Control Panel Home Pages
var: articles
text: Articles
Control Panel Home Pages
var: new_articles_today
text: New Articles Today
Control Panel Home Pages
var: articles_awaiting_moderation
text: Articles Awaiting Moderation