groupmenu 스킨 질문있습니다..

groupmenu 스킨 질문있습니다..

QA

groupmenu 스킨 질문있습니다..

본문

groupmenu.lib.php 내용입니다.


<?php
if (!defined('_GNUBOARD_')) exit;
 
// 메뉴
function groupmenu($skin_dir='basic', $new_time)
{
    global $config, $group, $g5, $is_admin, $bo_table;
	$groupmenu = array();
 
    if(!$group['gr_id'] || G5_IS_MOBILE)
        return;
	
		$sql = " select * from {$g5['group_table']} where gr_device <> 'mobile' and gr_id = '{$group['gr_id']}' order by gr_order ";
    $result = sql_query($sql);
	for ($gi=0; $row=sql_fetch_array($result); $gi++) { // gi 는 group index
		$sql2 = " select * from {$g5['board_table']} where gr_id = '{$row['gr_id']}' and bo_device <> 'mobile' order by bo_order ";
		$result2 = sql_query($sql2);
		for ($bi=0; $row2=sql_fetch_array($result2); $bi++) { // bi 는 board index	
			$board_table = $g5['write_prefix'] . $row2['bo_table'];
			$latest_count =  sql_fetch(" select count(*) as cnt from {$board_table} where wr_datetime > '".date('Y-m-d H:i:s', time() - (3600 * $new_time))."'");
			
			$groupmenu[$bi]['bo_table'] = $row2['bo_table'];
			$groupmenu[$bi]['href'] = G5_BBS_URL.'/board.php?bo_table='.$row2['bo_table'];
			$groupmenu[$bi]['subject'] = $row2['bo_subject'];
			$groupmenu[$bi]['cnt'] = $latest_count['cnt'];
		}
	}	
	$groupmenu_skin_path = G5_SKIN_PATH.'/groupmenu/'.$skin_dir;
    $groupmenu_skin_url  = G5_SKIN_URL.'/groupmenu/'.$skin_dir;
 
    ob_start();	   
    include_once ($groupmenu_skin_path.'/groupmenu.skin.php');
    $content = ob_get_contents();
    ob_end_clean();
 
    return $content;
}
?>

 


<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
 
<!-- 메뉴 시작 { -->
<link rel="stylesheet" href="<?php echo $groupmenu_skin_url ?>/css/style.css">
<section id="groupmenu">
<table width="200px" cellpadding="0" cellspacing="0" border="0" align="left">
   <tr height="37">
        <td colspan='3' style='padding-left:15px'; bgcolor="#262439"; >
		  <!--  그룹 네임 시작 -->
		  <b style="color:#fff";><? echo $group['gr_subject'] ?></b>
	      <!-- 그룹 네임 끝 -->
		</td>
    </tr>
		<tr>
		<td colspan="2" height='1'bgcolor='#dde4e9'></td>
		</tr>
        <?php for ($i=0; $i<count($groupmenu); $i++) {  ?>
		<tr>
		<td style="padding:3px 0px 0px 10px" width="12"><img src="<?php echo $groupmenu_skin_url ?>/img/dot.gif""></td>
		<td><div id="nav1">
  <ul>
    <li<?php if($bo_table==$groupmenu[$i]['bo_table']) { echo " class=\"on\""; } ?>><a href="<?php echo $groupmenu[$i]['href'] ?>"><?php echo $groupmenu[$i]['subject'] ?></a></li>
  </ul>
</div></td>
		</tr>
		<tr>
		
		</tr>
        <?php }  ?>
		<tr>
		<td colspan="2" height='10' background="<?php echo $groupmenu_skin_url ?>/img/side_menu_tail.gif"></td>
		</tr>
		<tr>
		<td colspan="2" height='1'bgcolor='#dde4e9'></td>
		</tr>
</table> 
</section>
<!-- } 메뉴 끝 -->

 

서브메뉴 이 스킨으로 사용중인데

관리자에서 하고싶은 순번대로 적용하고자 하는데 서브메뉴스킨에서는 제가 원하는 순번대로 적용이 안됩니다.. 어딜 수정해줘야 가능한걸까요?

이 질문에 댓글 쓰기 :

답변 1

'메뉴 설정'에서 정한 순서를 가져오는 것이 정석일텐데

예전 그누보드 규칙대로 만든 스킨들도 있습니다.

그 경우에는 '게시판 관리'에서 순서를 정해주어야 합니다.

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

회원로그인

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