"내가 수정한 것들"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
5번째 줄: 5번째 줄:
 
* 최대 업로드 크기 2M에서 10M으로 수정. /etc/php/7.0/apache2/php.ini 수정
 
* 최대 업로드 크기 2M에서 10M으로 수정. /etc/php/7.0/apache2/php.ini 수정
 
*:<c>upload_max_filesize = 10M</c>
 
*:<c>upload_max_filesize = 10M</c>
 +
*:<c>post_max_size = 10M</c>
 
* google analytics [https://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration] 2017.07.26
 
* google analytics [https://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration] 2017.07.26
 
* https://www.mediawiki.org/wiki/Extension:AvbDisqus 설치함.
 
* https://www.mediawiki.org/wiki/Extension:AvbDisqus 설치함.

2017년 8월 9일 (수) 17:30 판

수정한 것들

  1. extensions 폴더 안에 Courier.php파일 만들었음
    <?php
    
    $wgHooks['ParserFirstCallInit'][] = 'CourierExtension::onParserSetup';
    
    class CourierExtension {
        // Register any render callbacks with the parser
        public static function onParserSetup( Parser $parser ) {
            // When the parser sees the <sample> tag, it executes renderTagSample (see below)
            $parser->setHook( 'c', 'CourierExtension::renderTagSample' );
        }
    
        // Render <sample>
        public static function renderTagSample( $input, array $args, Parser $parser, PPFrame $frame ) {
            // Nothing exciting here, just escape the user-provided input and throw it back out again (as example) 
            return "<span style='font-family:courier'>".htmlspecialchars( $input )."</span>";
        }                                
    }
                                         
    ?>
  2. LocalSettings.php에 아래 추가
     require_once( "$IP/extensions/Courier/Courier.php" );
  • Tree And Menu 설치
  • DeleteBatch 설치
  • includes/EditPage.php의 978line
    $this->minoredit = true;
    이거 Admin>환경설정>편집에 '모든 편집에 기본적으로 사소한 편집을 표시'로 있음.
  • tweeki skin[2] 설치
    • 기본폰트 수정. bootstrap/css/bootstrap.min.css의 5번째 줄 15375 char에 'Georgia,serif'추가. (body{}에 추가}
    • (위 수정한 것 바로 옆에) 글씨 크기 14pt에서 16pt로, line-height 1.42857143에서 17로 변경. line-height가 너무 아스트랄한데?
  • wfLoadExtension( 'Poem' );넣음. 미디어위키 기본이라 따로 뭔가 다운받을 필요는 없음.
  • SyntaxHighlighter
    • 맨 뒤에 -er주의 그냥 SyntaxHighlight도 있음.
    • 설치를 하긴 했으나, 별로 보기좋다는 생각이 안들어서 잘 안씀.

아래는 구 버전 (위키 업데이트 하면서 모두 삭제됨. 무시할것)

  • file upload enable
  • syntax highlight extension
  • 모바일 브라우저에서 너무 작게 보이는 문제
    <meta name="viewport" content="width=device-width" />
    
    이걸로 해결
    • (QnA) 이 사이트처럼 초기에는 작다가 확대하면 알아서 텍스트 폭이 변하는건 어떻게 하는걸까. 소스보기에서
      <meta name="viewport" content="width=device-width; initial-scale=1.0">
      
      이렇게 있었지만 이걸 내 위키에 넣어도 원하는대로 동작하지는 않았다.참고자료
  • fck editor에서 붙여넣기. 텍스트 뿐 아니라 서식도 가능하게
    • 여기참고.
    • w/extensions/FCKeditor/fckeditor_config.js에서
// Setup the editor toolbar.
FCKConfig.ToolbarSets['Wiki'] = [
        ['Source'],
        ['Cut','Copy','Paste','PasteText','PasteWord','-','Print'],
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
        ['SpecialChar','Table','Image','Rule'],

이렇게 함. 원래

'PasteText','PasteWord'

여기에 주석이 있었음.

    • 근데 이거 잘 안되고 있으니 다시 한번 잘 들여다볼것.