제로나라 그룹의 메인화면에서 특정게시판 제외 시킬려면.. > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

서버정보나 계정정보는 보안유지를 위해 관리자쪽지나 메일로 발송해 주시거나 제작의뢰 게시판을 이용해 주시면 감사하겠습니다..

제로나라 그룹의 메인화면에서 특정게시판 제외 시킬려면..

페이지 정보

본문

제로나라 그룹출력 메인화면 소스 입니다.
근데 여기서 특정 게시판을 제외 시킬려면 어떻게 해야 되나요??
초보의 질문입니다.


<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=5>
<tr>
    <td align="center" valign=top>
    <?
    //  최신글
    //제외보드
    //$sql = " select bo_subject, bo_table from $g4[board_table] where bo_table not in ('z1_1', 'z2_1', 'z2_3', 'z5_1') and gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' order by bo_order_search";
    //$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' order by bo_table ";
    $sql = " select bo_subject, bo_table from $g4[board_table] where gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' and bo_use_search = '1' order by bo_order_search";
    $result = sql_query($sql);
    for ($i=0; $row=sql_fetch_array($result);) {
        // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

        // 사용방법
        // latest(스킨, 게시판아이디, 출력라인, 글자수);
        if($i%2==0)
echo "<tr>";
?>
<td width="50%" valign="top">

<?= latest("colorbasic", $row[bo_table], 5, 40, "4,25")?>

</td>
<?
$i++;
}
?>
</tr></table>
<!-- 메인화면 최신글 끝 -->
추천1

댓글목록

profile_image

곰순이푸님의 댓글

곰순이푸쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

우웁 너무 점수가 짠데요 --;
제로나라에서 메인화면 소스는
include/mainmenu 안에
mainzmain_menu 파일 수정하세요
원본내요은 저도 수정해서 모르겠구요 --;
저같은경우 , 'z7' 이부분만 추가한걸로 기억해요.

$excgr = "('html', 'banner', 'guest', 'z7')"; // html , banner , guest 라는 그룹은 제외시킴

$sql = " SELECT a.gr_id, a.gr_subject, a.gr_use_access, a.gr_10, b.mb_id FROM $g4[group_table] AS a LEFT JOIN $g4[group_member_table] AS b ON a.gr_id = b.gr_id WHERE (b.mb_id = '$member[mb_id]' AND a.gr_use_access = '1' ) OR a.gr_use_access = '0' and a.gr_id not in " . $excgr . " ORDER BY a.gr_1";

profile_image

메빅맨님의 댓글

메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

곰순이푸님// 먼저 점수가 짜서 미안합니다.
 제가 포인트가 좀 약해서리..^^

근데 제가 지금 알고자 하는것은 그룹제외가 아니라 특정게시판 제외를 알고 싶습니다.
도와주세요..

profile_image

쎄엠님의 댓글

쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

저가 사용한 방법은 두 가지입니다.
계정에 접속하였을 때에 나오는 메인 화면은 index.php 에서 확 바꾸어서 원하는 게시판만 나오되 원하는 장소에 나오도록 배치하였습니다.
그리고 다른 한 가지는 각 그룹 메인 화면입니다.
여기는 각 그룹 테이블을 불러와서 역시 메인 화면처럼 확 교체하였습니다.
그러면 어떤 그룹에 속하였든지 상관없이 본인이 원하는 그룹에 화면에 나오도록 할수 있습니다.
물론 특정 그룹에 속한 게시판만 나오게도 할 수 있습니다.
인덱스 부분은 아실 것 같아서 그룹에 속한 부분을 수정한 내용만 올려 드리겠습니다.
*grouptable1 내용을 확수정한 내용입니다.

<!-- 메인화면 최신글 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="410" align="center" valign="top">
<?= latest_scroll("scroll", 12, 51,"3, 25");?>
    </td>
    <td width="10" align="center" valign="top"></td>
    <td align="center" valign="top">
    <?= latest("vod_m", premovi, 1, 70)?>
    </td>
    </tr>
</table>
<div style='height:10px;'></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="49%" align="center" valign="top">
      <?= latest("colorbasic", z1_1, 4, 70)?>
    </td>
    <td width="2%" align="center" valign="top"></td>
    <td width="49%" align="center" valign="top">
      <?= latest("colorbasic", z1_4, 4, 70)?>
    </td>
  </tr>
</table>
<div style='height:10px;'></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="49%" align="center" valign="top">
      <?= latest("colorbasic", z6_5, 4, 70)?>
    </td>
    <td width="2%" align="center" valign="top"></td>
    <td width="49%" align="center" valign="top">
      <?= latest("colorbasic", z2_3, 4, 70)?>
    </td>
  </tr>
</table>
<div style='height:10px;'></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="49%" align="center" valign="top">
      <?= latest("colorbasic", prayer, 4, 70)?>
    </td>
    <td width="2%" align="center" valign="top"></td>
    <td width="49%" align="center" valign="top">
      <?= latest("colorbasic", z6_4, 4, 70)?>
    </td>
  </tr>
</table>
<div style='height:10px;'></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="49%" align="center" valign="top">
      <?= latest("colorbasic", z1_5, 4, 70)?>
    </td>
    <td width="2%" align="center" valign="top"></td>
    <td width="49%" align="center" valign="top">
      <?= latest("colorbasic", z6_1, 4, 70)?>
    </td>
  </tr>
</table>

<!-- 메인화면 최신글 끝 -->

실제적용 화면입니다. -->http://www.jesus91.net/bbs/group.php?gr_id=z1
index.php 내용도 게시판 부분은 똑 같이 활용하시면 될 것입니다.
좋은 하루 되십시요.

profile_image

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

//제외보드
    $sql = " select bo_subject, bo_table from $g4[board_table] where bo_table not in ('z1_1', 'z2_1', 'z2_3', 'z5_1') and gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' order by bo_order_search";
    //$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' order by bo_table ";
    //$sql = " select bo_subject, bo_table from $g4[board_table] where gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' and bo_use_search = '1' order by bo_order_search";


----('z1_1', 'z2_1', 'z2_3', 'z5_1')는 제외보드  ㅠ.ㅠ 주석되어 있는데

profile_image
Total 1,640건 1 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
1640 부업타운쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5895 2 06-19
1639 쉐도우쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16127 1 06-26
1638 모모쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8074 1 08-08
1637 미니쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9837 1 09-06
1636 검정하늘쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12728 1 01-03
1635 지니쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8101 1 02-03
1634 fora쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6266 1 02-17
1633 오타짱쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11296 1 03-19
1632 sharepia쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10206 1 03-27
1631 뮤즈카페쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11117 1 08-12
1630 윤경현쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6330 1 10-20
1629 푸푸쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10233 1 11-03
1628 윤경현쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7205 1 11-07
1627 김형우쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8995 1 11-20
열람중 메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 14568 1 01-08
1625 JobnBiz쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6612 1 02-21
1624 포인트쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7927 1 07-17
1623 포인트쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9023 1 08-31
1622 태인쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10195 1 09-20
1621 골든쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8854 1 06-15
1620 쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8089 1 12-17
1619 소피쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12292 1 01-01
1618 소피쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9827 1 01-14
1617 이암쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8674 1 04-04
1616 미녀와야식쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6518 1 10-03

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
4,805
어제
5,850
최대
7,259
전체
1,215,757
Copyright (c) 株式会社YHPLUS. All rights reserved.