인덱스 에 게시판 새글 열람에 대해.. 정보
인덱스 에 게시판 새글 열람에 대해..본문
현재 제 인덱스 파일에 해당되는 부분입니다.
<td width="5">
<p style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="2"> </font></p>
</td>
<td> <p style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="2"> <?=latest('simple_basic', 'B03', 10,48);?>
</font></p>
</td>
<td width="5">
<p style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="2"> </font></p>
</td>
<td> <p style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="2"> <?=latest('simple_basic', 'B06', 10,48);?>
</font></p>
</td>
그리고 아래는'simple_basic'에 있는 latest.skin.php 파일의 내용입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
.latest_wrap { position:relative; }
.title_square { position:absolute; margin-top:4px; margin-left:-5px; background:#6A005F; width:20px; height:17px; }
.title_wrap { height:25px; line-height:130%; overflow:hidden; }
.title_wrap .latest_title { float:left; padding:5px 0px 4px 20px; background:#9370db; width:100%; text-align:left; }
.title_wrap .latest_title a { color:#fff; font-weight:bold; text-decoration:none; }
.title_wrap .latest_more { float:right; margin-top:-20px; margin-right:9px; }
.title_wrap .latest_more a { font:11px verdana; color:#a4a4a4; text-decoration:none; }
.latest_list { margin-top:-4px; margin-left:-20px; }
.latest_line { margin:3px 1px 3px 0px; border-top:2px dotted #e9e9e9; }
.latest_wrap ul { list-style:none; text-align:left; }
.latest_wrap ul li a:link { color:#6e6e6e; }
.latest_wrap ul li a:visited { color:#6e6e6e; }
.latest_wrap ul li a:active { color:#6e6e6e; }
.latest_wrap ul li a:hover { color:#111; text-decoration:none; }
.no_list { text-align:center; color:#6e6e6e; }
</style>
<div class="latest_wrap">
<div class="title_square"></div>
<div class="title_wrap">
<div class="latest_title"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></div>
<div class="latest_more"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>more</a></div>
</div>
<div class="latest_list">
<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>";
//if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
//if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i]['icon_secret'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_new'];
?>
</li>
<div class="latest_line"></div>
<? } ?>
<? if (count($list) == 0) { ?>
<div class="no_list">게시물이 없습니다.</div>
<? } ?>
</ul>
</div>
</div>
첫화면에 게시판 2개의 새글을 볼수 있게 만들어 두었습니다만...
두개중에 한개만 보이거나 둘다 보이지 않을때가 있습니다.
물론 새로고침하면 다시 두개다 보이거나 한개만 보이거나 둘다 보이지않습니다;;;;
왜 그런지 알 수 있을까요..? 중간에 들어가있는 overflow:hidden 는 어떤 역할을 해주는 부분인지요..?
해당되는 주소는 http://nicole-ing.com/n/ 입니다. 아직 초보라서 질문이 엉성해 죄송합니다 ㅠㅠ..
<td width="5">
<p style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="2"> </font></p>
</td>
<td> <p style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="2"> <?=latest('simple_basic', 'B03', 10,48);?>
</font></p>
</td>
<td width="5">
<p style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="2"> </font></p>
</td>
<td> <p style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="2"> <?=latest('simple_basic', 'B06', 10,48);?>
</font></p>
</td>
그리고 아래는'simple_basic'에 있는 latest.skin.php 파일의 내용입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
.latest_wrap { position:relative; }
.title_square { position:absolute; margin-top:4px; margin-left:-5px; background:#6A005F; width:20px; height:17px; }
.title_wrap { height:25px; line-height:130%; overflow:hidden; }
.title_wrap .latest_title { float:left; padding:5px 0px 4px 20px; background:#9370db; width:100%; text-align:left; }
.title_wrap .latest_title a { color:#fff; font-weight:bold; text-decoration:none; }
.title_wrap .latest_more { float:right; margin-top:-20px; margin-right:9px; }
.title_wrap .latest_more a { font:11px verdana; color:#a4a4a4; text-decoration:none; }
.latest_list { margin-top:-4px; margin-left:-20px; }
.latest_line { margin:3px 1px 3px 0px; border-top:2px dotted #e9e9e9; }
.latest_wrap ul { list-style:none; text-align:left; }
.latest_wrap ul li a:link { color:#6e6e6e; }
.latest_wrap ul li a:visited { color:#6e6e6e; }
.latest_wrap ul li a:active { color:#6e6e6e; }
.latest_wrap ul li a:hover { color:#111; text-decoration:none; }
.no_list { text-align:center; color:#6e6e6e; }
</style>
<div class="latest_wrap">
<div class="title_square"></div>
<div class="title_wrap">
<div class="latest_title"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></div>
<div class="latest_more"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>more</a></div>
</div>
<div class="latest_list">
<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>";
//if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
//if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i]['icon_secret'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_new'];
?>
</li>
<div class="latest_line"></div>
<? } ?>
<? if (count($list) == 0) { ?>
<div class="no_list">게시물이 없습니다.</div>
<? } ?>
</ul>
</div>
</div>
첫화면에 게시판 2개의 새글을 볼수 있게 만들어 두었습니다만...
두개중에 한개만 보이거나 둘다 보이지 않을때가 있습니다.
물론 새로고침하면 다시 두개다 보이거나 한개만 보이거나 둘다 보이지않습니다;;;;
왜 그런지 알 수 있을까요..? 중간에 들어가있는 overflow:hidden 는 어떤 역할을 해주는 부분인지요..?
해당되는 주소는 http://nicole-ing.com/n/ 입니다. 아직 초보라서 질문이 엉성해 죄송합니다 ㅠㅠ..
댓글 전체
게시판 제목이 길 때 타이틀부분 높이가 늘어나는것을 방지하는 목적 같습니다.
css 설정을 확인해 보세요.
최신글 2개를 동일한 css로 사용하고 있는것 같은데
class명을 새롭게 해서 설정해야 정상적으로 나올 것 같네요.
현재 홈페이지에서 사용하고 있는 css네요.
이 부분을 찾아서 설정 변경해 보세요.
.latest_wrap { position:relative; }
.title_square { position:absolute; margin-top:4px; margin-left:-5px; background:#6A005F; width:20px; height:17px; }
.title_wrap { height:25px; line-height:130%; overflow:hidden; }
.title_wrap .latest_title { float:left; padding:5px 0px 4px 20px; background:#9370db; width:100%; text-align:left; }
.title_wrap .latest_title a { color:#fff; font-weight:bold; text-decoration:none; }
.title_wrap .latest_more { float:right; margin-top:-20px; margin-right:9px; }
.title_wrap .latest_more a { font:11px verdana; color:#a4a4a4; text-decoration:none; }
.latest_list { margin-top:-4px; margin-left:-20px; }
.latest_line { margin:3px 1px 3px 0px; border-top:2px dotted #e9e9e9; }
.latest_wrap ul { list-style:none; text-align:left; }
.latest_wrap ul li a:link { color:#6e6e6e; }
.latest_wrap ul li a:visited { color:#6e6e6e; }
.latest_wrap ul li a:active { color:#6e6e6e; }
.latest_wrap ul li a:hover { color:#111; text-decoration:none; }
.no_list { text-align:center; color:#6e6e6e; }
최신글 2개를 동일한 css로 사용하고 있는것 같은데
class명을 새롭게 해서 설정해야 정상적으로 나올 것 같네요.
현재 홈페이지에서 사용하고 있는 css네요.
이 부분을 찾아서 설정 변경해 보세요.
.latest_wrap { position:relative; }
.title_square { position:absolute; margin-top:4px; margin-left:-5px; background:#6A005F; width:20px; height:17px; }
.title_wrap { height:25px; line-height:130%; overflow:hidden; }
.title_wrap .latest_title { float:left; padding:5px 0px 4px 20px; background:#9370db; width:100%; text-align:left; }
.title_wrap .latest_title a { color:#fff; font-weight:bold; text-decoration:none; }
.title_wrap .latest_more { float:right; margin-top:-20px; margin-right:9px; }
.title_wrap .latest_more a { font:11px verdana; color:#a4a4a4; text-decoration:none; }
.latest_list { margin-top:-4px; margin-left:-20px; }
.latest_line { margin:3px 1px 3px 0px; border-top:2px dotted #e9e9e9; }
.latest_wrap ul { list-style:none; text-align:left; }
.latest_wrap ul li a:link { color:#6e6e6e; }
.latest_wrap ul li a:visited { color:#6e6e6e; }
.latest_wrap ul li a:active { color:#6e6e6e; }
.latest_wrap ul li a:hover { color:#111; text-decoration:none; }
.no_list { text-align:center; color:#6e6e6e; }
여기서 무엇인가 수정해야 할 부분이 있는건가요..?
<div class="latest_wrap">
<div class="title_square"></div>
<div class="title_wrap">
<div class="latest_title"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></div>
<div class="latest_more"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>more</a></div>
</div>
<div class="latest_list">
<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>";
//if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
//if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i]['icon_secret'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_new'];
?>
</li>
<div class="latest_line"></div>
<? } ?>
<? if (count($list) == 0) { ?>
<div class="no_list">게시물이 없습니다.</div>
<? } ?>
</ul>
</div>
</div>
<div class="latest_wrap">
<div class="title_square"></div>
<div class="title_wrap">
<div class="latest_title"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></div>
<div class="latest_more"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>more</a></div>
</div>
<div class="latest_list">
<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>";
//if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
//if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i]['icon_secret'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_new'];
?>
</li>
<div class="latest_line"></div>
<? } ?>
<? if (count($list) == 0) { ?>
<div class="no_list">게시물이 없습니다.</div>
<? } ?>
</ul>
</div>
</div>