바다님 최신글 스킨 확장 방법 좀 알려주세요. > 그누4 질문답변

그누4 질문답변

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

바다님 최신글 스킨 확장 방법 좀 알려주세요. 정보

바다님 최신글 스킨 확장 방법 좀 알려주세요.

본문

 
바다님의 최신글 스킨입니다.
구현은 잘 되었구요...
 
다른 게시판 4개를 더 생성해서 사용하려면 어디를 수정해야 하나요?
tap_menu.php 파일인데요
tap_menu2.php 를 만들어 올려서 사용하려 합니다.
 
- 내용
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//아래 4개부분 테이블명 입력요 -> co1...4 지우고...
$my_table1 = 'notice';  //알림(공지)
$my_table2 = 'qna';  //질문답변
$my_table3 = 'free';  //자유게시판
$my_table4 = 'data';  //자료실
?>
<SCRIPT type=text/javascript>
<!--
 old_debate='1';
 function showLayer(objid){
  document.getElementById("debate"+old_debate).style.display="none";
  document.getElementById("debate"+old_debate+"#1").style.display="";
  document.getElementById("debate"+objid+"#1").style.display="none";
  document.getElementById("debate"+objid).style.display="";
  document.getElementById("debate_content"+old_debate).style.display="none";
  document.getElementById("debate_content"+objid).style.display="";
  old_debate=objid;
 }
//-->
</SCRIPT>

<table width="304" border="0" cellspacing="0" cellpadding="0">
 <tr>
<td>
<table width="304" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="76">
   <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate1><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table1?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n1_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate1#1  style="DISPLAY: none;"><A href="javascript:showLayer('1')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n1.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
   </TR></TABLE></td>
    <td width="76">
         <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate2  style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table2?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n2_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate2#1><A href="javascript:showLayer('2')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="76">
         <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate3 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table3?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n3_2.gif' width=76 height=27 border=0 align=absmiddle></A> </TD>
                <TD id=debate3#1><A href="javascript:showLayer('3')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n3.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="76">
         <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate4 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table4?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate4#1><A href="javascript:showLayer('4')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
  </tr>
</table>
<table width="304" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
   <tr>
       <td bgcolor='#D5D3E8'></td>
     <td bgcolor='#FFFFFF' valign='top'>
   
   <DIV id=debate_content1>
   <?=latest('basic_tap',$my_table1, 5, 50);?></DIV>
   
   <DIV id=debate_content2 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table2, 5, 50);?></DIV>
   
   <DIV id=debate_content3 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table3, 5, 50);?></DIV>
   
   <DIV id=debate_content4 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table4, 5, 50);?></DIV></td>
         <td bgcolor='#D5D3E8'></td>
   </tr>
   <tr><td colspan='3' bgcolor='#D5D3E8'></td></tr>
</table></td></tr>
</table>
 

 
table 이 1~4 여서 5~8까지 만들어 이곳저곳 고쳐봤는데 영 안풀리네요...
아시는분 답변 좀 주세요~

댓글 전체

일단 8개짜리로 수정해서 올려 드립니다..
주석에 없는 이미지부분도 추가로 수정하세요..^^



<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//아래 8개부분 테이블명 입력요 -> co1...4 지우고...
$my_table1 = 'notice';  //알림(공지)
$my_table2 = 'qna';  //질문답변
$my_table3 = 'free';  //자유게시판
$my_table4 = 'data';  //자료실
$my_table5 = 'notice';  //알림(공지)
$my_table6 = 'qna';  //질문답변
$my_table7 = 'free';  //자유게시판
$my_table8 = 'data';  //자료실
?>
<SCRIPT type=text/javascript>
<!--
 old_debate='1';
 function showLayer(objid){
  document.getElementById("debate"+old_debate).style.display="none";
  document.getElementById("debate"+old_debate+"#1").style.display="";
  document.getElementById("debate"+objid+"#1").style.display="none";
  document.getElementById("debate"+objid).style.display="";
  document.getElementById("debate_content"+old_debate).style.display="none";
  document.getElementById("debate_content"+objid).style.display="";
  old_debate=objid;
 }
//-->
</SCRIPT>

<table width="608" border="0" cellspacing="0" cellpadding="0">
 <tr>
<td>
<table width="608" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="76">
  <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate1><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table1?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n1_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate1#1  style="DISPLAY: none;"><A href="javascript:showLayer('1')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n1.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
  </TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate2  style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table2?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n2_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate2#1><A href="javascript:showLayer('2')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate3 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table3?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n3_2.gif' width=76 height=27 border=0 align=absmiddle></A> </TD>
                <TD id=debate3#1><A href="javascript:showLayer('3')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n3.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate4 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table4?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate4#1><A href="javascript:showLayer('4')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate5 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table5?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate5#1><A href="javascript:showLayer('5')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate6 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table6?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate6#1><A href="javascript:showLayer('6')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate7 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table7?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate7#1><A href="javascript:showLayer('7')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate8 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table8?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate8#1><A href="javascript:showLayer('8')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
  </tr>
