묻고답하기
댓글의 닉네임이 두줄로 표시되는 문제
2009.08.16 21:30
현재 제가 봉착한 문제는,
제가 사용하는 홈페이지에는 그룹아이콘과 레벨아이콘을 같이 사용하는데, 댓글에서 네임이 긴 회원의 경우는 회원의 닉네임의 뒷부분이
두번째줄로 내려갑니다.
그래서 댓글에서 닉네임이 표시되는 가로 길이를 늘이고 싶은데, 그 위치를 찾고 싶습니다.
사용중인 스킨은 XE Official Skin 입니다 :-)
XE Official Skin의 파일구조가
+ css
- black.css
- board.css
- button.css
- pagination.css
- white.css
+img
+screenshot
_footer.html
_header.html
_style.gallery.html
_style.list.html
_style.webzine.html
comment.html
comment_form.html
delete_comment_form.html
delete_form.html
delete_trackback_form.html
input_password_form.html
list.html
message.html
skin.xml
tag_list.html
trackback.html
view_document.html
write_form.html
img폴더와 screenshot는 제가 봐도 고쳐야 할곳은 아닌거 같구요.
아마..comment.html에서 무언가 고쳐야 할듯한데 찾아서 여기저기 width=100으로 넣어줬는데
새로고침 및 새로운 코멘트로 이리저리 쓰며 테스트 해봤는데 반응이 없더군요.
스킨찾고 파일 열어보시려면 번거로우니 아래로 복사했습니다...
------------------------------------------------------comment.html-------------------------------------------------------------------------------------------------------
<!--@if($oDocument->getCommentCount())-->
<hr class="hr" />
<div class="feedbackList" id="reply">
<h3 class="feedbackHeader">
<!--@if($grant->write_comment && $oDocument->allowComment()) -->
{$lang->comment} <em>'{$oDocument->getCommentcount()}'</em>
<!--@end-->
</h3>
<div class="replyList">
{@ $_comment_list = $oDocument->getComments() }
<!--@foreach($_comment_list as $key => $comment)-->
<div class="item <!--@if($comment->get('depth'))-->itemReply<!--@end-->" id="comment_{$comment->comment_srl}">
<div class="indent" <!--@if($comment->get('depth'))--> style="margin-left:{($comment->get('depth'))*15}px" <!--@end-->>
<div class="itemAside">
<!--@if($comment->getProfileImage())-->
<img src="{$comment->getProfileImage()}" alt="profile" class="profile" />
<!--@end-->
<h4 class="header">
<!--@if(!$comment->member_srl)-->
<!--@if($comment->homepage)-->
<a href="{$comment->homepage}" onclick="window.open(this.href);return false;">{$comment->getNickName()}</a>
<!--@else-->
<td width="200">{$comment->getNickName()*50}</td>
<!--@end-->
<!--@else-->
<a href="#popup_menu_area" class="member_{$comment->member_srl}" onclick="return false">{$comment->getNickName()}</a>
<!--@end-->
</h4>
<p class="meta">
{$comment->getRegdate('Y.m.d')}
{$comment->getRegdate('H:i:s')}
<!--@if($grant->manager || $module_info->display_ip_address!='N')-->
<br />{$comment->getIpaddress()}
<!--@end-->
</p>
<!--@if($comment->get('voted_count')!=0 || $comment->get('blamed_count') != 0)-->
<dl class="vote">
<dt class="love"><span>{$lang->cmd_vote}</span></dt>
<dd>{$comment->get('voted_count')?$comment->get('voted_count'):0}</dd>
<dt class="hate"><span>{$lang->cmd_vote_down}</span></dt>
<dd>{$comment->get('blamed_count')?$comment->get('blamed_count'):0}</dd>
</dl>
<!--@end-->
</div>
<div class="itemContent">
<!--@if(!$comment->isAccessible())-->
<form action="./" method="get" onsubmit="return procFilter(this, input_password)" class="secretMessage">
<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')}" />
<p>"{$lang->msg_is_secret}"</p>
<dl>
<dt><label for="cpw">{$lang->password}</label> :</dt>
<dd><input type="password" id="cpw" name="password" class="inputText" /><span class="buttonOfficial"><input type="submit" value="{$lang->cmd_input}" /></span></dd>
</dl>
</form>
<!--@else-->
{$comment->getContent(false)}
<!--@if($comment->hasUploadedFIles())-->
<dl class="attachedFile">
<dt><img src="./img/common/iconFiles.gif" width="27" height="11" alt="{$lang->uploaded_file}" /> <button type="button" class="fileToggle" onclick="jQuery(this).parents('dl.attachedFile').toggleClass('open');return false;">{$lang->uploaded_file} ({$comment->get('uploaded_count')})</button></dt>
<dd>
<ul class="files">
{@ $_uploaded_files = $comment->getUploadedFiles() }
<!--@foreach($_uploaded_files as $key => $file)-->
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download{number_format($file->download_count)}]</span></a></li>
<!--@end-->
</ul>
</dd>
</dl>
<!--@end-->
<ul class="option">
<!--@if($is_logged)-->
<li class="wouldYou"><a href="#popup_menu_area" class="comment_{$comment->comment_srl}">{$lang->cmd_comment_do}</a></li>
<!--@end-->
<li><a href="{getUrl('act','dispBoardReplyComment','comment_srl',$comment->comment_srl)}">{$lang->cmd_reply}</a></li>
<!--@if($comment->isGranted() || !$comment->get('member_srl'))-->
<li><a href="{getUrl('act','dispBoardModifyComment','comment_srl',$comment->comment_srl)}">{$lang->cmd_modify}</a></li>
<li><a href="{getUrl('act','dispBoardDeleteComment','comment_srl',$comment->comment_srl)}">{$lang->cmd_delete}</a></li>
<!--@end-->
</ul>
<!--@end-->
</div>
</div>
<!--@if($comment->get('depth'))-->
<!--@end-->
</div>
<comment_page_navigation">!--@if($oDocument->comment_page_navigation)-->
<div class="pagination">
<a href="{getUrl('cpage',1)}#comment" class="prevEnd">{$lang->first_page}</a>
<!--@while($page_no = $oDocument->comment_page_navigation->getNextPage())-->
<!--@if($cpage == $page_no)-->
<strong>{$page_no}</strong>
<!--@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="nextEnd">{$lang->last_page}</a>
</div>
<!--@end-->
------------------------------------------------------comment.html 끝입니다----------------------------------------------------------------------------------------