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

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

QA

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

본문

 

3554876073_1545809262.2813.gif

 

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

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

 

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

3554876073_1545809285.1056.gif

 

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

 


<?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\"> ";
    // 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


@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

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

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 등 이미지 주소를 변경해주세요.

답변을 작성하시기 전에 로그인 해주세요.
전체 116
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT