From c58709a4fbdc91a5692e26b3afb22211d0f5a709 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 27 Feb 2013 04:03:13 -0800 Subject: [PATCH] Private Messaging Admin work. Not fully functional yet. --- .../shortcodes/batch/admin_shortcodes.php | 42 +++- e107_plugins/pm/admin_config.php | 223 ++++++++++++++++++ e107_themes/templates/footer_default.php | 9 +- e107_themes/templates/header_default.php | 73 +++--- 4 files changed, 311 insertions(+), 36 deletions(-) create mode 100644 e107_plugins/pm/admin_config.php 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 = '