</table>
<table width="608" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
  <tr>
      <td bgcolor='#D5D3E8'></td>
    <td bgcolor='#FFFFFF' valign='top'>
 
  <DIV id=debate_content1>
  <?=latest('basic_tap',$my_table1, 5, 50);?></DIV>
 
  <DIV id=debate_content2 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table2, 5, 50);?></DIV>
 
  <DIV id=debate_content3 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table3, 5, 50);?></DIV>
 
  <DIV id=debate_content4 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table3, 5, 50);?></DIV>
 
  <DIV id=debate_content5 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table3, 5, 50);?></DIV>
 
  <DIV id=debate_content6 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table3, 5, 50);?></DIV>
 
  <DIV id=debate_content7 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table3, 5, 50);?></DIV>
 
  <DIV id=debate_content8 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table4, 5, 50);?></DIV></td>
        <td bgcolor='#D5D3E8'></td>
  </tr>
  <tr><td colspan='3' bgcolor='#D5D3E8'></td></tr>
</table></td></tr>
</table>
우선 감사... ^^;

위에것은 하나에 8개 게시판이잖아요.
제 질문은 4개짜리 최신글 게시판을 복사해서 쓰는거거든요...
비슷하게 확장해봤는데 뭐가 틀린지 자꾸 에러나더라구염...

님... 죄송한데 table 겹치지 않게 또 하나 생성해주심 안될까요?
몇시간을 허비한터라 에혀...
게시판 4개짜리가 두개 필요하다는 말씀이신가요?

처음 소스를 각각 다른 이름의 폴더를 만들어서 폴더에 넣으시고 각각 하나씩 불러오도록 하면 되지요...^^
넵 맞습니다.
바다님 소스로 4개짜리 2개를 쓰려고 합니다.

$my_table1~4 겹쳐서 작동이 안하지 않나요?

위 소스가
tap_menu.php 파일인데요
tap_menu2.php 를 만들어 올려서 사용하려 하거든요.
그럼 두번째것은 $my_table5~8까지 쓰면 될것 같아서 수정해봤더니 잘 못하다보니 계속 오류가 나더라구요.
어떤 부분들을 수정해줘야할지 몰라서요...
폴더도 2개 만들어할까요? 흠...

tap_menu.php는 그누보드 폴더안에 있구요.
skin 폴더안에 latest 폴더안에 basic_tab 폴더가 있거든요. 그것도 복사해야하나요?
이 부분은 tap_menu.php의 형식에 따라가기만 하는것 같아서 복사 안했습니다.


tap_menu2.php 의 소스를
여기까지 수정했습니다.
더 만져도 보았는데 에러가 더 심하게 나서요.
한번 봐 주시겠어요?

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

//아래 4개부분 테이블명 입력요 -> co1...4 지우고...

$my_table5 = 'designnews';  //알림(공지)

$my_table6 = 'edunews';  //질문답변

$my_table7 = 'seminarnews';  //자유게시판

$my_table8 = 'data';  //자료실

?>

<SCRIPT type=text/javascript>
<!--
old_debate='1';

function showLayer(objid){
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
old_debate=objid;
}
//-->
</SCRIPT>


<table width="304" border="0" cellspacing="0" cellpadding="0">
 <tr>
<td>
<table width="304" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="76">
<TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate1><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table5?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n1_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate1#1  style="DISPLAY: none;"><A href="javascript:showLayer('5')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n1.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate2  style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table6?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n2_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate2#1><A href="javascript:showLayer('6')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate3 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table7?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n3_2.gif' width=76 height=27 border=0 align=absmiddle></A> </TD>
                <TD id=debate3#1><A href="javascript:showLayer('7')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n3.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>
    <td width="76">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate4 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table8?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4_2.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate4#1><A href="javascript:showLayer('8')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/n4.gif' width=76 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>
  </tr>
</table>

<table width="304" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
  <tr>
      <td bgcolor='#D5D3E8'></td>
    <td bgcolor='#FFFFFF' valign='top'>

<DIV id=debate_content1>
<?=latest('basic_tap',$my_table5, 5, 50);?></DIV>

<DIV id=debate_content2 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table6, 5, 50);?></DIV>

<DIV id=debate_content3 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table7, 5, 50);?></DIV>

<DIV id=debate_content4 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table8, 5, 50);?></DIV></td>
        <td bgcolor='#D5D3E8'></td>
  </tr>
  <tr><td colspan='3' bgcolor='#D5D3E8'></td></tr>
</table></td></tr>
</table>
간단하게 말씀드리면 그 스킨을 두개 사용하는겁니다..
스킨간에 소스 충돌이 있다면
debate 와 my_table 만 서로 다르게 살짝 바꿔주시면 됩니다..^^
흠... 저도 그럴꺼라 생각해서 해봤더니 안되네요... 위에 같이... 2개를 같이 사용해보니 옆에꺼랑 같이 공유되면서 어긋나더라구요... 에혀... 포기해야 하나... ㅋㅋ;
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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