경고: 이 문서의 오래된 판을 편집하고 있습니다. 이것을 게시하면, 이 판 이후로 바뀐 모든 편집이 사라집니다. 귀하는 로그인되어 있지 않습니다. 이대로 편집하면 귀하의 IP 주소가 편집 기록에 남게 됩니다.스팸 방지 검사입니다. 이것을 입력하지 마세요!==이 문서는== 다양한 오류/버그/개선사항들 중에서 리버티 스킨에서 일어나는 문제 중 해결한 경우를 해결책과 함께 보실 수 있습니다. 각 문단에는 문제점과 해결방안에 대해 적혀져 있으므로, 해당하는 파일을 수정하시길 바랍니다. 이 문서에서 사용하는 변경사항은 가온 위키/가온 위키 베타 모두 작용되어 있습니다. 버전에 따라 줄수가 다르거나 없을 수도 있다는 점 참고바랍니다. ==최근바뀜에서 문서명에 / 가 포함되어 있으면, 오류 뜨는 경우== # 같은 스킨을 쓰는 [[리브레 위키]]에서는 잘 되던데... 서버 설정 오류인가?<br/> # [https://quiple.mcsv.io/w/퀴플위키 퀴플위키]에서 해결책을 찾았다. 감사합니다. 퀴플위키!<ref>최신 버전 기준이다.</ref> ===수정 전=== * 리버티 스킨/js 폴더에 있는 live-recent.js를 수정한다. <syntaxhighlight lang="JavaScript" highlight="5" start='55' line> var recentChanges, html, time, line, text; recentChanges = data.query.recentchanges; html = recentChanges.map( function ( item ) { time = new Date( item.timestamp ); line = '<li><a class="recent-item" href = "' + ( mw.config.get( 'wgArticlePath' ) ).replace( '$1', encodeURIComponent( item.title ) ) + '" title="' + item.title + '">[' + timeFormat( time ) + '] '; text = ''; if ( item.type === 'new' ) { text += '[New]'; } text += item.title; if ( text.length > 13 ) { text = text.substr( 0, 13 ); text += '...'; } </syntaxhighlight><br/> ===수정 후=== <syntaxhighlight lang="JavaScript" highlight="5" start='55' line> var recentChanges, html, time, line, text; recentChanges = data.query.recentchanges; html = recentChanges.map( function ( item ) { time = new Date( item.timestamp ); line = '<li><a class="recent-item" href = "' + ( mw.config.get( 'wgArticlePath' ) ).replace( '$1', encodeURI( item.title ) ) + '" title="' + item.title + '">[' + timeFormat( time ) + '] '; text = ''; if ( item.type === 'new' ) { text += '[New]'; } text += item.title; if ( text.length > 13 ) { 8 = text.substr( 0, 13 ); text += '...'; } </syntaxhighlight><br/> # 59번째 줄의 encodeURIComponent( item.title ) )에서 encodeURIComponent를 encodeURI로 변경 ==로그인시 '이러한 명령이 없습니다' 라는 오류 뜸== # 로그인시, 특히 [[가온 위키:대문]] 문서가 아닌 다른 문서를 보다가 상단의 로그인 아이콘을 눌러 로그인 시도시 심심치 않게 '이러한 명령이 없습니다'라는 오류가 발생한다. # 오류 내용을 자세히 보면, 'URL에 지정한 명령이 올바르지 않습니다. URL을 잘못 입력했거나, 올바르지 않은 링크를 따라갔을 수 있습니다. 가온 위키에 사용하는 소프트웨어의 버그일 수도 있습니다.' 라고 나타나 있다. # 오류 해결은 [https://issue.librewiki.net/T515 리브레 위키 이슈 트래커]에서 찾았다. ===수정 전=== * 리버티 스킨에 있는 '''LibertyTemplate.php''' 파일을 수정한다. <syntaxhighlight lang="PHP" highlight="4-5" start='343' line> <div class="modal-body"> <div id="modal-login-alert" class="alert alert-hidden alert-danger" role="alert"> </div> <form id="modal-loginform" name="userlogin" class="modal-loginform" method="post"> <input class="loginText form-control" id="wpName1" tabindex="1" placeholder="<?php echo $skin->msg( 'userlogin-yourname-ph' )->plain() ?>" value="" name="lgname"> </syntaxhighlight><br/> ===수정 후=== <syntaxhighlight lang="PHP" highlight="4-5" start='343' line> <div class="modal-body"> <div id="modal-login-alert" class="alert alert-hidden alert-danger" role="alert"> </div> <form id="modal-loginform" name="userlogin" class="modal-loginform" method="post" onsubmit="return LoginManage();"> <input class="loginText form-control" id="wpName1" tabindex="1" placeholder="<?php echo $skin->msg( 'userlogin-yourname-ph' )->plain() ?>" value="" name="lgname"> </syntaxhighlight><br/> ==어두운 모드 사용시 표가 있는 부분의 배경색이 검정색이 되지 않는 버그== [[사용자:hunhee|hunhee님]]이 알려주셨어요! 리버티 스킨 루트 폴더에 있는 '''"SkinLiberty.php"''' 파일을 열어서 수정합니다. ===수정 전=== <syntaxhighlight lang="PHP" highlight="1-2" start='138' line> $LibertyDarkCss = "body, .Liberty, .dropdown-menu, .dropdown-item, .Liberty .nav-wrapper .navbar .form-inline .btn, .Liberty .content-wrapper .liberty-sidebar .liberty-right-fixed .live-recent .live-recent-header .nav .nav-item .nav-link.active, .Liberty .content-wrapper .liberty-content .liberty-content-main table.wikitable tr > th, .Liberty .content-wrapper .liberty-content .liberty-content-main table.wikitable tr > td, table.mw_metadata th, .Liberty .content-wrapper .liberty-content .liberty-content-main table.infobox th, #preferences fieldset:not(.prefsection), #preferences div.mw-prefs-buttons, .navbox, .navbox-subgroup, .navbox > tbody > tr:nth-child(even) > .navbox-list{ background-color:#000; color: #DDD; } </syntaxhighlight> ===수정 후=== <syntaxhighlight lang="PHP" highlight="1-2" start='138' line> $LibertyDarkCss = "body, .Liberty, .dropdown-menu, .dropdown-item, .Liberty .nav-wrapper .navbar .form-inline .btn, .Liberty .content-wrapper .liberty-sidebar .liberty-right-fixed .live-recent .live-recent-header .nav .nav-item .nav-link.active, .Liberty .content-wrapper .liberty-content .liberty-content-main table.wikitable tr > th, .Liberty .content-wrapper .liberty-content .liberty-content-main table.wikitable tr > td, table.mw_metadata th, .Liberty .content-wrapper .liberty-content .liberty-content-main table.infobox th, #preferences fieldset:not(.prefsection), #preferences div.mw-prefs-buttons, .navbox, .navbox-subgroup, .navbox > tbody > tr:nth-child(even) > .navbox-list, table.wikitable{ background-color:#000!important; color: #DDD; } </syntaxhighlight> * 138번째 줄의 '''"<nowiki>{</nowiki>"''' 바로 앞에 '''"<nowiki>, table.wikitable</nowiki>"'''을 붙히고, 139번째 줄에서 '''"#000"''' 다음에 '''"<nowiki>!important</nowiki>"'''을 붙힌다. ==분기== {{분기|가온 위키:기능 구현 불가-누가 해결책을 알려주세요!|6010||가온 위키}} ==각주== 편집 요약 가온 위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 가온 위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요. 또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요! 취소 편집 도움말 (새 창에서 열림) 이 문서에서 사용한 틀: 틀:분기 (편집) 틀:알림바 (편집) 틀:접기 (편집) 틀:퍼온문서 (편집)