웹마스터 팁

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님, 좋은 게시판 쓰고 계신 분들에게 좋은 팁이 되었음 합니다.
제목 글쓴이 날짜
로그인 정보 폼에 읽지 않은 쪽지 개수 보이기. [21] file 무얼까 2011.07.23
도라란님의 팁에 추가하여 MP3와 동영상 파일도 막고 싶을 경우.. [4] Canto 2011.07.23
제로보드 XE의 세팅중 ssl사용해제방법 준돌이 2011.07.26
warning: call time pass by reference 에러 해결 방법 [6] ezi 2011.07.28
모바일과 MP3 화일 JW player 로 재생 하기 꽁수 김성곤820 2011.07.28
모바일 메인에서 쓰는 기능을 삽입할려면 어떻게 해야 할까요?> 최상순480 2011.08.02
모듈 개발 틀 쉽게짜기 file Xiso 2011.08.03
비회원이 게시글 추천할수있게하는방법 [4] file 토끼매니아 2011.08.03
닉네임이나 이름의 뒷부분을 ** 처리로 숨기고픈 경우 [2] sejin7940 2011.08.06
게시글 주소 아주 짧게 줄이기 [11] 웹 엔진 2011.08.07
자체 우편번호 검색DB 사용하기 우진홈 2011.08.11
Vimeo, Youtube 자동 썸네일 생성법(TED 추가) [47] file 마나풀 2011.08.12
계시판 확장변수에 대하여 여쭤봅니다. [1] 마지막드론 2011.08.14
FTP에서 인코딩 때문에 애 먹으시는 분들? file 히피♬ 2011.08.15
sejin7940 게시판에 소셜XE 댓글 다는 방법 [소스코드] [5] Treasurej 2011.08.16
XE 템플릿 구문 정리 [1] 우진홈 2011.08.17
내 PC에서 XE 설치하는 방법 [2] file amd짱좋아 2011.08.17
nginx Tip 업로드시 [Error Code: HTTP Error, File name: 파일명, Message: 413] 뜰떄 [3] leave 2011.08.18
홈페이지 접속시 XE를 바로 실행하기 [7] ezi 2011.08.20
조회수 제한 풀고, 조회수 증가값을 더 크게 하는 소스 [7] sejin7940 2011.08.21