제 스킨에 있는 수정 사항 중에
목록이 쭉~ 나올때 을 년월로 구분해서 보여주는데
이 부분을 땡구 님이 문의를 하시길래 여기 적습니다.
현재 제 홈피는 개인적으로 계속 수정을 하는지라 아래 있는 배포본에 없는 기능이 현재 들어간 것도 있습니다.
제가 구현(?) 한 것중 기능이 필요하신 분은 요청을 하시면 요점만 뽑아드릴께요.. {{으힛}}
땡구 님이 요청하신 목록 분리 부분은.. index.php 파일에서
if($layout_gubun == "general") {
이 부분을 찾아보세요.
대략 380번째 줄 정도에 있을것 같네요.
제 파일이 수정된거라 다른 분들과 줄수가 맞지 않을수 있습니다.
그 앞에
$xDate="";
$xYearMonth="";
이 두줄을 추가해주시고
그 몇줄 아래 보시면
$p2_rp = str_replace("[# # _ list_rep_line_##]", "", $p2_rp);
이 부분이 있을겁니다.
이 부분을
if ($xYearMonth==get_timevalue_($regdate))
{
$p2_rp = str_replace("[# # _ list_rep_line_##]", "", $p2_rp);
}
else
{
$xYearMonth=get_timevalue_($regdate);
$p2_rp = str_replace("[# # _ list_rep_line_##]","<hr width=100%>", $p2_rp);
}
if ($xDate==get_timevalue1($regdate))
{
$p2_rp = str_replace("[# # _ list_rep_regdate_##]", "", $p2_rp);
}
else
{
$xDate=get_timevalue1($regdate);
$p2_rp = str_replace("[# # _ list_rep_regdate_##]",get_timevalue1($regdate), $p2_rp);
}
이렇게 수정합니다.
그리고 스킨 파일에서 <s_list_rep> 이 부분을 찾습니다.
<td class="h1" width=80>[# # _ list_rep_regdate_##]</td>
<td> <a href="[# # _ list_rep_link_##]">[# # _ list_rep_title_##] <font class="h1">[# # _ list_rep_rp_cnt_##]</font></a></td>
이런 내용이 있으면
<tr>
<td colspan=2>[# # _ list_rep_line_##]</td>
</tr>
<tr>
<td class="h1" width=80>[# # _ list_rep_regdate_##]</td>
<td> <a href="[# # _ list_rep_link_##]">[# # _ list_rep_title_##] <font class="h1">[# # _ list_rep_rp_cnt_##]</font></a></td>
</tr>
이렇게 수정합니다.
이게 답니다. {{윙크}}