g

일반 text 게시판을 cheditor게시판으로 변경 질문....

 
토마토님의 자동차게시판을 이용하여 HTML이나 cheditor가 가능한 게시판을 만들려고하는데 잘 안됩니다ㅡㅡ;;
 
write.skin.php
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/cheditor.lib.php");
if ($w == 'r') $content = '';
?>
<script src="<?=$g4[editor_path]?>/cheditor.js"></script>
<?=cheditor1('wr_content', $write[wr_content]);?>
.
.
.
.
<td style='padding:5 0 5 0;'><?=cheditor2('fwrite', 'wr_content', '100%', '350');?></td>
.
.
.
.
<?=cheditor3('wr_content');?>   
        f.action = "./write_update.php";
        f.submit();
    }
 
============================================================================
 
view.skin.php
 
        <!-- 내용 출력 -->
  <span class="ct lh"><?=$view[content];?></span>
  <?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
       
        <? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
 
 
============================================================================
 
↑처럼하면 write에서는 잘 되는데.....
 
view에서는 텍스트...
 
<STRONG><FONT color=#ffcc00 size=4>aaaaaaa</FONT></STRONG>으로 일반 text로 나와요...
 
어디가 잘못되었는지....
 
답변 부탁드립니다..
|

댓글 2개

write.skin.php 에서

<td><input type='hidden' name='html' value='html1'>
<?/* if ($is_html) { ?><input onclick="html_auto_br(this);" type=checkbox value="<?=$html_value?>" name="html" <?=$html_checked?> CHECKED>html&nbsp;<? } */?></td>

이 부분이 빠진듯하네요.
아~그렇군요....감사합니다^^

알려주신데로해서 성공했어요ㅋ

hml로 전환해주는 기능이 숨겨져있는지몰랐네요ㅡㅡㅋ

답변 감사합니다^^
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
19년 전 조회 1,015
19년 전 조회 973
19년 전 조회 1,173
19년 전 조회 1,550
19년 전 조회 1,509
19년 전 조회 1,502
19년 전 조회 1,028
19년 전 조회 1,509
19년 전 조회 1,548
19년 전 조회 1,598
19년 전 조회 1,308
19년 전 조회 1,447
19년 전 조회 1,372
19년 전 조회 1,078
19년 전 조회 1,554
19년 전 조회 1,572
19년 전 조회 1,527
19년 전 조회 1,380
19년 전 조회 1,512
19년 전 조회 1,493
🐛 버그신고