게시판 별로 placeholder 채택완료
obli
5년 전
조회 3,267
</p>
<p>// www/plugin/editor/smarteditor2/editor.lib
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;\" placeholder=\"내용을 입력해주세요.\">$content</textarea>";
placeholder는 넣은 상태입니다.
각각 게시판 별로 다르게 사용하고싶습니다
방법을 알려주세요!
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
채택된 답변
+20 포인트
마르스컴퍼니
Expert
5년 전
1. /extend/user.config.php 에 추가
if ($bo_table == "aa")
$placeholder = "내용1";
else if ($bo_table == "bb")
$placeholder = "내용2";
...
2. /plugin/editor/smarteditor2/editor.lib.php
</p>
<pre>
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;\" placeholder=\"{$placeholder}\">$content</textarea>";</pre>
<p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 2개
o
obli
5년 전
저는 이게 오류가 떳어요 ...ㅠ
o
obli
5년 전
if ($bo_table= "basic") {
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;\" placeholder=\"내용을 작성해주세요.\">$content</textarea>";
}
이게 안됐었는데! 안되는이유는... 뭔지 모르겠지만 밑에 방법으로 바꿨습니다 ~!
/plugin/editor/smarteditor2/editor.lib.php
[code]
if (stripos($_SERVER["REQUEST_URI"],"bbs/write.php?bo_table=basic") !== false) {
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;\" placeholder=\"내용을 작성해주세요.\">$content</textarea>";
} else if (stripos($_SERVER["PHP_URI"],"index.php") !== false) {
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;\" placeholder=\"글 내용을 작성해주세요.\">$content</textarea>";
}
[/code]
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;\" placeholder=\"내용을 작성해주세요.\">$content</textarea>";
}
이게 안됐었는데! 안되는이유는... 뭔지 모르겠지만 밑에 방법으로 바꿨습니다 ~!
/plugin/editor/smarteditor2/editor.lib.php
[code]
if (stripos($_SERVER["REQUEST_URI"],"bbs/write.php?bo_table=basic") !== false) {
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;\" placeholder=\"내용을 작성해주세요.\">$content</textarea>";
} else if (stripos($_SERVER["PHP_URI"],"index.php") !== false) {
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;\" placeholder=\"글 내용을 작성해주세요.\">$content</textarea>";
}
[/code]
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인