소스 좀 봐주세요.. > 그누4 질문답변

그누4 질문답변

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

소스 좀 봐주세요.. 정보

소스 좀 봐주세요..

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://pobiris.cafe24.com/gnuboard4/

메인 공지사항에 제목 오른쪽편으로 날짜를 보이고 싶은데..
당췌 정렬이 안됩니다 ㅠㅠ
초보가 만들려고 하니 점하나 옮기기도 너무 힘드네요 ㅠ
어떻게 손을 봐야 합니까;; 세시간째 이거하다 포기직전이네요


<?php if ($options == "1") { //일반적인 유형의 보통 글꼴 최신글 관련 소스 ?>

<?
$content_width = "430";
$content_height = "72";
?>
<div class="latest_wrap1">
<?
for ($j = 0; $j < 1; $j++)
{
$list[$j][wr_content]=strip_tags($list[$j][wr_content]);
$content= mb_strimwidth($list[$j][wr_content],0,300,"...","UTF-8");
}       
?>
</div>

<style type="text/css">
.latest_wrap1 {width:400; position:relative; margin-left:5px; margin-top:8px; text-align:left;}
.latest_wrap1 ol {position:absolute; margin:0; padding:0; list-style:none}
.latest_wrap1 ol li {height:19px; text-align:left}
.latest_subject a:link, .latest_subject a:visited, .latest_subject a:active {width:70%; color:#elelel; padding-top:8px; padding-left:8px; background:url(<?php echo $latest_skin_path ?>/img/icon_li.gif) no-repeat 0 3px}
.latest_subject a:hover {color:#000}
.right_c {width:<?php echo $content_width ?>px;  height:<?php echo $content_height ?>px; overflow:hidden; padding-left:10px; padding-top:5px; padding-bottom:5px; text-decoration:none; color:#A1A1A1; letter-spacing:-1px; line-height:15px;}
.right_d {text-align:right; color:#elelel; }
</style>
<div class="latest_wrap1">
  <ol>
<?php for ($i = 0; $i < count($list); $i++) { ?>
    <li>

    <?php
    echo "<div class='latest_subject' style='float:left;><a href='{$list[$i]['href']}'>· {$list[$i]['subject']}</a>";

    if ($list[$i]['comment_cnt'])
        echo "<a href=\"{$list[$i]['comment_href']}\">{$list[$i]['comment_cnt']}</a>";

    //if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
    //if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
    echo " " . $list[$i]['icon_new']."</div>";

    if ($list[$i]['wr_datetime'])
echo "<div style='float:right;'><font style='color:6A6A6A;'>".$list[$i]['datetime2']."</font>
</div>";

if ($i == 0)
echo "<br><div class='right_c'>".$content;
    ?>

    </li>
    <?php } ?>
    <?php if (count($list) == 0) { ?>
    게시물이 없습니다.
    <?php } ?>
  </ol>
</div>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로