diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index b2a257fca..b5dacd565 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -575,6 +575,42 @@ class admin_shortcodes function sc_admin_pm($parm) { if(!e107::isInstalled('pm')) return; + + $sql = e107::getDb(); + $count = $sql->count('private_msg','(*)','WHERE pm_read = 0'); + + if ($count >0) + { + $countDisp = ' '.$count.' ' ; + } + else + { + $countDisp = ''; + } + + $text = ' + '; + + return $text; + + // e107_plugins/pm/pm.php + + + + + $text = '