최근 게시물 위치 좀 봐주세요..ㅠ.ㅠ > 그누4 질문답변

그누4 질문답변

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

최근 게시물 위치 좀 봐주세요..ㅠ.ㅠ 정보

최근 게시물 위치 좀 봐주세요..ㅠ.ㅠ

본문

html 로 작성했습니다.
메인화면에 최신글추출을 했는데 위치배열이 잘 안되네요
위 사진 두번째처럼 가로로 같이 나오게 하고싶은데
플래시파일이 다음줄로 나오네요.



<?
echo latest("enaksu", "notice", 5, 30);
?>

<embed width="350" height="200" src="products.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></object>

스킨파일에 가서 수정해야 할가요?


스킨파일의 latest.skin.php 의 소스는 아래와 같습니다.

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

<style type="text/css">
.lastest {_display:inline-block; width:25%; overflow:hidden;}
.lastest .lastest_box {_display:inline-block; position:relative; overflow:hidden;}
.lastest img{border:0}
.lastest .ntitle{padding-left:7px;}
.lastest .more_btn{padding:0px;}
.lastest .lastest_box .more_btn {position:absolute; top:0px; right:5px;}
.lastest ul {list-style-image:none; padding:0 5px 0 5px;}
.lastest li {background:url(<?=$latest_skin_path?>/img/ball.gif) no-repeat 0 50%; padding:2px 0 2px 10px; font-size:12px;}
.lastest a:link {color: #888; text-decoration: none}
.lastest a:visited {color: #888; text-decoration: none}
.lastest a:active {color: #888; text-decoration: none}
.lastest a:hover { color: #888; text-decoration: none}
</style>

<div class="lastest">
<div class="lastest_box">
<span class="ntitle"><img src='<?=$latest_skin_path?>/img/title.gif' alt="title" /></span>
<span class="more_btn"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' alt="" /></a></span>
</div>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<li>
            <?
            echo $list[$i]['icon_reply'] . " ";
            echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
                echo "{$list[$i]['subject']}";
            else
                echo "{$list[$i]['subject']}";
            echo "</a>";

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

          echo " " . $list[$i]['icon_new'];
            ?></li>
<? } ?>
<? if (count($list) == 0) { ?><li>게시물이 없습니다.</li><? } ?>
</ul>
</div>
  • 복사

댓글 전체

latest.skin.php
를 수정하는것 보단 메인페이지의 html부분을 수정하셔야할것같습니다
아래 소스를 html로 만든 페이지에 추출부분과 플래쉬가 있는 부분에 적용시켜보세요

<div>
<div style='float:left;'>
<!-- 최근게시물 추출 시작 -->
<?
echo latest("enaksu", "notice", 5, 30);
?>
<!-- //최근게시물 추출 끝 -->
</div>
<div style='float:left;'>
<!-- 플래쉬 시작 -->
<embed width="350" height="200" src="products.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></object>
<!-- //플래쉬 끝 -->
</div>
<div style='clear:both;display:none;'></div>
</div>
© SIRSOFT
현재 페이지 제일 처음으로