본 자료는 제로보드 게시판(블로그용) 스킨인 'itheme' 를 기반으로 작성되었습니다.
'itheme' 게시판스킨은 'bomijoa.com' 님의 레이아웃에 포함된 게시판스킨입니다.
지금 쓰는 이 글은 제로보드 1.0.6 버전 기준으로 작성합니다.
띄어쓰기 등의 쓸데없는 것은 당연히 뺐구요.

서두는 이만으로.. 본격적으로 연구(?)자료 발표를 시작합니다.



■ view_document_blog.html - 0
먼저 view_document.html를 복사한 후
복사된 파일 이름을 view_document_blog.html로 수정합니다.
그다음, 다음의 작업을 실행해주세요.

■ view_document_blog.html - 1
변경전
<div class="dateAndCount">
<div class="uri" title="{$lang->document_url}"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></div>

<div class="date" title="{$lang->regdate}">
<strong>{$oDocument->getRegdate('Y.m.d')}</strong> {$oDocument->getRegdate('H:i:s')} <!--@if($grant->is_admin || $module_info->display_ip_address!='N')-->({$oDocument->getIpaddress()})<!--@end-->
</div>
변경후
<div class="dateAndCount">
<!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))-->
<div class="category" title="{$lang->category}"><a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}">{$category_list[$oDocument->get('category_srl')]->title}</a></div>
<!--@end-->
<!--@if($module_info->display_link_message=="Y") -->
<div class="uri" title="{$lang->document_url}"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></div>
<!--@end-->
<div class="date" title="{$lang->regdate}">
{$oDocument->getRegdate('m/d/Y')} {$oDocument->getRegdate('H:i')}
<!--@if(($module_info->display_ip_address=="Y")||($grant->is_admin)) -->
({$oDocument->getIpaddress()})
<!--@end-->
</div>
■ view_document_blog.html - 2
변경전
<strong>{$oDocument->get('voted_count')} / {$oDocument->get('blamed_count')}</strong>
변경후
{$oDocument->get('voted_count')} / {$oDocument->get('blamed_count')}
■ view_document_blog.html - 3
변경전
<div class="replyCount"><a href="#comment" title="{$lang->comment}"><strong>{$oDocument->getCommentcount()}</strong></a></div>
변경후
<div class="replyCount"><a href="{$oDocument->getPermanentUrl()}#comment" title="{$lang->comment}"><strong>{$oDocument->getCommentcount()}</strong></a></div>
■ view_document_blog.html - 4
변경전
<!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))-->
<div class="category" title="{$lang->category}"><a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}">{$category_list[$oDocument->get('category_srl')]->title}</a></div>
<!--@end-->

변경후
삭제

■ view_document_blog.html - 5
변경전
{$oDocument->getContent()}
변경후
<!--@if(($module_info->display_document_popup_menu=="Y") ||($grant->is_admin))-->
{$oDocument->getContent(true)}
<!--@else-->
{$oDocument->getSummary2($module_info->display_lines_blog)}
<br>
<br>
<a href="{$oDocument->getPermanentUrl()}"> <STRONG> MORE &gt;&gt;&gt; </STRONG> </a>
<br>
<!--@end-->
■ view_document_blog.html - 6
변경전
<!--@if($oDocument->hasUploadedFiles())-->
<div class="fileAttached">
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<ul>
<!--@foreach($uploaded_list as $key => $file)-->
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} ({FileHandler::filesize($file->file_size)})({number_format($file->download_count)})</a></li>
<!--@end-->
</ul>
<div class="clear"></div>
</div>
<!--@end-->
변경후
삭제

■ view_document_blog.html - 7
변경전
<!-- 목록, 수정/삭제 버튼 -->
<div class="contentButton">
<!--@if($module_info->default_style != 'blog')-->
<a href="{getUrl('document_srl','')}" class="button"><span>{$lang->cmd_list}</span></a>
<!--@end-->
<!--@if($oDocument->isEditable())-->
<a href="{getUrl('act','dispBoardWrite','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button"><span>{$lang->cmd_modify}</span></a>
<a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button"><span>{$lang->cmd_delete}</span></a>
<!--@end-->
</div>

</div>

<!-- 엮인글 -->
<!--@if($oDocument->allowTrackback())-->
<!--#include("./trackback.html")-->
<!--@end-->
변경후
<!-- 목록, 수정/삭제 버튼 -->
<!--@if(($module_info->default_style != 'blog')||($oDocument->isEditable()))-->
<div class="contentButton">
<!--@if($module_info->default_style != 'blog')-->
<a href="{getUrl('document_srl','')}" class="button"><span>{$lang->cmd_list}</span></a>
<!--@end-->
<!--@if($oDocument->isEditable())-->
<a href="{getUrl('act','dispBoardWrite','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button"><span>{$lang->cmd_modify}</span></a>
<a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button"><span>{$lang->cmd_delete}</span></a>
<!--@end-->
</div>
<!--@end-->

</div>


<!--@if($module_info->display_comment_enable=="Y")-->
■ view_document_blog.html - 8
변경전
<!-- 댓글 입력 폼 -->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<!--%import("filter/insert_comment.xml")-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="boardEditor" >
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="comment_srl" value="" />
<input type="hidden" name="content" value="" />
<div class="boardWrite commentEditor">
<div class="userNameAndPw">
<!--@if(!$is_logged)-->
<label for="userName">{$lang->writer}</label>
<input type="text" name="nick_name" value="" class="userName inputTypeText" id="userName"/>

<label for="userPw">{$lang->password}</label>
<input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />

<label for="emailAddress">{$lang->email_address}</label>
<input type="text" name="email_address" value="" id="emailAddress" class="emailAddress inputTypeText"/>

<label for="homePage">{$lang->homepage}</label>
<input type="text" name="homepage" value="" id="homePage" class="homePage inputTypeText"/>
<!--@else-->
<input type="checkbox" name="notify_message" value="Y" id="notify_message" />
<label for="notify_message">{$lang->notify}</label>
<!--@end-->

<input type="checkbox" name="is_secret" value="Y" id="is_secret" />
<label for="is_secret">{$lang->secret}</label>

</div>

<div class="editor">{$oDocument->getCommentEditor()}</div>
</div>

<div class="commentButton tRight">
<span class="button"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
</div>
</form>
변경후
<!-- 댓글 입력 폼 -->
■ style_blog.html - 1
변경전
<!--@if($category || $search_keyword)-->

<!--@if($oDocument->isExists())-->
<div class="viewDocument">
<!--#include("./view_document.html")-->
</div>
<!--@end-->

<!--// 글이 선택되어 있거나 검색어가 있으면 목록을 출력 -->
<!--#include("./style.list.html")-->
변경후
<!--@if($category)-->

<!--@foreach($document_list as $no => $oDocument)-->
<div class="viewDocument">
<!--#include("./view_document_blog.html")-->
</div>
<!--@end-->

<!--@elseif($search_keyword)-->
■ style_blog.html - 2
변경전
<!--#include("./view_document.html")-->
변경후
<!--#include("./view_document_blog.html")-->
맺음글
■ 맺음
맺음글
* 본 글은 작성중입니다. *
by Anna 안나 2008. 11. 8. 21:18