묻고답하기
액티브박스 ID 환경설정 질문드립니다.
2009.01.19 01:08
액티브박스 애드온 환경설정에서 두곳에 아이디를 적용해야합니다
그 파일은 view_document.html 와 comment.html 파일입니다. 제일 처음에 나오는
파일은 view_document.html 파일 내용이며 중간부분에 나오는 파일은 comment.html 파일 내용입니다.
각각의 설명대로 적용해야하는데 보고 또 봐도 이해할수가 없습니다.
[설명]
view_document.html 파일에서는 파일 내용중에서 아래 내용이 있는 부분의 DIV 객체의 ID를 적으면 됩니다.
마찬가지로 없다면 id="[아이디명]" 을 추가합니다.
아래 내용과 똑같지는 않더라도 {$oDocument->getContent()} 가 들어있는 DIV 객체의 ID를 적으면 됩니다.
예)<div id="DocumentContent" class="contentBody">
{$oDocument->getContent()}
</div>
............................................................................
아래 부터는 view_document.html 파일의 내용을 전체 붙여넣기한 것입니다.
위에 예)를 어디에 그대로 붙여넣고 적용 해야합니까.?
<!-- 글 내용 보여주기 -->
<!--@if(($document_srl || $rnd)&&count($document_list)==1)-->
{@ $block_class = "blog_not_fold"; }
{@ $display_style = "block"; }
<!--@else-->
{@ $block_class = "blog_auto_fold"; }
{@ $display_style = "none"; }
<!--@end-->
<!-- 글 내용 보여주기 -->
<div class="boardRead">
<div class="originalContent">
<div class="readHeader">
<div class="dateLabel"><span class="dateDay">{$oDocument->getRegdate('d')}</span><br />
<span class="dateMonth">{$oDocument->getRegdate('Y.m')}</span>
</div>
<div class="titleAndUser">
<div class="title">
<h4><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></h4>
<span class="uri">// Document: <a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></span>
<span class="date">{$oDocument->getRegdate('Y.m.d')} {$oDocument->getRegdate('H:i:s')} ({$oDocument->getIpaddress()})</span>
<!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))-->
<span class="category">Category: <a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}"><strong>{$category_list[$oDocument->get('category_srl')]->title}</strong></a></span><!--@end--><br />
<!--@if($grant->write_comment && $oDocument->allowComment()) -->
<span class="replyCount"><a href="#" onclick="toggle_object('blog_comment_{$oDocument->document_srl}'); return false;" title="{$lang->comment}">{$oDocument->getCommentcount()} Comments</a></span><!--@end-->
<!--@if($oDocument->allowTrackback() && $oDocument->getTrackbackCount() )-->
<span class="trackbackCount"><a href="#" onclick="toggle_object('blog_trackback_{$oDocument->document_srl}'); return false;" title="{$lang->trackback}">{$oDocument->getTrackbackCount()} Trackback</a></span><!--@end-->
<span class="readedCount">{$oDocument->get('readed_count')} Views</span>
<!--@if($oDocument->get('voted_count')!=0 || $oDocument->get('blamed_count')!=0)-->
<span class="votedCount">{$oDocument->get('voted_count')} Voted / {$oDocument->get('blamed_count')} Devoted</span><!--@end-->
</div>
<!--@if($module_info->display_author!='N'+
'+
')-->
<div class="userInfo">
<!--@if(!$oDocument->getMemberSrl())-->
<div class="author">
<!--@if($oDocument->isExistsHomepage())-->
<a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;">{$oDocument->getNickName()}</a>
<!--@else-->
{$oDocument->getNickName()}
<!--@end-->
</div>
<!--@else-->
<div class="author"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></div>
<!--@end-->
</div>
<!--@end-->
</div><!--titleAndUser out -->
</div>
<div class="clear"></div>
<!--@if($oDocument->isExtraVarsExists() && (!$oDocument->isSecret() || $oDocument->isGranted()) )-->
<table cellspacing="0" summary="" class="extraVarsList">
<col width="150" />
<col />
<!--@foreach($module_info->extra_vars as $key => $val)-->
<!--@if($val->name)-->
<tr>
<th scope="row">{$val->name}</th>
<td>
<!-- 확장변수(extra_var)의 type에 따른 값을 출력하기 위해서 특별히 제작된 파일을 include 한다 -->
<!--#include("./extra_var_value.html")-->
</td>
</tr>
<!--@end-->
<!--@end-->
</table>
<!--@end-->
<div class="readBody">
<div class="contentBody">
<!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
<!--%import("filter/input_password.xml")-->
<div class="secretContent">
<form action="./" method="get" onsubmit="return procFilter(this, input_password)">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<div class="title">{$lang->msg_is_secret}</div>
<div class="content"><input type="password" name="password" id="cpw" class="inputTypeText" /><span class="button"><input type="submit" value="{$lang->cmd_input}" accesskey="s" /></span></div>
</form>
</div>
<!--@else-->
{$oDocument->getContent()}
<!--@end-->
<div class="toggleBox">
<strong><a href="#" onclick="toggle_object('blog_comment_{$oDocument->document_srl}'); return false;" title="{$lang->comment}">댓글보기({$oDocument->getCommentcount()}개)</a> | <a href="#" onclick="toggle_object('blog_trackback_{$oDocument->document_srl}'); return false;" title="{$lang->trackback}">엮인글보기</a></strong>
</div>
<div class="clear"></div>
<!-- 서명 / 프로필 이미지 출력 -->
<!--@if($oDocument->getProfileImage() || $oDocument->getSignature())-->
<div class="memberSignature">
<!--@if($oDocument->getProfileImage())-->
<div class="profile"><img src="{$oDocument->getProfileImage()}" alt="profile" /></div>
<!--@end-->
<!--@if($oDocument->getSignature())-->
<div class="signature">{$oDocument->getSignature()}</div>
<!--@end-->
<div class="clear"></div>
</div>
<!--@end-->
</div>
</div>
{@ $tag_list = $oDocument->get('tag_list') }
<!--@if(count($tag_list))-->
<div class="tag">
<ul>
<!--@for($i=0;$i<count($tag_list);$i++)-->
{@ $tag = $tag_list[$i]; }
<li><a href="{getUrl('search_target','tag','search_keyword',$tag,'document_srl','')}" rel="tag">{htmlspecialchars($tag)}</a><!--@if($i<count($tag_list)-1)-->, <!--@end--></li>
<!--@end-->
</ul>
</div>
<!--@end-->
<!--@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-->
</div>
<!-- 목록, 수정/삭제 버튼 -->
<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>
<!-- 엮인글 -->
<div id="blog_trackback_{$oDocument->document_srl}" style="display:none">
<!--@if($oDocument->allowTrackback())-->
<!--#include("./trackback.html")-->
<!--@end-->
</div>
<!-- 댓글 -->
<div id="blog_comment_{$oDocument->document_srl}" style="display:none">
<a name="comment"></a>
<!--#include("./comment.html")-->
</div>
<!-- 댓글 입력 폼 -->
<!--@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="outterGlow">
<div class="alertBox_reply">{$lang->comment}</div><!--alertBox out -->
<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><!--outterGlow out -->
</div><!--boardWrite out -->
<div class="commentButton tRight">
<span class="button"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
</div>
</form>
<!--@end-->
..............................................
이번엔 두번째 파일 comment.html 파일입니다
..............................................................................................................
[설명]
comment.html 파일은 코멘트 목록을 출력하는 스킨파일인데, 이곳에서 제일 처음 나오는 DIV 객체의 ID를 적으면 됩니다.
없다면 id="[아이디명]" 을 추가합니다. 이게 무슨말인지 이해할수가 없습니다
아래 comment.html 내용중에 ID를 어디에 어떻게 적으라는건가요.? 그대로 사용할테니 답변좀 달아주세요
.................................................................
<!--@if($oDocument->getCommentCount())-->
<div class="replyBox">
<div class="outterGlow">
{@ $_comment_list = $oDocument->getComments() }
<!--@foreach($_comment_list as $key => $comment)-->
<div class="replyItem <!--@if($comment->get('depth'))-->reply<!--@end-->">
<!--@if($comment->get('depth'))-->
<div style="margin-left:{($comment->get('depth')-1)*20}px" class="replyIndent">
<!--@end-->
<a name="comment_{$comment->comment_srl}"></a>
<div class="replyOption">
<!--@if($comment->isGranted() || !$comment->get('member_srl'))-->
<a href="{getUrl('act','dispBoardDeleteComment','comment_srl',$comment->comment_srl)}"><img src="./images/{$module_info->colorset}/buttonDeleteX.gif" alt="{$lang->cmd_delete}" width="14" height="14" /></a>
<a href="{getUrl('act','dispBoardModifyComment','comment_srl',$comment->comment_srl)}"><img src="./images/{$module_info->colorset}/buttonModifyE.gif" alt="{$lang->cmd_modify}" width="14" height="14" /></a>
<!--@end-->
<a href="{getUrl('act','dispBoardReplyComment','comment_srl',$comment->comment_srl)}"><img src="./images/{$module_info->colorset}/buttonReply.gif" alt="{$lang->cmd_reply}" width="14" height="14" /></a>
</div>
<!--@if($comment->get('voted_count')!=0 || $comment->get('blamed_count') != 0)-->
<div class="voted">
({$lang->voted_count}:
<strong>{$comment->get('+
'voted_count')?$comment->get('voted_count'):0}</strong> / <strong>{$comment->get('blamed_count')?$comment->get('blamed_count'):0}</strong>)
</div>
<!--@end-->
<div class="clear"></div>
<div class="avatar">
<!--@if($comment->getProfileImage())-->
<img src="{$comment->getProfileImage()}" alt="profile" class="commentProfileImage" />
<!--@else-->
<img src="./images/glossary/noimage.jpeg" width="25" height="25" alt="profile" class="commentProfileImage" />
<!--@end-->
</div>
<div class="replyContent">
<!--@if(!$comment->isAccessible())-->
<!--%import("filter/input_password.xml")-->
<div class="secretContent">
<form action="./" method="get" onsubmit="return procFilter(this, input_password)">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="document_srl" value="{$comment->get('document_srl')}" />
<input type="hidden" name="comment_srl" value="{$comment->get('comment_srl')}" />
<div class="title">{$lang->msg_is_secret}</div>
<div class="content"><input type="password" name="password" class="inputTypeText" /><span class="button"><input type="submit" value="{$lang->cmd_input}" accesskey="s" /></span></div>
</form>
</div>
<!--@else-->
<div class="author">
<!--@if(!$comment->member_srl)-->
<!--@if($comment->homepage)-->
<a href="{$comment->homepage}" onclick="window.open(this.href);return false;">{$comment->getNickName()}</a>
<!--@else-->
{$comment->getNickName()}
<!--@end-->
<!--@else-->
<div class="member_{$comment->member_srl}">{$comment->getNickName()}</div>
<!--@end-->
</div>
{$comment->getContent(true)}
<!--@end-->
<div class="clear"></div>
<div class="date">
<strong>{$comment->getRegdate('Y.m.d')}</strong> {$comment->getRegdate('H:i:s')}
<!--@if($grant->is_admin)-->
({$comment->get('ipaddress')})
<!--@end-->
</div><!--date out -->
</div>
<!--@if($comment->hasUploadedFIles())-->
<div class="fileAttached">
<ul>
{@ $_uploaded_files = $comment->getUploadedFiles() }
<!--@foreach($_uploaded_files 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-->
<!--@if($comment->get('depth'))-->
</div>
<!--@end-->
</div>
<!--@end-->
<!-- 댓글 페이지 네비게이션 -->
<!--@if($oDocument->comment_page_navigation)-->
<div class="pageNavigation">
<a href="{getUrl('cpage',1)}#comment" class="goToFirst"><img src="./images/common/bottomGotoFirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
<!--@while($page_no = $oDocument->comment_page_navigation->getNextPage())-->
<!--@if($cpage == $page_no)-->
<span class="current">{$page_no}</span>
<!--@else-->
<a href="{getUrl('cpage',$page_no)}#comment">{$page_no}</a>
<!--@end-->
<!--@end-->
<a href="{getUrl('cpage',$oDocument->comment_page_navigation->last_page)}#comment" class="goToLast"><img src="./images/common/bottomGotoLast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
</div>
<!--@end-->
</div><!--outterGlow out -->
</div>
<!--@end-->
.........................................................
원문이있는 게시물 엑티브박스 애드온
http://www.zeroboard.com/17006894
댓글 5
-
넨네
2009.01.19 03:49
-
miso777
2009.01.19 05:23
답변 진심으로 감사드립니다. 5일만에 답변을 받아봤습니다.
답변 내용으로 수정했습니다 아래처럼 수정하면 된다는말씀이죠.
우선 view_document.html 파일 거의 아래부분에 {$oDocument->getContent()} 부분에서요 위로 13번째줄
<div class="readBody">
<div class="contentBody">
class="contentBody"> 앞에 <div id="DocumentContent 를 넣으란거죠
<div class="readBody">
<div id="DocumentContent" class="contentBody"> <<--이렇게요
...................................................
그리고 comment.html파일은 제일 처음부분에 class="replyBox"> 앞에
<div id="CommentContent" 를 넣어주란거구요
이렇게요
<!--@if($oDocument->getCommentCount())-->
<div id="CommentContent" class="replyBox"> <--이렇게요
<div class="outterGlow">
...............................................................................................
정말 감사드립니다. 하지만 위 설정대로 테스트를 할수없는 상황입니다.
위 설정을 안해도 애드온은 정상작동합니다. 설정이유는 게시판 이미지 검색만을 위해 서버부하를 줄이고
사진이 몇천장 많아졌을경우 빠른 로딩속도를 내기위함인데요
현재 사진 사이트로 운영할 홈피에 테스트 사진이 5장 뿐이안되서 위 설정값이 맞는지 안맞는지 체감하기는 힘드네요
다만 맞게 설정했다고 믿고 운영하겠습니다. 다시 한번 감사드립니다. -
Dustwo
2009.01.19 17:38
네 맞습니다.
그런데 속도를 줄인다고 하지만 이미지가 많을 경우 그 차이가 좀 나지만, 그렇지 않을 경우에는 그다지 차이는 없습니다. (페이지 내의 전체이미지를 체크하기 때문에)
아무튼 제가 여기 오랜만에 들어와봐서 확인을 못했었네요; 메일도 늦게 봐서 ^^; 얼마나 답답하셨을지;
즐거운 하루 보내세요! -
miso777
2009.01.20 02:12
답변 감사합니다. 근데 사진올릴때 이미지링크 누르면 기본 제로보드용이 나오네요.익스7 파폭3 모두요
아직 해결이 안된거지요. 모든 설정은 원하는 폴더에 맞게 업로드를 하였습니다.
그리고 저는 하이슬라이드를 사용하고 또 상업용 사이트는 라이센스를 구매해야할것 같은데
해당 사이트에서 라이센스를 지불하고 다운받으면 제공하는 옵션들이 더 많은거 아닌가요.?
물론 저에게 설치하기란 지금은 무리이지만 별에별 기능들이 많은데 그 모든 기능들이
라이센스를 지불하면 모두 한 셋트로 사용할수 있는건지
아님 단지 기본값을 사용하더라도 라이센스를 지불해야하는건지도 궁금하네요 -
miso777
2009.04.05 10:55
현재 제로보드 사이트는 이미지리사이징 애드온을 사용하잖아요 큰 이미지도 처음에는 720픽셀로 보여주다가
클릭하면 큰 이미지로 보여주는데요 하이 슬라이드는 한 500픽셀로 보여주다가 클릭하면 큰 이미지를 보여주는것
같아요 이미지리사이징 애드온과 거의 200픽셀 차이가 나는데요 문제는 500픽셀~720픽셀 사이의 이미지를 올릴경우
이미지리사이징 애드온은 그냥 봐도 되지만 하이슬라이드는 작은 사진임에도 불구하고 클릭을해야하는 번거로움이 있네요
이거 이미지리사이징 애드온처럼 처음 보여주는 이미지를 720픽셀로 크기를 늘리게 할수는 없을까요?
초보인지라 해당 사이트 구글번역으로 파해쳐봐도 도통 무슨 말인지 잘 몰라서 질문드립니다.
아시는분 답변좀 해주심 감사하겠습니다.
view_document.html에 보시면
{$oDocument->getContent()}이 있는데요. 이걸 감싸고 있는 div를 찾아보면
<div class="contentBody"> 바로 이것이죠. 설명부분과 비슷한 부분이 보이죠?
그럼 위의 부분을 <div id="DocumentContent" class="contentBody">로 바꿔주시면 끝나는 거에요.
설정하실 때는 DocumentContent 넣으시구요.
comment.html파일은 가장 먼저나오는 div의 이름을 찾으셔야 하는데요.
<div class="replyBox"> 바로 이거네요. 그런데 클래스만 설정되어 있고 이름이 없네요.
예시가 없으니 이렇게 해볼까요?
<div id="CommentContent" class="replyBox"> 이렇게 바꿔주세요.
위의 설명을 보면 id가 없을 경우 적어넣으라고 하셨잖아요. 이렇게 적어넣는다면!
view_document.html쪽은 DocumentContent를 설정하실 때 넣으시면 되구요.
comment.html쪽은 CommentContent를 넣으시면 된답니다.
제가 컨텐츠박스에 대해서 자세히 알지 못하고 사용해본 적도 없어서 확답은 아닌 것 같은데요.
안되시면 쪽지주세요. 그럼..^^