diff --git a/addons/member_communication/member_communication.addon.php b/addons/member_communication/member_communication.addon.php index 519c7db47..89ed0fc6d 100644 --- a/addons/member_communication/member_communication.addon.php +++ b/addons/member_communication/member_communication.addon.php @@ -4,7 +4,7 @@ if(!defined('__XE__')) exit(); /** * @file member_communication.addon.php * @author NHN (developers@xpressengine.com) - * @brief Promote user communication + * @brief Promote user communication * * - Pop-up the message if new message comes in * - When calling MemberModel::getMemberMenu, feature to send a message is added @@ -46,7 +46,7 @@ if($called_position == 'before_module_init' && $this->module != 'member') { $mid = Context::get('cur_mid'); // Creates communication model object $oCommunicationModel = &getModel('communication'); - // Add a feature to display own message box. + // Add a feature to display own message box. if($logged_info->member_srl == $member_srl) { // Add your own viewing Note Template $oMemberController->addMemberPopupMenu(getUrl('','mid',$mid,'act','dispCommunicationMessages'), 'cmd_view_message_box', '', 'self'); @@ -55,7 +55,7 @@ if($called_position == 'before_module_init' && $this->module != 'member') { // If not, Add menus to send message and to add friends } else { // Get member information - $oMemberModel = &getModel('member'); + $oMemberModel = &getModel('member'); $target_member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl); if(!$target_member_info->member_srl) return; // Get logged-in user information diff --git a/addons/member_communication/tpl/member_communication.js b/addons/member_communication/tpl/member_communication.js index 5264ee9a0..ed42062e1 100644 --- a/addons/member_communication/tpl/member_communication.js +++ b/addons/member_communication/tpl/member_communication.js @@ -6,13 +6,19 @@ window.xeNotifyMessage = function(text, count){ $bar = $('
') .hide() .prependTo(document.body); + .css({ + 'position' : 'absolute', + 'z-index' : '100', + }) + .appendTo(document.body); } text = text.replace('%d', count); h = $bar.html('

'+text+'

').height(); - $bar.show().animate({top:0}); + $bar.css('top', -h-4).show().animate({top:0}); + // hide after 10 seconds setTimeout(function(){ $bar.slideUp(); - }, 10000); + }, 5000); }; })(jQuery);