최신글 스킨에서 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신글 스킨에서 정보

최신글 스킨에서

본문

현재 배추빌더로 만든 홈페이지 입니다.
사진에서 보시는것과 같이  최신글 스킨이 제목만 가로로 나열 되게 하려는데 latest.skin.php 을 고쳐야되는건가요 아님 index.main.skin.php 에서 스타일을 고쳐야되는건가요...
일단  index.main.skin.php  입니다

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/plugin/board_group/lib.php");
include_once("$g4[path]/lib/latest.lib.php");

?>

<style type="text/css">
#main { margin:5px 0 0 0; }
#main .latest-block { margin:5px 0 0 0; }
#main .main-ad { margin-top:5px; background-color:#efefef; line-height:25px; text-align:center; }

</style>

<!-- 메인 시작 -->
<table width="100%" id="main" border=0 cellpadding=0 cellspacing=0>
<tr>
<td valign="top">
 
<td width=10000 height=900 valign=top align=center bgcolor="#f5f5f5" style="border-left:1px solid #e1e1e1;">
<div style="padding:10px;">

         
<div class="latest-block"><?=latest("blog", "1_1", 5,0,0)?></div>
<div class="latest-block"><?=latest("blog", "a", 5,0,0)?></div>


        </div>

</td>

   
</td>
</tr>
</table><!-- main -->



</div><!-- mw-index -->

<script type="text/javascript"> fsearch.stx.focus(); </script>

 
그리고 이거는  latest.skin.php  입니다


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$rows = count($list);
$style_name = "mw-group-$bo_table-$rows-$subject_len";
?>
<style type="text/css">
#<?=$style_name?> { clear:both; margin:0; border:0px solid #e1e1e1; }
#<?=$style_name?> .item { clear:both; display:none; }
#<?=$style_name?> .file-img-b { width:120px; height:90px; border:0px solid #e1e1e1; border-left:0; }
#<?=$style_name?> .subject { clear:both; height:30px; color:#3DB7CC; font-weight:bold; font-size:13px; }
#<?=$style_name?> .subject a { color:#11C1BF; text-decoration:none; }
#<?=$style_name?> .prev { float:left; margin:0 0 0 -4px; cursor:pointer; }
#<?=$style_name?> .next { float:left; margin:0 0px 0 0; cursor:pointer; }
#<?=$style_name?> .link { float:left; margin:0 0 0 5px; text-align:center; }
</style>

<div id="<?=$style_name?>">
<? shuffle($list);
 for ($i=0; $i<$rows; $i++) {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:8px; margin-bottom:8px; padding:10px;">
  <tr>
  <?
$img = "$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "$g4[path]/data/file/$bo_table/thumbnail/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "{$list[$i][file][0][path]}/{$list[$i][file][0][file]}";
if (!@file_exists($img)) $img = "";
if (!$list[$i][wr_id]) $img = "";
if (@is_dir($img)) $img = "";
?>
<? if ($img) { ?>
    <td>
<a href="<?=$list[$i][href]?>"><img src="<?=$img?>" class="file-img-b"></a></td>
<? } ?>
    <td>
    <div class="subject"><a href="<?=$list[$i][href]?>"><span style="font-size:14px;"><?=$list[$i][subject]?></span></a></div>

    </td>
  </tr>
</table>
<? } ?>
<? if (count($list) == 0) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td></td>
  </tr>
</table>"; } ?>

</div>
  • 복사

댓글 전체

최신글 스킨 고치셔야 하는 것 맞습니다.
대충 소스 훓어 보니 좀 수정 하셔야 겠네요.
루프 돌리는 부분에서 <td></td> 태그 부분을 루프 밖으로 때시고 이미지와 제목만 쭉 돌리시면 될 듯 보입니다.
루프 속의 테이블 정리도 좀 필요해 보이네요. 어지럽네요..ㅡㅡ'
© SIRSOFT
현재 페이지 제일 처음으로