안녕하세요 모바일 게시판리스트에 더보기 기능을 추가하였습니다 more 버튼을 누르거나 스크롤을 맨아래까지 내리면 다음리스트가 아래로 출력됩니다 설치방법 1. 압축파일을 다운로드받아...
ckeditor에 syntaxhighlight 플러그인 적용
링크
http://mwa.kr/yc5/bbs/board.php?bo_table=mwa_free&wr_id=4 (566) http://ckeditor.com/addon/syntaxhighlight (1353)
에디터 화면에 'CODE' 라는 버튼이 보입니다. 소스형식을 선택하고 소스를 입력하세요.
첨부된 syntaxhighlight.zip 파일을 풀어 /editor/ckeditor4/plugins 폴더 밑에 업로드합니다.
첨부된 view.skin.php 파일을 /skin/board/basic 폴더에 업로드 합니다. 모바일용 view.skin.php 파일은 밑에 내용 참조
view.skin.php 파일에 추가된 부분은 아래와 같습니다.
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shCore.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shLegacy.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushAppleScript.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushAS3.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushBash.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushColdFusion.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushCpp.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushCSharp.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushCss.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushDelphi.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushDiff.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushErlang.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushGroovy.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushJava.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushJavaFX.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushJScript.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushPerl.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushPhp.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushPlain.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushPowerShell.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushPython.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushRuby.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushSass.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushScala.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushSql.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushVb.js"></script>
<script src="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/scripts/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/styles/shCore.css"/>
<link type="text/css" rel="stylesheet" href="<?php echo G5_PLUGIN_URL; ?>/editor/ckeditor4/plugins/syntaxhighlight/styles/shThemeDefault.css"/>
<script type="text/javascript">
SyntaxHighlighter.all();
</script>
config.php 파일은 /editor/ckeditor4 폴더에 업로드 합니다.
수정된 부분은 아래와 같습니다.
CKEDITOR.config.syntaxhighlight_hideGutter = !1;
CKEDITOR.config.syntaxhighlight_hideControls = !1;
CKEDITOR.config.syntaxhighlight_collapse = !1;
CKEDITOR.config.syntaxhighlight_codeTitle = "";
CKEDITOR.config.syntaxhighlight_showColumns = !1;
CKEDITOR.config.syntaxhighlight_noWrap = !1;
CKEDITOR.config.syntaxhighlight_firstLine = 0;
CKEDITOR.config.syntaxhighlight_highlight = null;
CKEDITOR.config.syntaxhighlight_lang = null;
CKEDITOR.config.syntaxhighlight_code = "";
CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'syntaxhighlight';
config.language = "ko";
config.toolbar = [
['Format','Font','FontSize'],
['Image','Flash','Link','-','Table','-','Smiley'],
['Print','Maximize'],
['Source'],
['Syntaxhighlight'],
'/',
['Bold','Italic','Underline','Strike','-','TextColor','BGColor','-','Find','Replace','-','Outdent','Indent'],
['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock']
];
끝~!
첨부파일
그누보드5 스킨
2,751건좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.
안녕하세요 최신글 비밀글 같은게 링크 이동이 되어서 팝업으로 나타나는 회사 요구에 만들어 봤어요.. 게시판 에서는 현 스킨에서 조금만 응용하면 쉽게 되실듯합니다. 버그는 충분히 있...
사진을 클릭하면 사진이 확대되면서 사진이 보이게 됩니다. fancybox 사이트 http://fancybox.net/ 사진 크기 조절 방법 list.skin.php 파일 안에 5줄...
그누보드5 레이아웃 스킨 입니다. 기본 그누보드5 디자인을 css파일과 이미지파일 몇장만 변경해 주시면 분위기를 살짝바꿔 주실 수 있습니다. css 파일 위주로 수정되어 그누보드 ...
vitamin님의 웹진게시판 스킨 수정해서 만들었습니다. 사진게시판이 간단하고 보기 좋아서 비슷비슷 하게 수정했습니다. http://sir.co.kr/bbs/board.php?bo...
터치 지원본을 올립니다. 맛폰 터치로하면 너무 쉽네요. 마우스와 달리 통제가 쉽잖네요. 기존 사용자는 c2runtime.js 를 덮어 쒸우세요. 팩맨을 참고하세요. 랭킹 게시판은 ...
스맛폰의 터치도 지원합니다. 재실행 r대신 해당 문구를 손가락으로 터치하시면 재실행됩니다. 기존 사용자는 c2runtime.js을 받아 덮으시면 됩니다. 그누4의 경우도 c2run...
ckeditor에 syntaxhighlight 플러그인을 적용해 보았습니다. 에디터 화면에 'CODE' 라는 버튼이 보입니다. 소스형식을 선택하고 소스를 입력하세요. 첨부된 syn...
그누보드 가로 아웃로그인 관리자님께 달라고 했다가 퇴짜? 맞아 직접 만든.. css 는 sir 에서 가져다가 사용했는데요 높이가 맞지 않을땐 style.css 파일에서 아래부분을 ...
댓글 5개
또한 맨아래
config.php 파일은 /editor/ckeditor4 폴더에 업로드 합니다.
이문구에서 config.php 파일은 config.js파일을 말씀하시는것이 맞는지요?
Syntaxhighlighter Interface에서 1.0버전을 다운받아 교체했더니 정상적으로 잘나오고있습니다.
올려주신 파일이 1.0버전이 아닌듯합니다.