11.Nas_1


배추빌더 라이트의 메뉴 구성




컨텐츠 정보

  • 15,073 조회
  • 2 댓글
  • 0 추천
  • 목록

본문

  슬프다 (58.♡.1.95) 2012-12-07 (금) 22:50
\r\n
\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 자리에 제외할 게시판 적음 되고요.
Shims HomePage
[https://11q.kr 홈피]
.\n
[이 게시물은 관리자님에 의해 2013-11-18 21:29:50 11.H_BBS에서 이동 됨]
뷰PDF add1,add2



관련자료

댓글 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>&nbsp;<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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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에서 &lt;?=poll("mw.poll")?&gt; 찾아서 아래에 다음과 같이 넣어보세요. <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">&lt;? </code><code class="php keyword">if</code> <code class="php plain">(</code><code class="php variable">$gr_id</code> <code class="php plain">== G03 &amp;&amp; !</code><code class="php variable">$bo_table</code><code class="php plain">) { ?&gt;&lt;img src=</code><code class="php string">"이미지주소1"</code><code class="php plain">&gt;&lt;? } ?&gt; </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">&lt;? </code><code class="php keyword">if</code> <code class="php plain">(</code><code class="php variable">$gr_id</code> <code class="php plain">== G04 &amp;&amp; !</code><code class="php variable">$bo_table</code><code class="php plain">) { ?&gt;&lt;img src=</code><code class="php string">"이미지주소2"</code><code class="php plain">&gt;&lt;? } ?&gt; </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">&lt;? </code><code class="php keyword">if</code> <code class="php plain">(</code><code class="php variable">$gr_id</code> <code class="php plain">== G05 &amp;&amp; !</code><code class="php variable">$bo_table</code><code class="php plain">) { ?&gt;&lt;img src=</code><code class="php string">"이미지주소3"</code><code class="php plain">&gt;&lt;? } ?&gt;</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&amp;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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 />&lt;table border="0" cellpadding="0" cellspacing="0" width="100%"&gt; <br />&lt;? <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 />?&gt; <br />&lt;tr&gt; <br />.... <br />.. <br />. <br />&lt;? } ?&gt; <br />&lt;/table&gt; <br /><br /><br /><br />수정 - sql 및 for 문 관련 모두 삭제 후 아래와 같이 출력 하고자 하는 최신글만 반영 <br />&lt;table border="0" cellpadding="0" cellspacing="0" width="100%"&gt; <br />&lt;tr&gt; <br />&nbsp; &nbsp; &lt;td width="350" valign="top"&gt; <br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="item"&gt;&lt;?=latest("mw.list", "B11", 5, 45)?&gt;&lt;/div&gt; <br />&nbsp; &nbsp; &lt;/td&gt; <br />&nbsp; &nbsp; &lt;td width="10"&gt;&lt;/td&gt; <br />&nbsp; &nbsp; &lt;td width="345" valign="top"&gt; <br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="item"&gt;&lt;?=latest("mw.list", "B12", 5, 45)?&gt;&lt;/div&gt; <br />&nbsp; &nbsp; &lt;/td&gt; <br />&lt;/tr&gt; <br />&lt;/table&gt;&nbsp; \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&amp;wr_id=505</a> </div></div></div></div></td></tr></tbody></table>


전체 1,766 / 1 페이지
게시물이 없습니다.(다음페이지로 이동 하세요)
전체 1,766 / 1 페이지



♥간단_메모글♥


최근글


새댓글



PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
▶ 2024-11-23 07:02:07

오늘의 홈 현황


  • 현재 접속자♨ 366 명
  • 오늘 가입자※ 0 명
  • 어제 가입자※ 3 명
  • 주간 가입자※ 9 명
  • 오늘 방문자 1,977 명
  • 어제 방문자 3,461 명
  • 최대 방문자 13,042 명
  • 전체 방문자 4,804,594 명
  • 전체 게시물※ 8,855 개
  • 전체 댓글수※ 25,231 개
  • 전체 회원수 11,325 명

QR코드


☞ QR코드 스캔은 kakao앱 자체 QR코드

알림 0








최신글↑