Skip to content
This repository was archived by the owner on Feb 13, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions forum.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function procForumInsertComment() {
$obj = Context::gets('document_srl','comment_srl','parent_srl','content','password','nick_name','member_srl','email_address','homepage','notify_message');
$obj->module_srl = $this->module_srl;
$obj->content=$args->quote_content.$obj->content;
if($args->quote_content) $obj->use_html="Y";
// instancing document model
$oDocumentModel = &getModel('document');
$oDocument = $oDocumentModel->getDocument($obj->document_srl);
Expand Down
4 changes: 2 additions & 2 deletions m.skins/default/_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ <h2><a href="{getUrl('','vid',$vid,'mid',$mid)}">{htmlspecialchars($module_info-
<li>
<a href="{getUrl('document_srl', $document->document_srl)}">
<span class="title"><span class="notice">{$lang->notice}</span> <!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->{$category_list[$document->get('category_srl')]->title} &rsaquo;<!--@end--> <strong>{$document->getTitle($module_info->subject_cut_size)}</strong> <!--@if($document->getCommentCount())--><em>[{$document->getCommentCount()}]</em><!--@endif--></span>
<span class="auth"><strong>{$document->getNickName()}</strong> <span class="time">{$document->getRegDate("Y.m.d")}</span></span>
<span class="auth"><strong>{$document->getNickName()}</strong> <span class="time">{zdate($document->get('last_update'),'Y-m-d H:i:s')}<span></span>{$lang->by} </span>{$document->get('last_updater')}</span>
</a>
</li>
<!--@end-->
<!--@foreach($document_list as $no => $document)-->
<li>
<a href="{getUrl('document_srl', $document->document_srl)}">
<span class="title"><!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->{$category_list[$document->get('category_srl')]->title} &rsaquo;<!--@end--> <strong>{$document->getTitle($module_info->subject_cut_size)}</strong> <!--@if($document->getCommentCount())--><em>[{$document->getCommentCount()}]</em><!--@endif--></span>
<span class="auth"><strong>{$document->getNickName()}</strong> <span class="time">{$document->getRegDate("Y.m.d")}</span></span>
<span class="auth"><strong>{$document->getNickName()}</strong> <span class="time">{zdate($document->get('last_update'),'Y-m-d H:i:s')}</span><span>{$lang->by} </span>{$document->get('last_updater')}</span>
</a>
</li>
<!--@end-->
Expand Down
4 changes: 2 additions & 2 deletions m.skins/default/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
{$comment->getContent(false)}
<span class="auth">
<em>{$comment->getNickName()}</em>
<span class="time">{$comment->getRegdate("Y.m.d")}</span>
<span class="time">{$comment->getRegdate("Y.m.d H:i:s")}</span>
<!--@if($comment->isGranted() || !$comment->get('member_srl'))-->
<a href="{getUrl('act','dispForumDeleteComment','comment_srl',$comment->comment_srl)}" class="btn de">{$lang->cmd_delete}</a>
<!--@endif-->
<a href="{getUrl('act','dispForumReplyComment','comment_srl',$comment->comment_srl)}" class="btn re">{$lang->cmd_reply}</a>
<a href="{getUrl('act','dispForumReplyComment','comment_srl',$comment->comment_srl,'quote','Y')}" class="btn re">{$lang->cmd_quote}</a>
{@ $start = false }
{@ $depth = $comment->get('depth') }
</span>
Expand Down
1 change: 1 addition & 0 deletions m.skins/default/comment_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ <h2><a href="{getUrl('','vid',$vid,'mid',$mid)}">{htmlspecialchars($module_info-
<input type="hidden" name="document_srl" value="{$oComment->get('document_srl')}" />
<input type="hidden" name="comment_srl" value="{$oComment->get('comment_srl')}" />
<input type="hidden" name="parent_srl" value="{$oComment->get('parent_srl')}" />
<input type="hidden" name="quote_content" value="{$quote_content}" />
<ul>
<li>
<label for="rText">{$lang->comment}</label>
Expand Down
5 changes: 4 additions & 1 deletion m.skins/default/css/mforum.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,7 @@ input[type=radio]{width:13px;height:13px;margin:0;padding:0}
.sh *{vertical-align:top}
.sh select{width:80px;font-size:14px;margin:0 0 5px 0}
.sh input[type=text]{width:160px;margin:0;font-size:14px;padding:5px}
.sh .shbn{width:28px;height:28px;border:1px solid #666;background:#777 url(../img/mx.png) no-repeat 5px -60px;box-shadow:0 0 1px #fff inset;-moz-box-shadow:0 0 1px #fff inset;-webkit-box-shadow:0 0 1px #fff inset;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;cursor:pointer}
.sh .shbn{width:28px;height:28px;border:1px solid #666;background:#777 url(../img/mx.png) no-repeat 5px -60px;box-shadow:0 0 1px #fff inset;-moz-box-shadow:0 0 1px #fff inset;-webkit-box-shadow:0 0 1px #fff inset;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;cursor:pointer}

.quote{margin:0 10px 10px 0;padding:10px;border:1px solid #ddd;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}
.quoteTitle{margin:0 0 5px;font-style:italic}
4 changes: 2 additions & 2 deletions m.skins/default/read.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ <h3>{$lang->trackback} <em>[{$oDocument->getTrackbackCount()}]</em></h3>
<!--@endif-->
<!--@if($oDocument->allowComment() && $oDocument->getCommentCount())-->
<div class="hx h3">
<h3 id="clb">{$lang->comment} <em>[{$oDocument->getCommentCount()}]</em></h3>
<h3 id="clb">{$lang->reply} <em>[{$oDocument->getCommentCount()}]</em></h3>
<button type="button" class="tg tgr" title="open/close"></button>
</div>
<!--@endif-->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<!--@if($grant->post && $oDocument->isEnableComment() )-->
<div class="hx h3">
<h3>{$lang->write_comment}</h3>
<button type="button" class="tg" title="open/close"></button>
Expand Down