26 if($this->
module !=
'member' && $called_position ==
'before_module_init')
32 $oMemberController->addMemberMenu(
'dispCommunicationFriend',
'cmd_view_friend');
33 $oMemberController->addMemberMenu(
'dispCommunicationMessages',
'cmd_view_message_box');
36 if($addon_info->use_alarm !=
'N' && file_exists($flag_file))
42 Context::loadFile(array(
'./addons/member_communication/tpl/member_communication.js'),
true);
44 $text = preg_replace(
'@\r?\n@',
'\\n', addslashes(
Context::getLang(
'alert_new_message_arrived')));
45 Context::addHtmlFooter(
"<script type=\"text/javascript\">jQuery(function(){ xeNotifyMessage('{$text}','{$new_message_count}'); });</script>");
48 elseif($this->act ==
'getMemberMenu' && $called_position ==
'before_module_proc')
51 $oCommunicationModel =
getModel(
'communication');
59 $oMemberController->addMemberPopupMenu(
getUrl(
'',
'mid', $mid,
'act',
'dispCommunicationMessages'),
'cmd_view_message_box',
'',
'self');
61 $oMemberController->addMemberPopupMenu(
getUrl(
'',
'mid', $mid,
'act',
'dispCommunicationFriend'),
'cmd_view_friend',
'',
'self');
68 $target_member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl);
69 if(!$target_member_info->member_srl)
76 if(
$logged_info->is_admin ==
'Y' || $target_member_info->allow_message ==
'Y' || ($target_member_info->allow_message ==
'F' && $oCommunicationModel->isFriend($member_srl)))
77 $oMemberController->addMemberPopupMenu(
getUrl(
'',
'mid',
Context::get(
'cur_mid'),
'act',
'dispCommunicationSendMessage',
'receiver_srl', $member_srl),
'cmd_send_message',
'',
'popup');
79 if(!$oCommunicationModel->isAddedFriend($member_srl))
80 $oMemberController->addMemberPopupMenu(
getUrl(
'',
'mid',
Context::get(
'cur_mid'),
'act',
'dispCommunicationAddFriend',
'target_srl', $member_srl),
'cmd_add_friend',
'',
'popup');
getController($module_name)
getNumberingPath($no, $size=3)
high class of the module module