뉴스형 그룹최신글 (메인용) > 그누4 스킨

그누4 스킨

스킨의 저작권은 해당 스킨 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다.
스킨 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y
그누보드와 관련이 있지만 스킨과 빌더가 아니면 플러그인 게시판에 올려주세요.

뉴스형 그룹최신글 (메인용) 정보

최신글 뉴스형 그룹최신글 (메인용)

첨부파일

news_main.zip (18.7K) 1256회 다운로드 2007-07-13 13:00:52

본문

제가 만든 그룹최신글 중에서 가장 아끼던 건데요...
디자인도 깔끔하다고 자부하고 ㅎㅎㅎ
예전 rki사이트의 한국어페이지 뉴스메인디자인과 똑 같습니다.

제가 캡쳐해 놓은 화면이 없어서 그냥 아무거나 따서 올리는데요
설치하고 나면 진짜 만족하실 겁니다...
스킨 찾아 고생하시는 분들한테 도움이 됐으면 합니다...

스킨은 일반 최신글과 그룹최신글 형으로 나뉘어져 있는데요..
수정방법은 첨부파일에 있습니다.
제가 게시판에 자주 못오니까요...
잘 모르시는 부분은 이용자분들끼리 토론하셨으면 합니다...
추천
5

댓글 전체

안에 압축 파일을 푸시면 사용 설명서가 안에 들어가 있습니다.
수정사항을 설명해 주셨는데, 모두 수정되어있어서, 설명서 수정 사항을 적용할 필요는 없는것 같습니다.

그룹형 최신글입니다. 게시판 하나가 아니라 그룹을 지정해 주셔야 정상적으로 글과 그림이 추출됩니다.

다시 한번 좋은 스킨 감사드립니다.

최신글 추출시에는
<?=latest_group("news_main", "게시판이름", 갯수, 최대문자길이); ?>
하시면 됩니다.
맥스팀님~
설명 잘 읽었는데요.이해가 좀 안돼서 물어봅니다
=그룹형 최신글입니다. 게시판 하나가 아니라 그룹을 지정해 주셔야 정상적으로 글과 그림이 추출됩니다. =
라고 하셨는데 아래 최신글 추출에서 latest_group에 게시판이 속한 그룹명을 쓰는건가요?
예를 들어 게시판이름이 free 이고 게시판이 속한 그룹명이 abc 라면
<?=latest_abc("news_main", "free", 5, 70); ?>이렇게      적용 하는것인가요,당체 초보라서...

=최신글 추출시에는
<?=latest_group("news_main", "게시판이름", 갯수, 최대문자길이); ?>
하시면 됩니다=
죄송합니다. 이제서야 리플을 읽었네요.

우선 답변을 드리면, 제 경우에는 처음에는 한 게시판만을 지정하니까, 그림은 추출이 안되고, 글만 추출이 되더군요.

가만 자세히 설명서를 일거 보니 <?=latest (특정 게시판 최신글) 이 아니라 <?=latest_group (특정 그룹 전체) 더군요.

도담님께서 예를 드신 <?=latest_abc("news_main", "free", 5, 70); ?> 방식은 아닌것 같습니다. "latest_abc" 저도 자세히는 모르지만 그냥 <?=latest 라고 시작하면 특정 게시판에서의 최신글을 추출하는것 같고 <?=latest_group 라고 시작하면 특정 전체 그룹의 최신글을 추출하는 명령어 같습니다.

앞으 group을 바꾸시면 안되는것 같고, <?=latest_abc("news_main", "free", 5, 70); ?> 예를 드신 글로 답변 드리면,
<?=latest_group("news_main", "abc", 5, 70); ?> 처음쓰신 abc가 그룹이라고 가정할때, abc라는 그룹을 free라는 자리에 지정을 해 주셔야 정상적인 지정 그룹의 글과 사진이 올라 올것 같습니다.

만약, abc라는 지정 그룹에 free라는 게시판과 q/a라는 게시판에 최신글이 올라오면 이 스킨은 abc라는 그룹에서 free와 q/a라는 게시판의 최신글들을 모조리 최신 순서대로 추출하는 스킨인것 같습니다.

저 역시 워낙 초보라, 설명이 장황하네요.

