Export to GitHub

xe-core - issue #3576

mobile level icon


Posted on Aug 29, 2013 by Happy Elephant

What steps will reproduce the problem? 1. Mobile board skin can't load the level icon 2. 3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below. 모바일에서는 레벨/이미지 아이콘이 표시되지 않아 모바일 사용시 회원 식별(?)의 어려움이 존재해서 모바일에서도 출력시키려고 시도했습니다.

모바일쪽 출력되는 소스를 보니 PC와 달리 member_srl값이 안들어있어서 아이콘을 구해오기 어려워서 일단 스킨은 손을 봐야 할거 같았고 애드온도 손봐야하나 싶었는데 스킨만 손보는 것으로 해결되었습니다.

스킨마다 조금씩 파일명이나 소스가 다르기 때문에 조금 차이가 있겠지만 일단 기본 스킨을 기준으로 하자면

_list.html 파일의 11번째 줄 쯤에

<span class="auth"><strong>{$document->getNickName()}</strong> 를

<span class="member_{$document->get('member_srl')}" style="display:block;font-size:12px"><strong>{$document->getNickName()}</strong>로 수정하고

comment.html의 21번째 줄 <em>{$comment->getNickName()}</em> 를

<span class="member_{$comment->get('member_srl')}" style="font-size:12px"><strong>{$comment->getNickName()}</strong>로 수정,

read.html의 12번째 줄 쯤에 있는 <span class="ex">{$oDocument->getNickName()} 를

<span class="ex"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span>로 수정

적용하시면 아이콘이 출력됩니다.

이렇게 수정하고 나면 닉네임을 눌렀을때 PC처럼 팝업 메뉴가 뜨는데 css가 없어서 이상하게 나옵니다. 이 문제는 /common//css의 xe.css, xe.min.css의 /* Popup Menu Area */ 부분에 해당하는 것들을 mobile.css, mobile.min.css에 넣어주시면 PC화면처럼 팝업 메뉴가 출력됩니다.

PC의 소스를 가져다가 쓰다보니 auth class를 적용이 안되서 style="" 형태로 css 파일의 내용을 직접 입력했는데 이 부분을 좀 더 깔끔하게 처리할 방법이 있나 모르겠네요.

Status: New

Labels:
Type-Defect Priority-Medium