mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
블로그의 댓글을 위지윅에디터가 아닌 일반 textarea로 변경
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1969 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
712d3a9dfd
commit
7acd1fc4df
6 changed files with 41 additions and 26 deletions
|
|
@ -108,6 +108,18 @@
|
|||
// comment_srl이 존재하는지 체크
|
||||
$comment = $oCommentModel->getComment($obj->comment_srl, $this->grant->manager);
|
||||
|
||||
// 줄바꾸임나 태그제거등의 작업
|
||||
$obj->content = nl2br(strip_tags($obj->content));
|
||||
|
||||
/**
|
||||
* 존재하는 댓글인지를 확인하여 존재 하지 않는 댓글이라면 신규로 등록하기 위해서 comment_srl의 sequence값을 받는다
|
||||
**/
|
||||
if(!$obj->comment_srl) {
|
||||
$obj->comment_srl = getNextSequence();
|
||||
} else {
|
||||
$comment = $oCommentModel->getComment($obj->comment_srl, $this->grant->manager);
|
||||
}
|
||||
|
||||
// comment_srl이 없을 경우 신규 입력
|
||||
if($comment->comment_srl != $obj->comment_srl) {
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@
|
|||
Context::setBrowserTitle($oDocument->getTitleText());
|
||||
|
||||
// 댓글에디터 설정
|
||||
if($this->grant->write_comment && $oDocument->allowComment() && !$oDocument->isLocked()) $this->setCommentEditor(0, 100);
|
||||
//if($this->grant->write_comment && $oDocument->allowComment() && !$oDocument->isLocked()) $this->setCommentEditor(0, 100);
|
||||
|
||||
// 조회수 증가
|
||||
$oDocument->updateReadedCount();
|
||||
|
|
@ -106,7 +106,7 @@
|
|||
Context::set('oDocument', $oDocument);
|
||||
|
||||
// 댓글
|
||||
$this->setCommentEditor(0, 100);
|
||||
//$this->setCommentEditor(0, 100);
|
||||
|
||||
// 만약 document_srl은 있는데 page가 없다면 글만 호출된 경우 page를 구해서 세팅해주자..
|
||||
if($document_srl && !$page) {
|
||||
|
|
@ -256,7 +256,7 @@
|
|||
Context::set('source_comment',$source_comment);
|
||||
|
||||
// 댓글 에디터 세팅
|
||||
$this->setCommentEditor(0,400);
|
||||
//$this->setCommentEditor(0,400);
|
||||
|
||||
$this->setTemplateFile('comment_form');
|
||||
}
|
||||
|
|
@ -292,7 +292,7 @@
|
|||
Context::set('comment', $comment);
|
||||
|
||||
// 댓글 에디터 세팅
|
||||
$this->setCommentEditor($comment_srl,400);
|
||||
//$this->setCommentEditor($comment_srl,400);
|
||||
|
||||
$this->setTemplateFile('comment_form');
|
||||
}
|
||||
|
|
@ -362,6 +362,7 @@
|
|||
* 따라서 고유값이 없을 경우 고유값을 가져와서 지정해 주어야 함
|
||||
**/
|
||||
function setCommentEditor($comment_srl=0, $height = 100) {
|
||||
return;
|
||||
if(!$comment_srl) {
|
||||
$comment_srl = getNextSequence();
|
||||
Context::set('comment_srl', $comment_srl);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl?$document_srl:$comment->document_srl}" />
|
||||
<input type="hidden" name="comment_srl" value="{$comment_srl}" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($comment->content)}" />
|
||||
<input type="hidden" name="parent_srl" value="{$parent_srl}" />
|
||||
|
||||
<table width="100%" border="1">
|
||||
|
|
@ -59,7 +58,7 @@
|
|||
<!--@end-->
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{$comment_editor}</td>
|
||||
<td colspan="2"><textarea class="inputTypeTextArea" name="content">{strip_tags($comment->content)}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!--%import("filter/insert_comment.xml")-->
|
||||
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
<ul id="reply">
|
||||
<ul class="replyZone">
|
||||
|
||||
<!--@foreach($oDocument->getComments() as $key => $val)-->
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<!-- 만약 댓글의 답을 다는 것이라면 원문 보여줌 -->
|
||||
<!--@if($source_comment)-->
|
||||
<ul id="reply">
|
||||
<ul class="replyZone">
|
||||
<li>
|
||||
<div class="member_{$source_comment->member_srl} author">{htmlspecialchars($source_comment->nick_name)}</div>
|
||||
<div class="date">
|
||||
|
|
@ -32,7 +32,6 @@
|
|||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl?$document_srl:$comment->document_srl}" />
|
||||
<input type="hidden" name="comment_srl" value="{$comment_srl}" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($comment->content)}" />
|
||||
<input type="hidden" name="parent_srl" value="{$parent_srl}" />
|
||||
|
||||
<!--@if(!$is_logged)-->
|
||||
|
|
@ -51,13 +50,15 @@
|
|||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div>{$comment_editor}</div>
|
||||
<div class="commentForm">
|
||||
<textarea class="inputTypeTextArea" name="content">{strip_tags($comment->content)}</textarea>
|
||||
<div class="tRight">
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<div class="tRight gap1">
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -178,19 +178,19 @@ Jeong, Chan Myeong 070601~070630
|
|||
#trackbacks address a { font-size:.9em; color:#3074a5; margin-right:.3em; float:left;}
|
||||
#trackbacks address .date { font:.8em Tahoma; color:#cccccc; float:right;}
|
||||
|
||||
#reply { padding:.6em .6em; color:#666666; border:1px solid #e0e1db; margin-top:.5em;}
|
||||
#reply li { padding:.6em .8em .6em .6em; line-height:1.25em; clear:both; border-bottom:1px dotted #EEEEEE;}
|
||||
#reply p { display:inline; margin-bottom:1em;}
|
||||
#reply .author { float:left; padding:0 .3em 0 0; font-size:.9em; color:#3074a5; margin:0 .3em .5em 0;}
|
||||
#reply .author a { font-size:.9em; color:#3074a5; margin-right:.3em;}
|
||||
#reply .date { float:right; font:.8em Tahoma; color:#cccccc; margin:.3em 0 .5em 0;}
|
||||
ul.replyZone { padding:.6em .6em; color:#666666; border:1px solid #e0e1db; margin-top:.5em;}
|
||||
ul.replyZone li { padding:.6em .8em .6em .6em; line-height:1.25em; clear:both; border-bottom:1px dotted #EEEEEE;}
|
||||
ul.replyZone p { display:inline; margin-bottom:1em;}
|
||||
ul.replyZone .author { float:left; padding:0 .3em 0 0; font-size:.9em; color:#3074a5; margin:0 .3em .5em 0;}
|
||||
ul.replyZone .author a { font-size:.9em; color:#3074a5; margin-right:.3em;}
|
||||
ul.replyZone .date { float:right; font:.8em Tahoma; color:#cccccc; margin:.3em 0 .5em 0;}
|
||||
|
||||
#reply .replyOption { float:right; white-space:nowrap; margin-left:.2em;}
|
||||
#reply .replyOption img { vertical-align:middle;}
|
||||
ul.replyZone .replyOption { float:right; white-space:nowrap; margin-left:.2em;}
|
||||
ul.replyZone .replyOption img { vertical-align:middle;}
|
||||
|
||||
#reply .replyContent { clear:left; }
|
||||
#reply .reply { background-color:#FAFAFA;}
|
||||
#reply .replyIndent { background:url(../images/white/iconReplyArrow.gif) no-repeat .0em .3em; padding-left:1.3em;}
|
||||
ul.replyZone .replyContent { clear:left; }
|
||||
ul.replyZone .reply { background-color:#FAFAFA;}
|
||||
ul.replyZone .replyIndent { background:url(../images/white/iconReplyArrow.gif) no-repeat .0em .3em; padding-left:1.3em;}
|
||||
|
||||
#reply li .fileAttached { _width:100%; border:1px solid #eaeae7; overflow:hidden; background:#fbfbfb; margin-top:.3em;}
|
||||
#reply li .fileAttached ul { float:left; padding:.3em 1em .2em 0; margin-left:.5em; _margin-left:.25em;}
|
||||
|
|
@ -202,8 +202,8 @@ Jeong, Chan Myeong 070601~070630
|
|||
.boardEditor { padding:.5em 0 1em 0; width:100%; overflow:hidden;}
|
||||
.boardEditor.reply { padding:.5em 1em 1em 1em; width:auto; overflow:hidden;}
|
||||
.boardEditor legend { position:absolute; overflow:hidden; width:1px; height:1px; font-size:.001em;}
|
||||
.boardEditor fieldset { _width:100%; border:1px solid #eaeae7; border-top:none;}
|
||||
.boardEditor .userNameAndPw { position:relative; background:#fbfbfb; border-top:1px solid #eaeae7; border-bottom:1px solid #e1e1e1; padding:.5em 1em; white-space:nowrap;}
|
||||
.boardEditor fieldset { _width:100%; border:1px solid #eaeae7; }
|
||||
.boardEditor .userNameAndPw { position:relative; padding:.5em 1em; white-space:nowrap;}
|
||||
.boardEditor .userNameAndPw * { vertical-align:middle;}
|
||||
.boardEditor .userNameAndPw label { margin-right:.2em; color:#666760;}
|
||||
.boardEditor .userNameAndPw input { color:#aaaaaa;}
|
||||
|
|
@ -213,6 +213,8 @@ Jeong, Chan Myeong 070601~070630
|
|||
.boardEditor .userNameAndPw .homePage { width:6em;}
|
||||
.boardEditor .userNameAndPw .checkSecret { position:absolute; right:2em; top:.7em;}
|
||||
.boardEditor .buttonReply { position:relative; float:left; left:50%; margin:.5em 0 0 -2em; _padding-bottom:1em;}
|
||||
.boardEditor .commentForm { width:100%; padding-bottom:.5em;}
|
||||
.boardEditor .commentForm textarea { width:632px; margin:.3em; height:100px;}
|
||||
|
||||
/* boardWrite */
|
||||
.boardWrite { width:100%; position:relative;}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue