http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=108716&sca=%EB%8B%AC%EB%A0%A5&page=2
(사용중인 훈남님의 "[달력] 간단한 스케줄링 달력입니다" 스킨 url)
보통 새글일 경우 글목록 제목옆에 뉴아이콘이 나오잖아요.
근데, 현재 사용중인 달력스킨에서 뉴아이콘이 나오지 않습니다.
위 그림처럼 제목옆에 뉴아이콘이 나오게 하고 싶습니다.
위 스킨에서는 list.skin.php를 사용하지 않고 대신 schedule.php 파일을 사용하는거 같습니다.
보통 list.skin.php 에서 제목(new icon)나오는 부분 소스
===============================================================================
if ($list[$i][is_notice])
echo "<a href='{$list[$i][href]}'><span class='notice'>{$list[$i][subject]}</span></a>";
else
echo "<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class='comment'>{$list[$i][comment_cnt]}</span></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_new];
=========================================================================================
사용중인 달력스킨의 schedule.php 에서 제목(new icon)나오는 부분의 소스
=========================================================================================
$sql = " select wr_subject, wr_id, wr_name, wr_3 from $g4[write_prefix]$bo_table where wr_1 <= '$current_ymd' and wr_2 >= '$current_ymd' and wr_is_comment = 0 order by wr_num ";
$result = sql_query($sql);
$num = @mysql_num_rows($result);
if ($num) {
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&sfl=wr_1&stx=$current_ymd');\" title='일정건수 : {$row[cnt]}건'>";
echo $day;
echo "</a>";
while ($row=sql_fetch_array($result)) {
echo "<div class='subject' id='".$row[wr_id]."'>";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$row[wr_id]'>";
echo "<font style='color:#".$row[wr_3].";'>".$row[wr_subject]."</font>";
echo "</a>";
echo "</div>";
}
==========================================================================================
위처럼 일반적인 lisk_skin.php와는 소스가 많이 틀립니다.
전문적인 지식이 없다보니 수정하기가 힘드네요. --;
검색도 해보고 질문도 한번 올렸었는데, 해결이 안되어 다시 질문 올립니다.
도와주세요. ~~
(사용중인 훈남님의 "[달력] 간단한 스케줄링 달력입니다" 스킨 url)
보통 새글일 경우 글목록 제목옆에 뉴아이콘이 나오잖아요.
근데, 현재 사용중인 달력스킨에서 뉴아이콘이 나오지 않습니다.
위 그림처럼 제목옆에 뉴아이콘이 나오게 하고 싶습니다.
위 스킨에서는 list.skin.php를 사용하지 않고 대신 schedule.php 파일을 사용하는거 같습니다.
보통 list.skin.php 에서 제목(new icon)나오는 부분 소스
===============================================================================
if ($list[$i][is_notice])
echo "<a href='{$list[$i][href]}'><span class='notice'>{$list[$i][subject]}</span></a>";
else
echo "<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class='comment'>{$list[$i][comment_cnt]}</span></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_new];
=========================================================================================
사용중인 달력스킨의 schedule.php 에서 제목(new icon)나오는 부분의 소스
=========================================================================================
$sql = " select wr_subject, wr_id, wr_name, wr_3 from $g4[write_prefix]$bo_table where wr_1 <= '$current_ymd' and wr_2 >= '$current_ymd' and wr_is_comment = 0 order by wr_num ";
$result = sql_query($sql);
$num = @mysql_num_rows($result);
if ($num) {
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&sfl=wr_1&stx=$current_ymd');\" title='일정건수 : {$row[cnt]}건'>";
echo $day;
echo "</a>";
while ($row=sql_fetch_array($result)) {
echo "<div class='subject' id='".$row[wr_id]."'>";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$row[wr_id]'>";
echo "<font style='color:#".$row[wr_3].";'>".$row[wr_subject]."</font>";
echo "</a>";
echo "</div>";
}
==========================================================================================
위처럼 일반적인 lisk_skin.php와는 소스가 많이 틀립니다.
전문적인 지식이 없다보니 수정하기가 힘드네요. --;
검색도 해보고 질문도 한번 올렸었는데, 해결이 안되어 다시 질문 올립니다.
도와주세요. ~~
댓글 2개
위 schedule.php 소스중..
$sql = .... 에서 wr_3 뒤에 ( , wr_datetime ) 괄호 안을 넣고..
while ($row........){ 다음줄에
$icon_new = "";
if ($row['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - ($board['bo_new'] * 3600)))
$icon_new = "<img src='$board_skin_path/img/icon_new.gif' alt='' />";
요넘을 붙여넣고...
</font>"; 끝나는 부분을
</font>" . $icon_new;
요넘을 붙여넣으세요.
될런지는 모르겠군요;
$sql = .... 에서 wr_3 뒤에 ( , wr_datetime ) 괄호 안을 넣고..
while ($row........){ 다음줄에
$icon_new = "";
if ($row['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - ($board['bo_new'] * 3600)))
$icon_new = "<img src='$board_skin_path/img/icon_new.gif' alt='' />";
요넘을 붙여넣고...
</font>"; 끝나는 부분을
</font>" . $icon_new;
요넘을 붙여넣으세요.
될런지는 모르겠군요;
게시글 목록
| 번호 | 제목 |
|---|---|
| 284348 | |
| 284336 | |
| 284333 | |
| 284332 | |
| 284320 | |
| 284318 | |
| 284316 | |
| 284313 | |
| 284307 | |
| 284306 | |
| 284303 | |
| 284298 | |
| 284296 | |
| 284290 | |
| 284286 | |
| 284280 | |
| 284277 | |
| 284272 | |
| 284261 | |
| 284259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기