할까 말까 망설이다가 21-07-03 ssl 인증서를 사서 https://
로 접속하도록 설정했다.
http 로 접속하면 https로 변경 되도록 시작 스크립트에 코드를 추가
index.php
/ doku.php
파일 첫 부분에 추가.// HTTPS 로 시작하지 않으면 보낸다. if(!isset($_SERVER["HTTPS"])) { header('Location: https://'.$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI']); }
SSL인증서는 https://my.gogetssl.com/에서 구입했다. kieuns.com
에 대한 와일드카드 도메인과 단일 도메인 구입.
현재는 호스팅 중이라 와일드카드 도메인은 설정이 안되었다. (CBR 망할)
div . class . "notify"
<site>/wiki/lib/styles/screen.css
파일을 열어보면 수정할 수 있다.
탭키를 누르면 다음 컨트롤로 넘어가버린다. 크롬이라면 확장기능을 추가해서 탭 키를 제대로 사용할 수 있다.
설치할 확장 프로그램 : Textarea Code Formatter
https://chrome.google.com/webstore/detail/dgkbnngeehclnibbdblaimapibmmcdal
원 제작자의 최근 소스를 받아서 업데이트함, 이후에는 정상 동작함
svn 주소
http://svn.bitflux.org/repos/public/misc/dokuwiki/plugins/npd
한글 언어 환경 (비유니코드언어환경인듯)에서 ie나 firefox 로 실행하면서 새 페이지 이름에 한글을 넣으면
글자가 깨져서 나오는데 utf 로 인코딩해서 보내도 제대로 되지 않는 것 같아서
받은 페이지 이름을 강제로 utf8로 변경.
이후에는 정상으로 페이지가 뜨더라
// inc/pageutils.php function getID($param='id',$clean=true){ global $conf; $id = isset($_REQUEST[$param]) ? $_REQUEST[$param] : null; // convert encoding from (local language to utf8) $tmpstr = $id; // If url address enter by WebBrowser's AddressBar if($HTTP_REFERER == "") { if( mb_check_encoding($tmpstr, "euc-kr") == true ) { $tmpstr = iconv("euc-kr", "utf-8", $tmpstr); //echo "<script>alert('" . 'converted' . "');</script>"; //(debug message) } } // echo "<script>alert('" . $tmpstr . "');</script>"; //(debug message) $id = $tmpstr;
“Create New page” 버튼 추가
/lib/tpl/default/main.php
/lib/tpl/incognitek/main.php
/lib/tpl/incognitek/menu.php
에
<li><?php tpl_actionlink('index') ?></li>
를 추가, 이 링크 누르면 인덱스 페이지로 넘어감.
스킨(템플릿)에 이 기능을 추가하려면 아래 코드를 넣어야 한다:
if (!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) { $npd->html_new_page_button(); }
실제 스키파일을 수정하는 부분은 /lib/tpl/default/main.php
파일 내부에서
<div id="bar__bottomright"/>
을 (또는 유사한 부분을 찾아서) 아래처럼 고친다.:
<div class="bar-right" id="bar__bottomright"> <?php if (!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) $npd->html_new_page_button(); ?> <?php tpl_button('subscription')?> <?php tpl_button('admin')?> <?php tpl_button('profile')?> </div>
이 버튼은 자바스크립트가 동작하는 브라우져에서만 보인다.
DOKU 위키에 Google Analytics 에 기록을 남기는 플러그인.
다운로드 : http://www.dokuwiki.org/plugin:googleanalytics?s[]=google
플러그인 설치 후에는, 스킨에 추가 작업이 필요하다.
<?php if (file_exists(DOKU_PLUGIN.'googleanalytics/code.php')) include_once(DOKU_PLUGIN.'googleanalytics/code.php'); if (function_exists('ga_google_analytics_code')) ga_google_analytics_code(); ?>
폰트변경
/* .dtree 를 수정한다 */ .dtree { /* 구글 웹 폰트를 사용해서 나눔고딕 폰트로 설정함 */ font-family: 'Nanum Gothic', Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; /* 폰트를 좀 키움 */ /* 나머지는 그대로 */ }
이제 와서 왠 수정이력이냐마는..
19-01-16