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

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

질문답변

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

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

페이지 정보

본문

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


<!-- 메인화면 최신글 시작 -->
<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 eodnhan87쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9 0 06-20
1639 860707ff쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3 0 05-28
1638
겔제에러 댓글1
산드리쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4 0 03-26
1637 에구치쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4 0 02-25
1636 에구치쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2 0 02-25
1635 레몬에이드쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3 0 01-17
1634 푸른하늘이다쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7 0 06-20
1633 HANPURE쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2 0 03-27
1632 핫플레이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9 0 05-12
1631 휴먼쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 4 0 06-26
1630 삿갓맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6 0 05-26
1629 살람쥐쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3 0 05-13
1628 휴먼쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20 0 05-11
1627 카오스쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6 0 04-26
1626 카오스쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 19425 0 04-20
1625 휴먼쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8 0 04-17
1624 레몬에이드쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7 0 11-23
1623 승희아빠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4 0 10-06
1622 승희아빠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4 0 10-06
1621 신디쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5 0 07-22
1620 휴먼쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 3 0 06-27
1619 레몬에이드쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17 0 06-08
1618 크림씨앤엠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3 0 06-05
1617 레몬에이드쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4 0 06-01
1616 용맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6991 0 05-08

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
4,379
어제
4,659
최대
7,259
전체
1,278,463
Copyright (c) 株式会社YHPLUS. All rights reserved.