groupmenu 스킨 질문있습니다.. 채택완료

groupmenu.lib.php 내용입니다.

Copy
<?phpif (!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;}?>
Copy
<?phpif (!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개

채택된 답변
+20 포인트

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

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

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

로그인 후 평가할 수 있습니다

답변에 대한 댓글 3개

메뉴설정에도 순서대로 번호를 넣어도 안됩니다 ㅠㅠ
위 소스를 대충 보니, 오래전 방식인 모양입니다.
이미 세팅이 되있는 홈페이지라 다시 구성하기도 뭐하네요 ㅠㅠ 아무튼 감사합니다.. 방법이 없겠네요..

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고