최신게시물 제목글자 중복문제.. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신게시물 제목글자 중복문제.. 정보

최신게시물 제목글자 중복문제..

본문

 
아래 최신글 스킨을 적용했는데요..
글을 쓰면 제목란에 같은 내용이 중복되어서 메인 페이지에 나타나거든요..
 
"안녕 하세요.."라고 제목을 쓰면 "안녕 하세요.." "안녕 하세요.." 
이렇게 같은 제목글이 두개로 중복되어 나타나서요..ㅠㅠ
공지글을 쓰면 공지글이 하나만 나타나여 하는데 공지글이 같은 내용이 두개 목록으로
나타나고 스킨이 왜이러지...
아래 스킨소스좀 보시고 어디가 잘못되었는지 살펴주셔요...ㅠㅠ
 
그리고 제목란에는 html적용이 안되나요??
내용 쓰기에는 html소스가 적용이 되는데 제목란에는 text만 적용되어서요
스킨 제목란에도 html소스로 쓸수 있는 방법좀 알려 주세요
 
 
latest.skin.php
----------------------------------------------------------------------------
<table width=400 border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="<?=$latest_skin_path?>/img/bg_01.gif" width="23" height="47" alt="" /></td>
    <td width="29"><img src="<?=$latest_skin_path?>/img/bg_02.gif" width="29" height="47" alt="" /></td>
    <td width="100%" height="47" valign="top" background="<?=$latest_skin_path?>/img/bg_03.gif" style="padding-left:6; padding-top:7; font-size:13px;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><b><?=$board[bo_subject]?></b></a></td>
    <td width="72" align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/bg_04.gif" alt="" width="72" height="47" border="0" /></a></td>
    <td><img src="<?=$latest_skin_path?>/img/bg_05.gif" width="22" height="47" alt="" /></td>
  </tr>
  <tr>
    <td width="23" background="<?=$latest_skin_path?>/img/bg_06.gif"> </td>
    <td colspan="3" align="center" background="<?=$latest_skin_path?>/img/bg_07.gif"><table width="<?=$board[bo_table_width]?>" border="0" cellpadding="0" cellspacing="0">
      <? for ($i=0; $i<count($list); $i++) { ?>
      <tr>
        <td height="17" valign="middle" style='word-break:break-all; padding-left:5'><font color='#666666'><b>
          <?=$list[$i][datetime2]?>
         </B></font>
            <?
        echo $nobr_begin;
        echo $list[$i][icon_reply];
         echo "<a href='{$list[$i][href]}'>";
              if ($list[$i][icon_new])
               {
            echo "<font style='color:#666666'> {$list[$i][subject]}";
  }
   else
   if ($list[$i][is_notice])
            {
   echo "<font style='font-size:9pt;color:#ffffff'>{$list[$i][subject]}</b></font>";
   }
 

             if ($list[$i][comment_cnt])
                {
            echo "{$list[$i][subject]}";
       echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:8pt; color:#666666;'><b>{$list[$i][comment_cnt]}</b></span></a>";
     }
  else
            {
   echo "{$list[$i][subject]}";
   }
          echo "</a>";   
      echo $nobr_end;
        ?></td>
      </tr>
      <tr>
        <td height="1" colspan="2" background='<?=$latest_skin_path?>/img/line.gif'></td>
      </tr>
      <? } ?>
      <? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>등록된 내용이 없습니다.</td></tr>"; } ?>
    </table></td>
    <td width="22" background="<?=$latest_skin_path?>/img/bg_08.gif"> </td>
  </tr>
  <tr>
    <td width="23"><img src="<?=$latest_skin_path?>/img/bg_09.gif" width="23" height="41" alt="" /></td>
    <td width="29"><img src="<?=$latest_skin_path?>/img/bg_10.gif" width="29" height="41" alt="" /></td>
    <td width="100%" height="41" background="<?=$latest_skin_path?>/img/bg_11.gif"> </td>
    <td width="72"><img src="<?=$latest_skin_path?>/img/bg_12.gif" width="72" height="41" alt="" /></td>
    <td width="22"><img src="<?=$latest_skin_path?>/img/bg_13.gif" width="22" height="41" alt="" /></td>
  </tr>
</table>

댓글 전체

echo $nobr_begin;
        echo $list[$i][icon_reply];
        echo "<a href='{$list[$i][href]}'>";
              if ($list[$i][icon_new])
              {
            echo "<font style='color:#666666'> {$list[$i][subject]}";
  }
  else
  if ($list[$i][is_notice])
            {
  echo "<font style='font-size:9pt;color:#ffffff'>{$list[$i][subject]}</b></font>";
  }
 

            if ($list[$i][comment_cnt])
                {
            echo "{$list[$i][subject]}";
      echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:8pt; color:#666666;'><b>{$list[$i][comment_cnt]}</b></span></a>";
    }
  else
            {
  echo "{$list[$i][subject]}";
  }
          echo "</a>"; 
      echo $nobr_end;

맨위쪽에 열린  <a>태그가 맨 마지막에서 닫히네요.

 echo "<a href='{$list[$i][href]}'>";
...
  echo "<font style='font-size:9pt;color:#ffffff'>{$list[$i][subject]}</b></font>";
->    echo "<font style='font-size:9pt;color:#ffffff'>{$list[$i][subject]}</b></font></a>";

이행에서 한번 닫아주시면 될듯
맨아래 echo "</a>"; 위에 링크 하나 더 걸어주시고요.

스킨 제목에 색쓰는 건 다음 링크 참조해 보세요.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=7698&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%C1%A6%B8%F1&sop=and
공지글이 여전히 두개로 중복되어 나타납니다..
짜증나는 스킨이네요...팍 버려버릴까...ㅠㅠ

공지글 왜 두개로 같은 내용이 중복되어 나타나나요..?
메인화면의 최신글 제목란에도 두개로
연결된 스킨에는 공지글이 하나만 떠야 하는데
왜 다음 카페 게시판처럼 공지글이 두개 중복되어 나타나는것과 똑같이 나타납니다

정확한 해결법좀 주셔요...제발~~
코멘트 부분에 제목이 한번 더 출력되게 되어있네요.
그리고 앞에는 <A> 태그가 제대로 안닫혀 있고요.
아래 소스 위치에 그대로 따서 복사하세요.
  <?
        echo $nobr_begin;
        echo $list[$i][icon_reply];
        echo "<a href='{$list[$i][href]}'>";
              if ($list[$i][icon_new])
              {
            echo "<font style='color:#666666'> {$list[$i][subject]} </a>";
  } else if ($list[$i][is_notice]) {
  echo "<font style='font-size:9pt;color:#ffffff'>{$list[$i][subject]}</b></font>";
  }
 

            if ($list[$i][comment_cnt])
      echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:8pt; color:#666666;'><b>{$list[$i][comment_cnt]}</b></span></a>";
      echo $nobr_end;
        ?></td>
      </tr>
      <tr>
        <td height="1" colspan="2" background='<?=$latest_skin_path?>/img/line.gif'></td>
      </tr>
      <? } ?>
감사합니다,, 위의 알려주신 방법은 잘못되었네요ㅡ.ㅡ
다른분께서 알려주신 방법대로 별도로 해결은 했고요..위의 a태그니 코멘트 출력부분이 아니었습니다..
그래도 답변은 채택해 드렸어요..^^
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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