채택완료

최근글에 링크, 파일 이런 이미지를 수정하고 싶은데..

2018-12-26 (수) 16:29:32 2,118

http://www.dajoahe3.x-y.net/board/bbs/100.php

3554876073_1545809262.2813.gif

최근글에 나오는 링크나 새글, 파일 이런것을 수정하고 싶은데

어디에서 수정을 해야 할까요?

기존 보드처럼 아래와 같이 하고 싶거든요

3554876073_1545809285.1056.gif

1. 어느 소스를 수정해야 할까요?
2. 아니면 지금 5.3에서 최근파일, 링크, 새글... 이거 색상을 수정할려면 어찌 해야 할까요?

Copy
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>

<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->

 <div class="kor">
  <ol class="list-unstyled">
  <?php for ($i=0; $i<count($list); $i++) {  ?>
   <li class="latest">  

   <?php

    echo "<span class=\"latest-right pull-right fa-download\">&nbsp;";
    // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
    // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

    if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
    if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
    if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
    if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
    if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];

    echo "</span>";

    //echo $list[$i]['icon_reply']." ";
    echo "<a href=\"".$list[$i]['href']."\">";
    if ($list[$i]['is_notice'])
    echo "<strong>".$list[$i]['subject']."</strong>";
    else
    echo $list[$i]['subject'];

    if ($list[$i]['comment_cnt'])
    echo $list[$i]['comment_cnt'];

    echo "</a>";
    
   ?>
   </li>
  <?php }  ?>
  <?php if (count($list) == 0) { //게시물이 없을 때  ?>
   <li>게시물이 없습니다.</li>
  <?php }  ?>
  </ol>
 </div>

css

Copy
@charset "utf-8";
/* 승희아빠 */

/* 새글 스킨 (latest) */
.kor { word-wrap: break-word; word-break: keep-all; }/* 한글 줄바꿈 */
.latest {
 max-width:100%; /* Customise it accordingly */
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}
.latest-more { margin-top:6px; }
.latest-right { width:85px; text-align:right; }
.latest-hr { display:block; margin:5px 0px; }
|

답변 2개 / 댓글 1개

채택된 답변
+20 포인트

참고하세요. 최신글 스킨도 아마 같을 겁니다.

http://gnustudy.com/bbs/board.php?bo_table=skin_board&wr_id=145

$board_skin_url

위 경로는 이렇게 바꾸고..
$latest_skin_url

lib/common.lib.php

get_list 함수안에  

icon_new

icon_file

icon_link 등 이미지 주소를 변경해주세요.

답변에 대한 댓글 1개

답변 감사합니다.
꾸벅!!

혹시 5.3에서 icon_new, icon_file, icon_link
이것들 색상 수정은 어찌 해야 하는지 좀 알려주시면 안되실까요?

답변을 작성하려면 로그인이 필요합니다.