모듈의 스킨 설정이 조금 달라졌어요
CMS/프레임워크 | Rhymix 2.0 |
---|---|
개발 언어 | PHP 7.4 |
2.0.6 인데 모든 모듈인지 모르겠으나 제가 사용하는 모듈 기준
( 거의 저는 한 개발자분 스킨만 사용해서 저만 해당되는 것일 수도 있어요)
상세설정에서 모바일 스킨을 넣어주지 않으면 사용자 스킨이 나오지 않거나, 모바일 스킨이 적용되지 않네요..
아이템샵, 출석부 두개 발견했는데.. 예전엔 메뉴에서 디자인 설정 사이트 기본으로 하면 됐는데
상세 설정 들어가야하는게 조금 불편하네요ㅠ
모바일 스킨 폴더에도 같은 스킨 업로드 하고 설정해주면 해결되는 것이라.. 질문글하고 거리가 멀 수도 있는데
토픽도 아닌거 같아서 여기 남겨봤어요. 혹시 다른 방법 있으시면 알려주세용..
내강아지
Lv. 5
댓글 8
굳이 모바일용을 다르게 수정해서 내용을 추가하거나 할 것이라면 모바일쪽에 올릴 필요는 없죠. 모바일뷰를 사용하고 분리해서 관리한다면 모바일쪽에 업로드는 필히 해야 하구요.
모듈의 attendance.mobile.php에 아래 함수 있죠?
{
$template_path = sprintf("%sm.skins/%s/", $this->module_path, $this->module_info->mskin);
if (!is_dir($template_path) || !$this->module_info->mskin)
{
$this->module_info->mskin = 'default';
$template_path = sprintf("%sm.skins/%s/", $this->module_path, $this->module_info->mskin);
}
$this->setTemplatePath($template_path);
$this->setTemplateFile('index');
}
저는 출석부 모듈을 안 써봐서 잘 모르지만, 혹시 시간되실 때 이렇게 바꿔보시겠어요?
되는지 안 되는지 알려주시면 감사하겠습니다.
{
$skin = $this->module_info->skin;
$mskin = $this->module_info->mskin;
if ( $mskin === '/USE_RESPONSIVE/' )
{
$template_path = sprintf('%sskins/%s/', $this->module_path, $skin);
if ( !is_dir($template_path) || !$skin )
{
$template_path = sprintf('%sskins/%s/',$this->module_path, 'default');
}
}
else
{
$template_path = sprintf('%sm.skins/%s/', $this->module_path, $mskin);
if ( !is_dir($template_path) || !$mskin )
{
$template_path = sprintf('%sm.skins/%s/', $this->module_path, 'default');
}
}
$this->setTemplatePath($template_path);
$this->setTemplateFile('index');
}
아이템샵도 해보시고 말씀 부탁드려요~
아이템샵
itemshop.mobile.php 에
// 스킨 경로 설정
$this->setTemplatePath(sprintf('%sm.skins/%s/', $this->module_path, $this->Amodule_info->mskin));
이 부분에 복붙했더니 됐습니다!! 정말 감사드려요 ㅜㅜ