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

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

질문답변

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

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

페이지 정보

본문

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


<!-- 메인화면 최신글 시작 -->
<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 휴먼쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 26985 0 11-01
1639 cart쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 25279 0 12-11
1638 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 24704 0 11-08
1637 깬다깨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 22210 0 11-08
1636 메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 21726 0 05-03
1635 도나쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 21410 0 11-05
1634 바라짱쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20599 0 10-31
1633 유시우쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 20538 0 11-16
1632 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20461 0 10-29
1631 강강쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 20001 0 06-08
1630 카오스쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 19424 0 04-20
1629 기쁨으로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 19112 0 05-04
1628 davi쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18933 1 11-28
1627 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18878 0 10-29
1626 나홀로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18775 0 02-09
1625 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18427 0 10-29
1624 월드컵쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17857 0 10-03
1623 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17640 0 03-30
1622 coach쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17381 0 02-01
1621 성젬쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17220 0 01-06
1620 용용쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17132 0 01-09
1619 메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17127 0 07-16
1618 울랄라쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17088 0 07-11
1617 네모쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16945 0 06-24
1616 강강쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16897 0 06-20

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
4,460
어제
4,604
최대
7,259
전체
1,273,885
Copyright (c) 株式会社YHPLUS. All rights reserved.