탭스킨 질문입니다. > 그누4 질문답변

그누4 질문답변

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

탭스킨 질문입니다. 정보

탭스킨 질문입니다.

본문

최근글에서 탭스킨을보면
1테스트
2테스트
이런식으로 가로한줄로 나옵니다.
 
1테스트  2테스트
3테스트  4테스트
요렇게 가로 2줄로 나오게할려면 어떻게하나요?
 
<?=latest('basic_tap',$my_table1, 6, 50);?><--- 여기서 어떻걸 넣어야되나요? 아니면 다른곳에 태그를 넣어야되나요?
 
그냥 스킨은 가로 2줄짜리가 있던데...
 
탭스킨소스는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 아래 5개부분 테이블명 입력 //////////////////
$my_table1 = 'freeboard';  //자유게시판
$my_table2 = 'jukebox_misc';  //공연듣기
$my_table3 = 'memberonly';  //단원게시판
$my_table4 = 'jukebox_songs';  //단원음악실
$my_table5 = 'score_library';  //동영상
/////////////////////////////////////////////////
//  최신글이 올라왔을때 뉴아이콘 보이게......
$sql = " select bo_table, bo_subject, bo_new from $g4[board_table] where bo_use_search = 1 order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    $bo_table_s = $row[bo_table];
    $bo_new = $row[bo_new];   
   
    $tmp_write_table = $g4[write_prefix] . $bo_table_s; // 게시판 테이블 전체이름

    $sql01 = "select * from $tmp_write_table where wr_comment > -1 order by wr_id desc limit 0, 2 "; // 대충 각게시판마다 상위 두어개만 불러옴
    $result01 = sql_query($sql01);
   
    for ($k=0; $row01 = sql_fetch_array($result01); $k++) {
        if ($row01[wr_datetime] >= date("Y-m-d H:i:s", $g4[server_time] - ($bo_new * 3600)))  // 각게시판마다 최신글 표시 시간 지정과 현재시간 비교
        $new_icon[$bo_table_s] = "<img src='$g4[path]/tap_img/icon_new.gif' align='absmiddle' border=0>";  // 그냥 한개라도 최신글 있으면 이미지를 배열에 저장
        }
}
?>
<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="430" border="0" cellspacing="0" cellpadding="0">
 <tr>
<td>
<table width="430" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="86">
   <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=86 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate1#1 onmouseover="javascript:showLayer('1')" onfocus='this.blur()' width="86" height="27" background='<?=$g4[path]?>/tap_img/n1.gif'? align="left" style="display:none;padding-top:2px;padding-left:2px;"><?=$new_icon[$my_table1]?></TD>
   </TR></TABLE></td>
    <td width="86">
         <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=86 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate2#1 onmouseover="javascript:showLayer('2')" onfocus='this.blur()' width="86" height="27" background='<?=$g4[path]?>/tap_img/n2.gif'? align="left" style="padding-left:2px;"><?=$new_icon[$my_table2]?></TD>
    </TR></TABLE></td>
    <td width="86">
         <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=86 height=27 border=0 align=absmiddle></A> </TD>
                <TD id=debate3#1 onmouseover="javascript:showLayer('3')" onfocus='this.blur()' width="86" height="27" background='<?=$g4[path]?>/tap_img/n3.gif'? align="left" style="padding-top:2px;padding-left:2px;"><?=$new_icon[$my_table3]?></TD>
    </TR></TABLE></td>
 <td width="86">
         <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=86 height=27 border=0 align=absmiddle></A> </TD>
                <TD id=debate4#1 onmouseover="javascript:showLayer('4')" onfocus='this.blur()' width="86" height="27" background='<?=$g4[path]?>/tap_img/n4.gif'? align="left" style="padding-left:2px;"><?=$new_icon[$my_table4]?></TD>
    </TR></TABLE></td>
    <td width="86">
         <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/n5_2.gif' width=86 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate5#1 onmouseover="javascript:showLayer('5')" onfocus='this.blur()' width="86" height="27" background='<?=$g4[path]?>/tap_img/n5.gif'? align="left" style="padding-left:2px;"><?=$new_icon[$my_table5]?></TD>
    </TR></TABLE></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
       <td bgcolor='#D5D3E8'></td>
     <td bgcolor='#FFFFFF' valign='top'>
   
   <DIV id=debate_content1>
   <?=latest('basic_tap',$my_table1, 6, 50);?></DIV>
   
   <DIV id=debate_content2 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table2, 6, 50);?></DIV>
   
   <DIV id=debate_content3 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table3, 6, 50);?></DIV>
   
   <DIV id=debate_content4 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table4, 6, 50);?></DIV>
   <DIV id=debate_content5 style="DISPLAY: none;">
            <?=latest('basic_tap',$my_table5, 6, 50);?></DIV></td>
         <td bgcolor='#D5D3E8'></td>
   </tr>
   <tr><td colspan='4' bgcolor='#D5D3E8'></td></tr>
</table>
</td></tr>
</table>

댓글 전체

그냥 가로줄 2개 있는 스킨을 이용하시면 될겁니다.

만약 가로줄 2개 있는 최신글 스킨명이 xxxx라면요.

이걸 skin/latest/xxxx 이렇게 올려주시고 tap 파일에서

<?=latest('basic_tap',$my_table1, 6, 50);?> 이걸

<?=latest('xxxx',$my_table1, 6, 50);?> 이렇게 바꿔주시면 될겁니다.

원하시는 설명이 되었는지 모르겠네요.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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