웹마스터 팁

sejin7940 게시판에 소셜XE 댓글을 달려고 해도 소스코드가 복잡해 못 다셨을 겁니다.
sejin7940 제작하신 분 홈페이지에서도 문의 글이 있었지만 아직 소셜XE를 사용해 보지 않으셔서...
sejin7940 게시판 사용자 분들은 소셜XE 댓글은 거의 포기하셨을 거라 생각합니다.

* sejin7940/view_document.html
다음 코드를 찾으세요.
{@$member_grantAA=$oDocument->getExtraEidValue('member_grantAA')}
{@$group_grantAA=$oDocument->getExtraEidValue('group_grantAA')}
<!--@if($oDocument->allowComment() && $module_info->use_comment!="N" )-->
<!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
<!--@elseif(!(((!$member_grantAA || ($member_grantAA &&  substr_count(",".$member_grantAA.",", ",".$logged_info->user_id.","))) && (!$group_grantAA || ($group_grantAA &&  substr_count(",".$group_grantAA.",", ",".$logged_info->group.",")))) || $grant->manager=="Y" || $grant->document_grant=="N"))-->
<!--@else-->
<!--@if($oDocument->getCommentCount())-->
<!--@if($module_info->use_bestcomment=="Y")-->
<!--@if(!$module_info->bestcomment_total)-->{@$module_info->bestcomment_total='3'}<!--@end-->
<!--@if(!$module_info->bestcomment_min)-->{@$module_info->bestcomment_min='1'}<!--@end-->
{@
$args->module_srl = $module_info->module_srl;
$args->document_srl = $oDocument->document_srl;
$args->list_count = $module_info->bestcomment_total;
$args->sort_index = $args->order_target = 'voted_count';
$args->order_type = 'desc';
$args->min_vote = $module_info->bestcomment_min;
$oCommentModel = &getModel('comment');
$output_bestcomment = executeQuery('comment.getBestCommentList', $args);
}
{@$comment_style="best";}
<!--@if(count($output_bestcomment->data)>1)-->
<!--@foreach($output_bestcomment->data as $no=>$comment)-->
{@$best_comment_srl = $comment->comment_srl}
{@$best_comment = $oCommentModel->getComment($best_comment_srl) }
{@$_comment_list[] = $best_comment }
<!--@end-->
<!--@else-->
<!--@foreach($output_bestcomment->data as $key=>$value)-->
<!--@if($key=='comment_srl')-->
{@$_comment_list[] = $oCommentModel->getComment($value) }
<!--@end-->
<!--@end-->
<!--@end-->
<!--@if($output_bestcomment->data)-->
<div id="div_best_comment">
<div id="div_comment_view" style="display:block; width:98%; margin:0px auto 0px auto" <!--@if($module_info->view_comment=="button_view")-->style="display:none"<!--@end-->>
<a name="comment"></a>
<!--@if($module_info->comment_skin=="narrow")-->
<!--#include("./comment_narrow.html")-->
<!--@else-->
<!--#include("./comment.html")-->
<!--@end-->
</div>
</div>
<!--@end-->
<!--@end-->
<!--@if($module_info->view_comment=="N" && !$grant->manager)-->
<!--@else-->
{@ $_comment_list = $oDocument->getComments() }
{@$comment_style="default";}
<div id="div_comment_view" style="float:left; width:100%" <!--@if($module_info->view_comment=="button_view")-->style="display:none"<!--@end-->>
<a name="comment"></a>
<!--@if($module_info->comment_skin=="narrow")-->
<!--#include("./comment_narrow.html")-->
<!--@else-->
<!--#include("./comment.html")-->
<!--@end-->
</div>
<!--@end-->
<!--@end-->
<div style="<!--@if((!$oDocument->getCommentCount() || $module_info->view_comment=='button_view' ) && ($module_info->write_comment=='button_page' || $module_info->write_comment=='button_view')  && $module_info->use_sub!='+ 'Y')-->margin-top:-35px;<!--@end--> text-align:center; width:100%; float:left;">
<!--@if($module_info->view_comment=="button_view" && $oDocument->getCommentCount())-->
<a onclick="document.getElementById('div_comment_view').style.display='inline';this.style.display='none';" style="pointer:cursor;" class="buttonOfficial"><span style=" width:80px; text-align:center;">{$lang->cmd_comment_view}</span></a>&nbsp;&nbsp;
<!--@end-->
<!--@if($grant->write_comment && $oDocument->isEnableComment() && $module_info->write_comment=="button_page")-->
&nbsp;&nbsp;<a href="{getUrl('act','dispBoardWriteComment','document_srl',$oDocument->document_srl)}" class="buttonOfficial"><span style=" width:80px; text-align:center;">{$lang->cmd_comment_registration}</span></a>
<!--@elseif($grant->write_comment && $oDocument->isEnableComment() && $module_info->write_comment=="button_view")-->
&nbsp;&nbsp;<a onclick="document.getElementById('div_comment_form').style.display='inline';this.style.display='none';" style="pointer:cursor;" class="buttonOfficial"><span style=" width:80px; text-align:center;">{$lang->cmd_comment_registration}</span></a>
<!--@end-->
</div>
<!--@if($grant->write_comment && $oDocument->isEnableComment() && ($module_info->write_comment=="Y" || $module_info->write_comment=="button_view" || ($module_info->write_comment=="N" && $grant->manager)) )-->
<div id="div_comment_form" style="float:left; width:100%; <!--@if($module_info->write_comment=='button_view')-->display:none;<!--@end-->">
<form action="./" method="post" onsubmit="jQuery(this).find('input').each(function(){if(this.title==this.value)this.value='';});return procFilter(this, insert_comment)" class="boardEditor" <!--@if($module_info->use_comment=="button_view" && !$oDocument->getCommentCount() && $module_info->use_sub!='Y' )-->style="margin-top:35px;"<!--@end-->>
<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="" />-->
<input type="hidden" name="content" value="{nl2br(htmlspecialchars($module_info->comment_default))}" />
<!--
{@$module_info->comment_default=str_replace('"','\'',$module_info->comment_default)}  
<input type="hidden" name="content" value="{$module_info->comment_default}" />
-->
<div class="boardWrite commentEditor">
<div class="editor">{$oDocument->getCommentEditor()}</div>
<div class="editorOption" style="width:100%">
<!--@if(!$is_logged)-->
<input type="text" name="nick_name" class="inputText userName" value="{$lang->writer}"  title="{$lang->writer}" onfocus="if(this.value==this.title)this.value='';return false;" />
<!--@if($module_info->display_comment_pwd=="N")-->
<input type="hidden" name="password" value="{rand(111111111,9999999999)}">
<!--@else-->
<input type="password" name="password" class="inputText userPw" value="{$lang->password}" title="{$lang->password}" onfocus="if(this.value==this.title)this.value='';return false;" />
<!--@end-->
<!--@if($module_info->display_comment_email!="N")-->
<input type="text" name="email_address" class="inputText emailAddress" value="{$lang->email_address}" title="{$lang->email_address}" onfocus="if(this.value==this.title)this.value='';return false;" />
<!--@end-->
<!--@if($module_info->display_comment_homepage!="N")-->
<input type="text" name="homepage" class="inputText homePage" value="{$lang->homepage}" title="{$lang->homepage}" onfocus="if(this.value==this.title)this.value='';return false;" />
<!--@end-->
<!--@end-->
<!--@if($is_logged)-->
<input type="checkbox" name="notify_message" value="Y" id="notify_message" class="inputCheck" />
<label for="notify_message">{$lang->notify}</label>
<!--@end-->
<!--@if($module_info->comment_secret_sort=="secret_all")-->
<input type="hidden" name="is_secret" value="Y" id="is_secret" >
<label for="is_secret">{$lang->secret_all}</label>
<!--@elseif ( ($module_info->comment_secret_grant=="member" && $logged_info) || ($module_info->comment_secret_grant=="admin" && $grant->manager ) || $module_info->comment_secret_grant=="all"  || !$module_info->comment_secret_sort )-->
<input type="checkbox" name="is_secret" value="Y" <!--@if($oDocument->isSecret() || $module_info->comment_secret_sort=="secret")-->checked="checked"<!--@end--> id="is_secret" />
<label for="is_secret">{$lang->secret}</label>
<!--@end-->
</div>
<div class="boardNavigation">
<!--@if($module_info->display_commentvote=="Y")-->
<span class="buttonOfficial"><input onclick="doCallModuleAction('document','procDocumentVoteUp',{$oDocument->document_srl});" type="submit" value="추천하며 댓글 등록" accesskey="s" /></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!--@end-->
<span class="buttonOfficial"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
</div>
</div>
</form>
</div>
<!--@end-->
<!--@end-->
<!--@end-->

