object(HotopayModel)#818 (23) {
["error"]=>
int(0)
["message"]=>
string(7) "success"
["variables"]=>
array(0) {
}
["httpStatusCode"]=>
int(200)
["module"]=>
string(7) "hotopay"
["module_info"]=>
NULL
["origin_module_info"]=>
NULL
["module_config"]=>
NULL
["module_path"]=>
string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/"
["xml_info"]=>
NULL
["module_srl"]=>
NULL
["mid"]=>
NULL
["act"]=>
NULL
["template_path"]=>
NULL
["template_file"]=>
NULL
["layout_path"]=>
NULL
["layout_file"]=>
NULL
["edited_layout_file"]=>
NULL
["stop_proc"]=>
bool(false)
["user"]=>
object(Rhymix\Framework\Helpers\SessionHelper)#817 (20) {
["member_srl"]=>
int(0)
["user_id"]=>
NULL
["user_name"]=>
NULL
["nick_name"]=>
NULL
["email_address"]=>
NULL
["phone_number"]=>
NULL
["homepage"]=>
NULL
["blog"]=>
NULL
["birthday"]=>
NULL
["denied"]=>
NULL
["status"]=>
NULL
["is_admin"]=>
string(1) "N"
["is_site_admin"]=>
NULL
["profile_image"]=>
NULL
["image_name"]=>
NULL
["image_mark"]=>
NULL
["signature"]=>
NULL
["description"]=>
NULL
["group_list"]=>
array(0) {
}
["menu_list"]=>
array(0) {
}
}
["request"]=>
object(Rhymix\Framework\Request)#10 (13) {
["method"]=>
string(3) "GET"
["compat_method"]=>
string(3) "GET"
["url"]=>
string(17) "xe/442229/page/19"
["hostname"]=>
string(8) "eond.com"
["domain"]=>
NULL
["protocol"]=>
string(5) "https"
["callback_function"]=>
string(0) ""
["_route_status":protected]=>
int(200)
["_route_options":protected]=>
object(stdClass)#11 (5) {
["cache_control"]=>
bool(true)
["check_csrf"]=>
bool(true)
["is_forwarded"]=>
bool(false)
["is_indexable"]=>
bool(true)
["enable_session"]=>
bool(true)
}
["module"]=>
string(5) "board"
["mid"]=>
string(2) "xe"
["act"]=>
string(16) "dispBoardContent"
["args"]=>
array(10) {
["category"]=>
string(5) "35024"
["height"]=>
string(4) "100%"
["iframe"]=>
string(4) "true"
["listStyle"]=>
string(6) "viewer"
["sort_index"]=>
string(12) "readed_count"
["width"]=>
string(4) "100%"
["document_srl"]=>
string(6) "442229"
["page"]=>
int(1)
["mid"]=>
string(2) "xe"
["act"]=>
string(16) "dispBoardContent"
}
}
["ajaxRequestMethod"]=>
array(2) {
[0]=>
string(6) "XMLRPC"
[1]=>
string(4) "JSON"
}
["gzhandler_enable"]=>
bool(true)
}
1. 게시판 설정 > 리스트 이름 출력 체크
{$document->getUserName()}
2. 기본 출력값인 닉네임을 이용해서 멤버 모듈에서 회원 이름값 구하기
닉네임 출력 변수는 {$document->getNickName()} 입니다.
회원srl 출력변수는 {$document->getmemberSrl()} 입니다.
{@
$oMemberModel = &getModel('member');
$member_info = $oMemberModel->getMemberInfoByMemberSrl($document->getmemberSrl());
}
{$member_info->user_name}
위 가지를 활용해서 이렇게 적어주면 회원정보의 이름값을 출력해줄 수 있습니다.
3. 추가팁
3.1. 이름 끝 두줄 * 표시하기
{mb_substr($document->getNickName(), 0, -2).'**';}-->
이렇게 하면 닉네임 중간에 **로 바꿔서 보여주게 됩니다.
3.2. 이름 중간에 * 표시 이름 첫글자와 끝글자만 표시하기
{@
$name_x ='*';
$name_a = mb_substr($document->getNickName(),0,1,"UTF-8");
$name_b = mb_substr($document->getNickName(),2,10,"UTF-8");
$name = $name_a.$name_x.$name_b;
}
({$name})
이렇게 하면 이름의 중간 글자는 표시하지 않게 해줍니다.
댓글 0
댓글작성칸으로