최근게시물에 날짜 뜨게 하고 싶습니다 정보
최근게시물에 날짜 뜨게 하고 싶습니다본문
배추 라이트 사용중인데요
배추라이트 기본 최근게시물이 시간 뜨는게 없어서
시간 뜨는 부분을 추가하고 싶은데요
그 부분을 추가하니까
글 제목이랑 코멘트 바로 뒤에 시간이 뜨더라구요
우측으로 정렬시켜서 하고 싶은데..ㅠㅠ
도움주시면 감사하겠습니다!!ㅠㅠ
-----이하 소스-----
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$style_name = "mw-latest-list-$bo_table-$rows-$subject_len";
?>
<style type="text/css">
.<?=$style_name?> { border:1px solid #e1e1e1; text-align:left; }
.<?=$style_name?> .subject { background:url(<?=$latest_skin_path?>/img/box-bg.gif); height:24px; margin:0 0 7px 0; }
.<?=$style_name?> .subject .bo_table { margin:5px 0 0 5px; float:left; }
.<?=$style_name?> .subject .bo_table a { font-size:12px; color:#555; font-weight:bold; letter-spacing:-1px; text-decoration:none; }
.<?=$style_name?> .subject .list { margin:5px 5px 0 0; float:right; }
.<?=$style_name?> .subject .list a { font-weight:normal; font-size:11px; letter-spacing:-1px; color:#555; }
.<?=$style_name?> ul { margin:5px 0 7px 10px; padding:0; list-style:none; }
.<?=$style_name?> ul li { margin:0; padding:0 0 0 7px; background:url(<?=$latest_skin_path?>/img/dot.gif) no-repeat 0 5px; height:20px; }
.<?=$style_name?> ul li a:hover { color:#438A01; text-decoration:underline; }
.<?=$style_name?> .file-img { width:100px; height:65px; border:1px solid #e2e2e2; }
.<?=$style_name?> .file-subject { line-height:15px; font-size:11px; letter-spacing:-1px; width:100px; height:28px; margin:3px 0 0 0; overflow:hidden; }
.<?=$style_name?> .file a:hover { color:#438A01; text-decoration:underline; }
.<?=$style_name?> .line { font-size:1px; line-height:1px; height:1px; border-bottom:1px dotted #e1e1e1; margin-bottom:10px;}
.<?=$style_name?> .comment { font-size:10px; color:#FF6600; font-family:dotum; }
</style>
<div class="<?=$style_name?>">
<div style="border:1px solid #fff">
<div class="subject">
<div class="bo_table"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=$board[bo_subject]?></a></div>
<div class="list"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><img src="<?=$latest_skin_path?>/img/l.gif" aling="absmiddle"> 목록</a></div>
</div>
<? for ($a=0; $a<$rows/5; $a++) {?>
<? if ($a > 0) echo "<div class='line'></div>"; ?>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<? if ($is_img && $file[$a]) { ?>
<td width=120 align=center class=file>
<a href="<?=$file[$a][href]?>"><div><img src="<?=$file[$a][path]?>" class="file-img"></div> <div class="file-subject"><?=$file[$a][subject]?></div></a>
</td>
<? } ?>
<td valign=top>
<ul>
<?
$s = $a*5;
$e = ($a+1)*5;
$r = rand($s, $e-1);
for ($i=$s; $i<$e; $i++) {
if ($r == $i) $list[$i][subject] = $list[$i][subject];
if ($list[$i][icon_secret]) $list[$i][subject] .= " " . $list[$i][icon_secret];
//if ($list[$i][icon_file]) $list[$i][subject] .= " " . $list[$i][icon_file];
if ($list[$i][icon_new]) $list[$i][subject] .= " " . $list[$i][icon_new];
//if ($list[$i][icon_hot]) $list[$i][subject] .= " " . $list[$i][icon_hot];
if ($member[mb_id]) {
$list[$i][subject] = str_replace("{닉네임}", $member[mb_nick], $list[$i][subject]);
$list[$i][subject] = str_replace("{별명}", $member[mb_nick], $list[$i][subject]);
} else {
$list[$i][subject] = str_replace("{닉네임}", "회원", $list[$i][subject]);
$list[$i][subject] = str_replace("{별명}", "회원", $list[$i][subject]);
}
?>
<li><a href="<?=$list[$i][href]?>"><?=$list[$i][subject]?> <span class="comment"><?=$list[$i][comment_cnt]?></span></a></li>
<? } ?>
</ul>
</td>
</tr>
</table>
<? } ?>
</div>
</div>
배추라이트 기본 최근게시물이 시간 뜨는게 없어서
시간 뜨는 부분을 추가하고 싶은데요
그 부분을 추가하니까
글 제목이랑 코멘트 바로 뒤에 시간이 뜨더라구요
우측으로 정렬시켜서 하고 싶은데..ㅠㅠ
도움주시면 감사하겠습니다!!ㅠㅠ
-----이하 소스-----
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$style_name = "mw-latest-list-$bo_table-$rows-$subject_len";
?>
<style type="text/css">
.<?=$style_name?> { border:1px solid #e1e1e1; text-align:left; }
.<?=$style_name?> .subject { background:url(<?=$latest_skin_path?>/img/box-bg.gif); height:24px; margin:0 0 7px 0; }
.<?=$style_name?> .subject .bo_table { margin:5px 0 0 5px; float:left; }
.<?=$style_name?> .subject .bo_table a { font-size:12px; color:#555; font-weight:bold; letter-spacing:-1px; text-decoration:none; }
.<?=$style_name?> .subject .list { margin:5px 5px 0 0; float:right; }
.<?=$style_name?> .subject .list a { font-weight:normal; font-size:11px; letter-spacing:-1px; color:#555; }
.<?=$style_name?> ul { margin:5px 0 7px 10px; padding:0; list-style:none; }
.<?=$style_name?> ul li { margin:0; padding:0 0 0 7px; background:url(<?=$latest_skin_path?>/img/dot.gif) no-repeat 0 5px; height:20px; }
.<?=$style_name?> ul li a:hover { color:#438A01; text-decoration:underline; }
.<?=$style_name?> .file-img { width:100px; height:65px; border:1px solid #e2e2e2; }
.<?=$style_name?> .file-subject { line-height:15px; font-size:11px; letter-spacing:-1px; width:100px; height:28px; margin:3px 0 0 0; overflow:hidden; }
.<?=$style_name?> .file a:hover { color:#438A01; text-decoration:underline; }
.<?=$style_name?> .line { font-size:1px; line-height:1px; height:1px; border-bottom:1px dotted #e1e1e1; margin-bottom:10px;}
.<?=$style_name?> .comment { font-size:10px; color:#FF6600; font-family:dotum; }
</style>
<div class="<?=$style_name?>">
<div style="border:1px solid #fff">
<div class="subject">
<div class="bo_table"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=$board[bo_subject]?></a></div>
<div class="list"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><img src="<?=$latest_skin_path?>/img/l.gif" aling="absmiddle"> 목록</a></div>
</div>
<? for ($a=0; $a<$rows/5; $a++) {?>
<? if ($a > 0) echo "<div class='line'></div>"; ?>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<? if ($is_img && $file[$a]) { ?>
<td width=120 align=center class=file>
<a href="<?=$file[$a][href]?>"><div><img src="<?=$file[$a][path]?>" class="file-img"></div> <div class="file-subject"><?=$file[$a][subject]?></div></a>
</td>
<? } ?>
<td valign=top>
<ul>
<?
$s = $a*5;
$e = ($a+1)*5;
$r = rand($s, $e-1);
for ($i=$s; $i<$e; $i++) {
if ($r == $i) $list[$i][subject] = $list[$i][subject];
if ($list[$i][icon_secret]) $list[$i][subject] .= " " . $list[$i][icon_secret];
//if ($list[$i][icon_file]) $list[$i][subject] .= " " . $list[$i][icon_file];
if ($list[$i][icon_new]) $list[$i][subject] .= " " . $list[$i][icon_new];
//if ($list[$i][icon_hot]) $list[$i][subject] .= " " . $list[$i][icon_hot];
if ($member[mb_id]) {
$list[$i][subject] = str_replace("{닉네임}", $member[mb_nick], $list[$i][subject]);
$list[$i][subject] = str_replace("{별명}", $member[mb_nick], $list[$i][subject]);
} else {
$list[$i][subject] = str_replace("{닉네임}", "회원", $list[$i][subject]);
$list[$i][subject] = str_replace("{별명}", "회원", $list[$i][subject]);
}
?>
<li><a href="<?=$list[$i][href]?>"><?=$list[$i][subject]?> <span class="comment"><?=$list[$i][comment_cnt]?></span></a></li>
<? } ?>
</ul>
</td>
</tr>
</table>
<? } ?>
</div>
</div>
댓글 전체
<?=$list[$i]['datetime']?>
원하시는곳에 추가하시면 됩니당
원하시는곳에 추가하시면 됩니당
네 그건 아는데 이부분을 저 위 소스에 추가하면
제목(코멘트) 바로 다음에 날짜가 나오거든요
예를들자면
테스트 (3) 13.06.20
테스트테스 (4) 13.06.20
테스트임당 (4) 13.06.20
이런식으로 나오는거를
테스트 (3) 13.06.20
테스트테스 (4) 13.06.20
테스트임당 (4) 13.06.20
이렇게 하고싶어서요
제목(코멘트) 바로 다음에 날짜가 나오거든요
예를들자면
테스트 (3) 13.06.20
테스트테스 (4) 13.06.20
테스트임당 (4) 13.06.20
이런식으로 나오는거를
테스트 (3) 13.06.20
테스트테스 (4) 13.06.20
테스트임당 (4) 13.06.20
이렇게 하고싶어서요
<li><a href="<?=$list[$i][href]?>"><?=$list[$i][subject]?> <span class="comment"><?=$list[$i][comment_cnt]?></span></a></li>
이부분에 추가하려고 하시는지요?
그렇다면, 약간의 마크업과 css 수정이 필요할 거 같습니다.
마크업을
<li><a href="<?=$list[$i][href]?>"><span class="subject_area"><?=$list[$i][subject]?> <span class="comment"><?=$list[$i][comment_cnt]?></span></span></a></li>
과 같은 형식으로 바꾸신 후,
스타일부분에
.<?=$style_name?> .comment { font-size:10px; color:#FF6600; font-family:dotum; }
위에
.<?=$style_name?> .subject { display:inline-block; width:(원하는간격)px; zoom:1; *display:inline; }
과 같이 추가하여 주시기 바랍니다.
css 수정은 상황에 따라 틀어짐이 발생할수 있는 것이 다르기 때문에 완벽한 방법이라고 할수 없습니다.
때에 따라 다릅니다.
따라서 위와같은 방법이 문제가 있을수 있습니다.
위의 방법이 가장 간단한 방법이지만, 문제가 따를시에는
마크업을
<li class="con_wrap"><a href="<?=$list[$i][href]?>"><?=$list[$i][subject]?> <span class="comment"><?=$list[$i][comment_cnt]?></span></a><span class="con_date"><?=$list[$i]['datetime']?></span></li>
와 같이 변경해주시고,
.<?=$style_name?> .con_wrap { position:relative; }
.<?=$style_name?> .con_date { position:absolute; top:5px; right:0; }
의 스타일을 추가해주시기 바랍니다.
이때 .<?=$style_name?> .con_date { position:absolute; top:5px; right:0; } 에서 top: 과 right: 값의 px는 화면을 보고 미세하게 위치조정을 해주시면 되겠습니다.
위 두가지 방법을 하고서도 되지 않는다면, 적용하신 후 URL을 보여주시면 또 다른 답변을 드리겠습니다.
이부분에 추가하려고 하시는지요?
그렇다면, 약간의 마크업과 css 수정이 필요할 거 같습니다.
마크업을
<li><a href="<?=$list[$i][href]?>"><span class="subject_area"><?=$list[$i][subject]?> <span class="comment"><?=$list[$i][comment_cnt]?></span></span></a></li>
과 같은 형식으로 바꾸신 후,
스타일부분에
.<?=$style_name?> .comment { font-size:10px; color:#FF6600; font-family:dotum; }
위에
.<?=$style_name?> .subject { display:inline-block; width:(원하는간격)px; zoom:1; *display:inline; }
과 같이 추가하여 주시기 바랍니다.
css 수정은 상황에 따라 틀어짐이 발생할수 있는 것이 다르기 때문에 완벽한 방법이라고 할수 없습니다.
때에 따라 다릅니다.
따라서 위와같은 방법이 문제가 있을수 있습니다.
위의 방법이 가장 간단한 방법이지만, 문제가 따를시에는
마크업을
<li class="con_wrap"><a href="<?=$list[$i][href]?>"><?=$list[$i][subject]?> <span class="comment"><?=$list[$i][comment_cnt]?></span></a><span class="con_date"><?=$list[$i]['datetime']?></span></li>
와 같이 변경해주시고,
.<?=$style_name?> .con_wrap { position:relative; }
.<?=$style_name?> .con_date { position:absolute; top:5px; right:0; }
의 스타일을 추가해주시기 바랍니다.
이때 .<?=$style_name?> .con_date { position:absolute; top:5px; right:0; } 에서 top: 과 right: 값의 px는 화면을 보고 미세하게 위치조정을 해주시면 되겠습니다.
위 두가지 방법을 하고서도 되지 않는다면, 적용하신 후 URL을 보여주시면 또 다른 답변을 드리겠습니다.