cheditor 스킨 사용시 답글 작성시 아래로 본문 보이기(완벽하지 못함)...^^

파폭과 익스에서 테스트 되었으나 cheditor 의 답글시 원문 내용의 줄바꿈이 약간 뒤틀림(?)

원본을 약간 손보아야 합니다.....

bbs/write.php 의 280~292 줄

else if ($w == "r") {
//if (!$write[wr_html]) {
if (!strstr($write[wr_option], "html")) {
$content = "\n\n\n>"
//. "\n> $write[wr_datetime], \"$write[wr_name]\"님이 쓰신 글입니다. ↓"
. "\n>"
. "\n> " . preg_replace("/\n/", "\n> ", get_text($write[wr_content], 0))
. "\n>"
. "\n";

}
} else
$content = get_text($write[wr_content], 0);




else if ($w == "r") {
//if (!$write[wr_html]) {

if (strstr($write[wr_option], "html")) {
$content = "\n\t\n\t\n\t\n\t\n\t\n\t\n\t"
. "\n> $write[wr_datetime], \"$write[wr_name]\"님이 쓰신 글입니다. ↓"
. "\n"
. "\n> " . preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $write[wr_content])
. "\n";

}
else {
$content = "\n\n\n>"
//. "\n> $write[wr_datetime], \"$write[wr_name]\"님이 쓰신 글입니다. ↓"
. "\n>"
. "\n> " . preg_replace("/\n/", "\n> ", get_text($write[wr_content], 0))
. "\n>"
. "\n";
}
} else
$content = get_text($write[wr_content], 0);

로 바꾸고 cheditor 스킨의 write.skin.php 상단의

if ($w != 'u') $content = '';


//if ($w != 'u') $content = '';

주석처리 했습니다.....
|

댓글 2개

좋은 자료 감사합니다. ~~
감사합니다. :)
댓글을 작성하시려면 로그인이 필요합니다.

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
19년 전 조회 5,622
19년 전 조회 7,416
19년 전 조회 5,642
19년 전 조회 3,606
19년 전 조회 6,021
19년 전 조회 3,536
19년 전 조회 3,828
19년 전 조회 9,169
19년 전 조회 3,442
19년 전 조회 3,284
19년 전 조회 3,464
19년 전 조회 3,325
19년 전 조회 3,266
19년 전 조회 5,471
19년 전 조회 1.3만
19년 전 조회 3,849
19년 전 조회 8,872
19년 전 조회 3,773
19년 전 조회 9,147
19년 전 조회 5,910