* 이 코드에 주속문을 달아야 하는데 불가능합니다. 그러니 전부 삭제하세요. 다시 원래 기능사용하시려면 다시 깔면 되니까 걱정하지 않으셔도 됩니다.
   그리고, 삭제한 자리에 다음 코드를 붙여 넣으세요.

<!--SocialXE Comment Widget Start-->
<a name="comment"></a>
<img class="zbxe_widget_output" widget="socialxe_comment" skin="default" colorset="white" document_srl="{$oDocument->document_srl}" content_link="{getFullUrl('', 'document_srl', $oDocument->document_srl, 'dummy', '1')}" content_title="{htmlspecialchars($oDocument->getTitleText())}" enter_send="Y" style="width:100%;" />
<!--SocialXE Comment Widget End-->
기존 소셜XE 매뉴얼에 나온 코드랑 다른 부분이 있습니다. style="width:100%" 가 추가된 것입니다.
sejin7940 게시판에서 어쩐 일인지 저걸 안 붙이면 가로가 0이 되어 버려서 흰 공간만 보이게 됩니다.


좋은 게시판 만들어 주신 sejin7940님, 좋은 게시판 쓰고 계신 분들에게 좋은 팁이 되었음 합니다.
제목 글쓴이 날짜
제로보드 XE의 세팅중 ssl사용해제방법 준돌이 2011.07.26
sejin7940 게시판에 소셜XE 댓글 다는 방법 [소스코드] [5] Treasurej 2011.08.16
XE 템플릿 구문 정리 [1] 우진홈 2011.08.17
내 PC에서 XE 설치하는 방법 [2] file amd짱좋아 2011.08.17
홈페이지 접속시 XE를 바로 실행하기 [7] ezi 2011.08.20
글읽기 권한 없을때 회원가입창으로 유도하는 방법 (XE1.5수정) [10] sejin7940 2011.08.23
XE 모듈 만들기 [13] 우진홈 2011.09.17
XE 1.5 executeQuery 해결방법 [9] 웹기프트 2011.09.29
XE1.5.0.2 시작 모듈 설정하는 방법 [16] file gayeon 2011.10.01
XE1.5.0.2 설정->파일박스 버튼이 표시되지 않는 문제 해결 방법 file gayeon 2011.10.02
XE 1.5 → XE1.4로 다운그레이드 설정 [14] 시작&끝 2011.10.10
XE 1.5 업그레이드 후 다시 1.4로 다운그레이드 하신분들을 위한 팁 입니다. [15] file 류군 2011.10.10
XE 이클립스 개발환경 만들기 [7] 행키 2011.10.19
xe_board 스킨에서 제목 윗 부분이 짤리는 경우.. [1] 천재경 2011.10.19
1.4.5.10->1.5.06 전환 성공기 executeQuery오류 문제및 다량 문제 발생해결 [2] phonetest 2011.10.21
XE코어 관리와 업그레이드 10계명 [5] 우진홈 2011.10.30
XE를 이용하여 SMTP 보내보기[개발자용] [10] 라르게덴 2011.11.02
시작 페이지 /xe/ 이신분들 ~ 이제 고민 해결. [3] 숭숭군 2011.11.14
XE 도쿠위키 세션으로 연동 [5] 도라란 2011.11.17
Xe 1.5.0.9 사용자 설치메뉴얼 제2부 [22] file 황비 2011.11.22