채택완료
최신글 스킨에서 <?=$file[0][subject]?> 으로 뽑은 글에 관해서...
<?=$list[$i][subject]?>로 뽑은 글 경우 <?=$list[$i][datetime]?>로 날짜를 뽑는 게 가능한데,
$file[0]으로 된 이미지 있는 글을 뽑을 땐 <?=$file[0][datetime]?>로 날짜를 뽑는 게 불가능 하더군요.
$file[0]으로 된 뽑은 글은 어떻게 날짜를 뽑나요? 또, 글 제목이 아닌 글 내용은 어떤 출력 코드로 뽑는지..
|
답변 2개 / 댓글 3개
채택된 답변
+20 포인트
2014-03-12 (수) 10:53:56
<?=$file[0][bf_datetime]?> 으로 해보세요.......
답변에 대한 댓글 2개
2014-03-12 (수) 10:32:49
제가 몰라서 그럴수도 있지만
<?=$file[0][datetime]?>
이건 본적이 없는거 같네요.
보통 첫번째 첨부이미지의 날짜를 뽑을땐 아래처럼 쓰지 않나요?
<?=$list[$i][file][0][datetime]?>
즉 리스트의 몇번째의 게시물에서 화일중 몇번째의 날짜를 뽑는다니까요.......
답변에 대한 댓글 1개
2014-03-12 (수) 10:44:13
이미지가 있는 글 뽑아오기 소스가 아래와 같습니다.
<?=$list[$i][file][0][datetime]?> 넣어도 날짜는 못 뽑아오는데요..^^;;
<? if ($is_img && $file[0]) { ?>
<tr>
<td width=120px height=120px align=center class=file>
<a href="<?=$file[0][href]?>">
<div class="file-img"><img src="<?=$file[0][path]?>" class="file-img"></div>
<div class="file-subject"><span class="date"><?=$list[$i][file][0][datetime]?></span> <?=$file[0][subject]?></div>
</a>
</td>
</tr>
<? } ?>
<?=$list[$i][file][0][datetime]?> 넣어도 날짜는 못 뽑아오는데요..^^;;
<? if ($is_img && $file[0]) { ?>
<tr>
<td width=120px height=120px align=center class=file>
<a href="<?=$file[0][href]?>">
<div class="file-img"><img src="<?=$file[0][path]?>" class="file-img"></div>
<div class="file-subject"><span class="date"><?=$list[$i][file][0][datetime]?></span> <?=$file[0][subject]?></div>
</a>
</td>
</tr>
<? } ?>
답변을 작성하려면 로그인이 필요합니다.