y

관리자모드 좌측 소메뉴

· 2015-03-18 (수) 11:13:47 · 14185 · 4
ss1.jpg
그누보드5 관리자모드 소메뉴를 좌측에 출력합니다.


사용법

압축을 풀어 그누보드5가 설치된 관리자 디렉토리(/adm/)에 덮어 씌웁니다.
원본파일은 백업하세요.
(admin.head.php, admin.menu100.php, admin.tail.php)


원본파일 코드 추가/변경 내용(그누보드 5.0.31 버전 기준)

- admin.head.php

8줄
add_stylesheet('', 1);

131줄~
$on_class = '';
if ($sub_menu == $value[0])
$on_class = ' class="on"';

echo $nl.''.$value[1].'';


- admin.menu100.php

array('100100', '기본환경설정', G5_ADMIN_URL.'/config_form.php', 'cf_basic'),
array('100200', '관리권한설정', G5_ADMIN_URL.'/auth_list.php', 'cf_auth'),
array('100290', '메뉴설정', G5_ADMIN_URL.'/menu_list.php', 'cf_menu', 1),


- admin.tail.php

$(function(){
// 인덱스페이지 사이즈 변경
if ($('#lnb').length == 0)
$('#wrapper').css('display', 'block');

// 현재탭의 버튼 활성
if ($('ul.anchor').length > 1) {
$('ul.anchor').each(function(index){
$(this).find('a').eq(index).addClass('on');
});
} else {
$('ul.anchor a').each(function() {
if ( $(this).attr('href').match(location.href.replace(/.*\/([a-zA-Z0-9_-|\.]+)(\?.*)?$/g, "$1")) )
$(this).addClass('on');
});
}

// 중요 관리권한항목 삭제
$('select#au_menu option[value=100100], select#au_menu option[value=100200], select#au_menu option[value=100290]').remove();
});

첨부파일

ss1.jpg (52.4 KB)
0회 2015-03-18 11:13
g5-adm.150318.zip (6.3 KB) 366회 2015-03-18 11:13
|

댓글 4개

정말 감사드립니다
2015-06-09 (화) 10:18:38
감사합니다.~~ 굿~~
2017-05-11 (목) 15:43:49
영카트에도 쓸수 있나요?
아마 되었던것으로 알고 있는데요. 원본 백업해두시고 적용해보세요.
댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 스킨

2,750건

좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.

+