배추빌더 라이트의 메뉴 구성
컨텐츠 정보
- 14,740 조회
- 2 댓글
- 0 추천
-
목록
본문
![]() ![]() |
\r\n 1. 상단 메뉴바와 좌측 트리메뉴에서 제외하시려면 head.php에서 아래를 찾으세요. 2군데 나올건데요, $sql2 = "select * from $g4[board_table] where gr_id = '$row[gr_id]' 둘 다 $sql2 = "select * from $g4[board_table] where gr_id = '$row[gr_id]' and bo_table != 'B11' 이렇게 바꿔주면 됩니다. B11 자리에는 제외하고 싶은 게시판 넣으면 되고요. 첫번째 찾은 것이 메뉴바고, 두번째 찾은 것이 좌측 트리메뉴니까 따로 지정해도 되고요. 2. 최신글에서 제외하려면(아마 이 질문이신 듯) $sql = "select * from $g4[board_table] 찾아서 $sql = "select * from $g4[board_table] where bo_table != 'B11' 이렇게 바꿔주면 됩니다. B11 자리에 제외할 게시판 적음 되고요. |
[https://11q.kr 홈피]
.\n
[이 게시물은 관리자님에 의해 2013-11-18 21:29:50 11.H_BBS에서 이동 됨]
관련자료
댓글 2
11q.kr관리자님의 댓글
<table cellspacing="0" cellpadding="0" width="100%">\r\n<tbody>\r\n<tr>\r\n<td class="mw_basic_view_subject">[라이트] \r\n<h1>라이트 - 그룹게시판 좌측메뉴 아래부분에 다른 사진을 넣고 싶어요 </h1></td></tr>\r\n<tr>\r\n<td bgcolor="#e7e7e7" height="1"></td></tr>\r\n<tr>\r\n<td class="mw_basic_view_title" height="30">글쓴이 : <span class="mw_basic_view_name"><a class="screenshot" href="http://g4.miwit.com/plugin/cybercash/index.php" rel="../data/mw.cash/i10_tooltip" target="_blank" jquery1357256772884="6"><img align="absMiddle" src="http://g4.miwit.com/data/mw.cash/i10" alt="" /></a> <a title="[only]슬프다" href="javascript:;" target="_blank"><img border="0" align="absMiddle" src="http://g4.miwit.com/data/member/on/only.gif" width="16" height="16" alt="" /> <span class="member">슬프다</span></a> <span style="border-bottom: #ddd 1px solid; border-left: #ddd 1px solid; border-top: #ddd 1px solid; border-right: #ddd 1px solid" class="icon_level5"> </span> 날짜 : <span class="mw_basic_view_datetime">2012-12-06 (목) 10:39</span> 조회 : <span class="mw_basic_view_hit">384</span> <a href="javascript:btn_singo(1335, 1335)" target="_blank"><img title="신고" align="absMiddle" src="http://g4.miwit.com/skin/board/mw.basic/img/btn_singo2.gif" alt="" /></a> <a href="javascript:btn_print()" target="_blank"><img title="인쇄" align="absMiddle" src="http://g4.miwit.com/skin/board/mw.basic/img/btn_print.gif" alt="" /></a> </span></td></tr>\r\n<tr>\r\n<td bgcolor="#e7e7e7" height="1"></td></tr>\r\n<tr>\r\n<td class="mw_basic_view_title" height="30">글주소 : <span id="post_url">http://mwt.so/0Cb9T</span> <img id="post_url_copy" align="absMiddle" src="http://g4.miwit.com/skin/board/mw.basic/img/copy.png" alt="" /> </td></tr><style type="text/css">\r\n#qr_code_layer { display:none; position:absolute; background-color:#fff; border:2px solid #ccc; padding:10px; width:280px; }\r\n#qr_code_layer .qr_code_google { border:5px solid #469CE0; float:left; }\r\n#qr_code_layer .qr_code_google img { width:100px; height:100px; }\r\n#qr_code_layer .qr_code_info { float:left; margin:0 0 0 10px; width:115px; font:normal 12px 'gulim'; line-height:18px; color:#555; }</style>\r\n<tr>\r\n<td class="mw_basic_view_content">\r\n<div id="view_1335">\r\n<div id="view_content">head.php에서 <?=poll("mw.poll")?> 찾아서 아래에 다음과 같이 넣어보세요. <br />G03 이런 것은 디에고님께서 사용하시는 그룹ID를 말하는 것입니다. <br />\r\n<div id="highlighter_346378" class="syntaxhighlighter php">\r\n<div class="bar ">\r\n<div class="toolbar"><a style="width: 16px; height: 16px" class="item viewSource" title="view source" href="http://g4.miwit.com/bbs/board.php?bo_table=mw_tip&wr_id=1335&sca=라이트#viewSource" target="_blank" commandname="viewSource" highlighterid="highlighter_346378">view source</a> \r\n<div class="item copyToClipboard"></div><a style="width: 16px; height: 16px" class="item printSource" title="print" href="http://g4.miwit.com/bbs/board.php?bo_table=mw_tip&wr_id=1335&sca=라이트#printSource" target="_blank" commandname="printSource" highlighterid="highlighter_346378">print</a><a style="width: 16px; height: 16px" class="item about" title="?" href="http://g4.miwit.com/bbs/board.php?bo_table=mw_tip&wr_id=1335&sca=라이트#about" target="_blank" commandname="about" highlighterid="highlighter_346378">?</a></div></div>\r\n<div class="lines">\r\n<div class="line alt1">\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td class="number"><code>1</code></td>\r\n<td class="content"><code class="php plain"><? </code><code class="php keyword">if</code> <code class="php plain">(</code><code class="php variable">$gr_id</code> <code class="php plain">== G03 && !</code><code class="php variable">$bo_table</code><code class="php plain">) { ?><img src=</code><code class="php string">"이미지주소1"</code><code class="php plain">><? } ?> </code></td></tr></tbody></table></div>\r\n<div class="line alt2">\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td class="number"><code>2</code></td>\r\n<td class="content"><code class="php plain"><? </code><code class="php keyword">if</code> <code class="php plain">(</code><code class="php variable">$gr_id</code> <code class="php plain">== G04 && !</code><code class="php variable">$bo_table</code><code class="php plain">) { ?><img src=</code><code class="php string">"이미지주소2"</code><code class="php plain">><? } ?> </code></td></tr></tbody></table></div>\r\n<div class="line alt1">\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td class="number"><code>3</code></td>\r\n<td class="content"><code class="php plain"><? </code><code class="php keyword">if</code> <code class="php plain">(</code><code class="php variable">$gr_id</code> <code class="php plain">== G05 && !</code><code class="php variable">$bo_table</code><code class="php plain">) { ?><img src=</code><code class="php string">"이미지주소3"</code><code class="php plain">><? } ?></code></td></tr></tbody></table></div></div></div><br /><br />\r\n<div class="autosourcing-stub">\r\n<div style="padding-bottom: 0px; margin: 11px 0px 7px; padding-left: 0px; padding-right: 0px; padding-top: 0px"><a href="http://g4.miwit.com/bbs/board.php?bo_table=mw_tip&wr_id=1335" target="_blank">[출처] 마이위트 - http://g4.miwit.com/bbs/board.php?bo_table=mw_tip&wr_id=1335</a> </div></div></div></div></td></tr></tbody></table>
11q.kr관리자님의 댓글
<table cellspacing="0" cellpadding="0" width="100%">\r\n<tbody>\r\n<tr>\r\n<td class="mw_basic_view_subject">[라이트] \r\n<h1>배추라이트 메인 최신글 원하는 것만 출력 </h1></td></tr>\r\n<tr>\r\n<td bgcolor="#e7e7e7" height="1"></td></tr>\r\n<tr>\r\n<td class="mw_basic_view_title" height="30">글쓴이 : <span class="mw_basic_view_name"><a title="[ogogago]사노라가노라" href="javascript:;" target="_blank"><span class="member">사노라가노라</span></a> <span style="border-bottom: #ddd 1px solid; border-left: #ddd 1px solid; border-top: #ddd 1px solid; border-right: #ddd 1px solid" class="icon_level1"> </span> 날짜 : <span class="mw_basic_view_datetime">2011-04-01 (금) 05:42</span> 조회 : <span class="mw_basic_view_hit">3027</span> <a href="javascript:btn_singo(505, 505)" target="_blank"><img title="신고" align="absMiddle" src="http://g4.miwit.com/skin/board/mw.basic/img/btn_singo2.gif" alt="" /></a> <a href="javascript:btn_print()" target="_blank"><img title="인쇄" align="absMiddle" src="http://g4.miwit.com/skin/board/mw.basic/img/btn_print.gif" alt="" /></a> </span></td></tr>\r\n<tr>\r\n<td bgcolor="#e7e7e7" height="1"></td></tr>\r\n<tr>\r\n<td class="mw_basic_view_title" height="30">글주소 : <span id="post_url">http://mwt.so/03Fv3</span> <img id="post_url_copy" align="absMiddle" src="http://g4.miwit.com/skin/board/mw.basic/img/copy.png" alt="" /> </td></tr><style type="text/css">\r\n#qr_code_layer { display:none; position:absolute; background-color:#fff; border:2px solid #ccc; padding:10px; width:280px; }\r\n#qr_code_layer .qr_code_google { border:5px solid #469CE0; float:left; }\r\n#qr_code_layer .qr_code_google img { width:100px; height:100px; }\r\n#qr_code_layer .qr_code_info { float:left; margin:0 0 0 10px; width:115px; font:normal 12px 'gulim'; line-height:18px; color:#555; }</style>\r\n<tr>\r\n<td class="mw_basic_view_content">\r\n<div id="view_505">\r\n<div id="view_content">index.php <br /><br /><br />원본 <br /><br /><table border="0" cellpadding="0" cellspacing="0" width="100%"> <br /><? <br />$sql = "select * from $g4[board_table] order by bo_order_search"; <br />$qry = sql_query($sql); <br />for ($i=0; $row=sql_fetch_array($qry); $i++) { <br />?> <br /><tr> <br />.... <br />.. <br />. <br /><? } ?> <br /></table> <br /><br /><br /><br />수정 - sql 및 for 문 관련 모두 삭제 후 아래와 같이 출력 하고자 하는 최신글만 반영 <br /><table border="0" cellpadding="0" cellspacing="0" width="100%"> <br /><tr> <br /> <td width="350" valign="top"> <br /> <div class="item"><?=latest("mw.list", "B11", 5, 45)?></div> <br /> </td> <br /> <td width="10"></td> <br /> <td width="345" valign="top"> <br /> <div class="item"><?=latest("mw.list", "B12", 5, 45)?></div> <br /> </td> <br /></tr> <br /></table> \r\n<div class="autosourcing-stub">\r\n<div style="padding-bottom: 0px; margin: 11px 0px 7px; padding-left: 0px; padding-right: 0px; padding-top: 0px"><a href="http://g4.miwit.com/bbs/board.php?bo_table=mw_tip&wr_id=505" target="_blank">[출처] 마이위트 - http://g4.miwit.com/bbs/board.php?bo_table=mw_tip&wr_id=505</a> </div></div></div></div></td></tr></tbody></table>