xe에선 정상적으로 작동하던 코드생성이
라이믹스에선 위젯 코드생성을 따로할시 이상하게됩니다.
예시로 채팅방 위젯을 단다고할시
유챗을 예시로 들겠습니다.
라이믹스에서 위젯코드 생성을 할시
<div class="xe-widget-wrapper " style=""><div style="*zoom:1;padding:0px 0px 0px 0px !important;"><script type="text/javascript" src="//uchat.co.kr/uchat.php" charset="UTF-8"></script>
<script type="text/javascript">
u_chat({
room:"test"
, width:100 , height:400 , md5:"43c8cecd401bc36702deaa3c8980e57f"
, nick:"닉네임"
, mb_id:"아이디"
, level:"2"
, icon:""
, nickcon:""
, no_inout:true , chat_record:true , skin:2 });
</script></div></div>
이런식으로 출력되고 xe에서 위젯코드 생성할시
<img class="zbxe_widget_output" widget="uchat" skin="default" room="test" token="test" u_width="100%" u_height="400" user_interlock="true" uskin="2" chat_record="true" no_inout="true" nickcon="false" nicktype="nick" />
이런식으로 됩니다.
무엇을 건드려야 수정이되는지모르겠지만.. 알려주시면 감사하겠습니다.
댓글 7
채팅방은 저런식으로 생성되고 다른 위젯코드는 생성안되는것도 있고..
위젯코드 생성에 에러가 생겼는데 무슨 문제일까요..ㅠ
itemshop.controller.php 파일에서
$output = getController('widget')->transWidgetCode($output, false);
부분을 찾아
if(Context::getResponseMethod() == 'HTML')
{
$output = getController('widget')->transWidgetCode($output, false);
}
으로 변경하시면 됩니다.
감사합니다. ㅠㅠ
다른 기능에는 문제가 없을까요..?