간단히 요약하면 <?=latest_group 라는 기본 명령어는 바꾸시면 안되고, <?=latest_abc("news_main", "free" 여기 free라는고 쓰신부분을 특정 게시판이 아니라 그룹전체로 지정해 주셔야 합니다.

혹시 다른 고수님들 중에서 더 쉽게 설명해 주실수 있으신 고수분들은 리플로 설명 부탁 드립니다..(__)
메인에서 그림 출력이 되질 않네요....
 
===== index.php 소스는========
 
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="470" align="center" valign="top">
<?=latest_scroll("scroll", 12, 51,"3,25");?>
    </td>
    <td width="10" align="center" valign="top"></td>
    <td align="center" valign="top">
<?= latest("basic", z1_1, 5, 50)?>
    </td>
    </tr>
</table>
<div style='height:50px;'></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="100%" align="left" valign="top">
      <?= latest("news_main", z2_2, 7, 70)?>
    </td>
   
  </tr>
</table>
<div style='height:50px;'></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="50%" align="center" valign="top">
      <?= latest("basic", z4_1, 3, 70)?>
    </td>
    <td width="50%" align="center" valign="top">
      <?= latest("basic", z5_1, 3, 70)?>
    </td>
  </tr>
</table>
<!--한줄 방명록-->
<? include_once("$g4[path]/include/guest/guest.php");?>
<!--스피드맵-->
<div style='height:10px;'></div>
<? include_once("$g4[path]/include/speedmap/speedmap.php");?>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>

 
 
===== 해당 latest.skin.php 소스는 ====
 
 
<?
$image_height = 80; // 높이
$image_width  = 110; // 너비
?>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<table width=410 cellpadding=0 cellspacing=0 border=0>
  <? for ($k=0; $k<count($list); $k++) { ?>
  <? if ($k==0){?>
  <tr>
    <td height=25 colspan="3" valign=top><table width=100% cellpadding=0 cellspacing=0 align=center border=0>
        <tr>
          <td height=25 valign=top><?
      echo "<a href='{$list[$k][href]}' class='txtnewstopblue16-b'>";
        echo "{$list[$k][subject]}";
      echo "</a>";
    //if ($list[$k][comment_cnt]) echo " <a href=\"{$list[$k][comment_href]}\"><span style='font-family:&micro;&cedil;&iquest;&ograve;; font-size:10pt; color:#9A9A9A;'>{$list[$k][comment_cnt]}</span></a>";
    // if ($list[$k]['link']['count']) { echo "[{$list[$k]['link']['count']}]"; }
    // if ($list[$k]['file']['count']) { echo "<{$list[$k]['file']['count']}>"; }
    //echo " " . $list[$k][icon_new];
    //echo " " . $list[$k][icon_file];
    //echo " " . $list[$k][icon_link];
    //echo " " . $list[$k][icon_hot];
    //echo " " . $list[$k][icon_secret];
    ?>
          </td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="18" valign=middle><?               
  echo "<a href='{$list[$k][href]}'>";
            $image = urlencode($list[$k][file][0][file]);
          if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
        echo "<img src='$g4[path]/data/file/{$list[$k][bo_table]}/$image' width='$image_width' height='$image_height'  border=1 style='border-color:666666;' align=left>";
            } else
        if (file_exists($list[$k][file_image1])) { $gznews_img = "width='$image_width' height='$image_height' border=1 style='border-color:666666;' align=left>"; }
  ?></td>
    <td width="5" valign=middle>&nbsp;</td>
    <td width='*' valign=top style="line-height:140%;">
      <p align=left>
    <?=cut_str(strip_tags($list[$k][wr_content]),180,"...")?>
    <div align="right" valign="bottom"><a href='<?=$list[$k][href]?>' class='txtlightgray12'>
    <img src="<?=$latest_skin_path?>/img/bl_allow_gray.gif" width="15" height="9" border="0" align="absmiddle">Full Story</a></div></td>
  </tr>
 
  <!-- 경계선 -->
  <? }else{?>
  <tr>
    <td height="24" colspan=3 valign="top"><?
        echo $list[$k][icon_reply] . " ";
        echo "<a href='{$list[$k][href]}' class='txtgray-b'>";
        // if ($list[$k][is_notice])
        // echo "<span style='font-family:돋움; font-size:11pt; color:#333333;'><strong>[{$list[$k][bo_subject]}] {$list[$k][subject]}</strong></span>";
        //else
            echo "ㆍ{$list[$k][subject]}";
        echo "</a>";
        //if ($list[$k][comment_cnt])echo " <a href=\"{$list[$k][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$k][comment_cnt]}</span></a>";
        // if ($list[$k]['link']['count']) { echo "[{$list[$k]['link']['count']}]"; }
        // if ($list[$k]['file']['count']) { echo "<{$list[$k]['file']['count']}>"; }
      // echo " " . $list[$k][icon_new];
      // echo " " . $list[$k][icon_file];
      // echo " " . $list[$k][icon_link];
      // echo " " . $list[$k][icon_hot];
      // echo " " . $list[$k][icon_secret];
        ?></td>
  </tr>
  <? } ?>
  <? } ?>
  <? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
</table>

 
 
 
======== 해당 에러 페이지는 ===========
 
http://www.pointtile.co.kr/index.php
 
입니다. 
 
 
포인트 3000 걸겠습니다.  고수분들의 도움을 부탁드립니다.
 
ㅠㅠㅠ
이미지 절대 안나와요...
이미지 안나오는것 왜그러죠??..에고 30분째 소스 작업해봐도...

그래도..대한늬우스 소스 ㅋㅋ...건졌네요.~~감사합니다.
글제목 앞에 게시판명 넣어보려고 하는데요 아래처럼 해도 안보이네요.. 어찌하면될까요?

echo "[{$list[$k][bo_subject]}]&nbsp;&nbsp;&nbsp;<b><font color='#466C8A'>{$list[$k][subject]}</font></b></a>";
전체 5,850 |RSS
그누4 스킨 내용 검색

회원로그인

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