묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
작성글추적과 회원정보를 일반회원은 못보게 하는법
2014.05.29 23:57
작성자 아이디를 누르면 뜨는 팝업 부분을
관리자만 볼수있고
일반회원은 볼 수 없게 만들고 싶습니다
어찌해야할까요?
댓글 6
-
qwms
2014.05.30 00:34
-
슈니슈니
2014.06.01 21:10
어디에 넣어줘야하는지...
-
XE힘들당휴
2014.05.30 01:11
/modules/member/member.model.php
/** * @brief Display menus of the member */ function getMemberMenu() { //*추가부분 $logged_info = Context::get('logged_info'); if($logged_info->is_admin == 'Y'){ // Get member_srl of he target member and logged info of the current user $member_srl = Context::get('target_srl'); $mid = Context::get('cur_mid'); $logged_info = Context::get('logged_info'); $act = Context::get('cur_act'); // When click user's own nickname if($member_srl == $logged_info->member_srl) $member_info = $logged_info; // When click other's nickname else $member_info = $this->getMemberInfoByMemberSrl($member_srl); $member_srl = $member_info->member_srl; if(!$member_srl) return; // List variables $user_id = $member_info->user_id; $user_name = $member_info->user_name; ModuleHandler::triggerCall('member.getMemberMenu', 'before', $null); $oMemberController = getController('member'); // Display member information (Don't display to non-logged user) if($logged_info->member_srl) { $url = getUrl('','mid',$mid,'act','dispMemberInfo','member_srl',$member_srl); $oMemberController->addMemberPopupMenu($url,'cmd_view_member_info',$icon_path,'self'); } // When click other's nickname if($member_srl != $logged_info->member_srl && $logged_info->member_srl) { // Send an email if($member_info->email_address) { $url = 'mailto:'.htmlspecialchars($member_info->email_address, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); $oMemberController->addMemberPopupMenu($url,'cmd_send_email',$icon_path); } } // View homepage info if($member_info->homepage) $oMemberController->addMemberPopupMenu(htmlspecialchars($member_info->homepage, ENT_COMPAT | ENT_HTML401, 'UTF-8', false), 'homepage', '', 'blank'); // View blog info if($member_info->blog) $oMemberController->addMemberPopupMenu(htmlspecialchars($member_info->blog, ENT_COMPAT | ENT_HTML401, 'UTF-8', false), 'blog', '', 'blank'); // Call a trigger (after) ModuleHandler::triggerCall('member.getMemberMenu', 'after', $null); // Display a menu for editting member info to a top administrator if($logged_info->is_admin == 'Y') { $url = getUrl('','module','admin','act','dispMemberAdminInsert','member_srl',$member_srl); $oMemberController->addMemberPopupMenu($url,'cmd_manage_member_info',$icon_path,'MemberModifyInfo'); $url = getUrl('','module','admin','act','dispDocumentAdminList','search_target','member_srl','search_keyword',$member_srl); $oMemberController->addMemberPopupMenu($url,'cmd_trace_document',$icon_path,'TraceMemberDocument'); $url = getUrl('','module','admin','act','dispCommentAdminList','search_target','member_srl','search_keyword',$member_srl); $oMemberController->addMemberPopupMenu($url,'cmd_trace_comment',$icon_path,'TraceMemberComment'); } // Change a language of pop-up menu $menus = Context::get('member_popup_menu_list'); $menus_count = count($menus); for($i=0;$i<$menus_count;$i++) { $menus[$i]->str = Context::getLang($menus[$i]->str); } // Get a list of finalized pop-up menu $this->add('menus', $menus); //* 추가부분 } }
-
슈니슈니
2014.05.30 02:46
긴 답변 감사드리지만 제대로 실행이 안되는것 같아요
-
곰탕lol왕자
2014.06.11 17:56
적용안되는거 같아요 저도 지금 안보이게 하는 방법 찾고있는데 ㅠㅠ
안되네요
-
XE힘들당휴
2014.06.11 18:07
수정하였습니다 한번 확인해 보시겠습니까
해당부분을 찾아서
cond="$grant->manager ||
이런식으로 처리해주면 될텐데... 아마 아랫분이 더 친절하게 알려주실거에요..