YesYo.com MintState Forums
뒤로    YesYo.com MintState BBS > Miscellaneous > Q&A
검색
멤버이름    오토
비밀번호 
 

민트채팅방 유지시키기 질문드려요..

페이지 정보

작성자 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 2건 조회 13,641회 작성일 10-04-27 11:10

본문

아래 강백호님 게시물 팁을 따라서 했는데요, 방은 만들어지는데 리스트에서 방은 유지되는데요...

방에서 나온후에 다시 방을 클릭하면 존재하지 않는 채팅방입니다. 라고합니다...


우선 알려주신데로 g4_mint_chat_room 테이블에 room_keep 이라는 필드를 하나 만들고
채팅방 만드는 마지막 부분에 아래 코드를 만들고

view sourceprint?01 <? if ($is_admin == "super" || $is_auth) { ?> 

02    <tr> 

03        <td bgcolor="#F1F8FF">방유지</td> 

04        <td bgcolor="#FFFFFF"> 

05            <select name="keep" id="keep" onChange="maxSelect(this.value);"> 

06                <option value="0" selected>자동닫기</option> 

07                <option value="1">방유지</option> 

08   

09            </select> 

10        </td> 

11    </tr> 

12 <? } ?>

이렇게 해서 최고 관리자가 방유지를 시킬 수 있게 했습니다.


chat_act.php 부분에

$room_keep = $_POST[keep];
room_keep='$room_keep'

넣고


chat_act.php, chat_room.php, chat_roomInfoBox.php 이렇게 세개 화일에
$closeRoom_sql 부분에

$closeRoom_sql = "UPDATE `".$Mint[DB_chat]."_room` SET room_open='1' WHERE room_keep<>'1' and room_id='$_POST[RoomID]' ";
$closeRoom_sel = @mysql_query($closeRoom_sql);
$closeData_sql = "UPDATE `".$Mint[DB_chat]."_data` SET chat_open='1' WHERE room_keep<>'1' and room_id='$_POST[RoomID]' ";
$closeData_sel = @mysql_query($closeData_sql);

이렇게 넣었더니 잘 되네요^^ 감사합니다.

-강백호-





chat_act.php 부분에

$room_keep = $_POST[keep];
room_keep='$room_keep'


$mb_age					= $getAgeGender[age];
		$room_keep = $_POST[keep]; ////방유지 추가
		$put_sql = "INSERT INTO `".$Mint[DB_chat]."_room` SET 
						mb_id='$mb_id', mb_gender='$mb_gender', mb_age='$mb_age', 
						room_icon='$room_icon', room_title='$room_title', room_pass='$room_pass', 
						room_typeA='$room_typeA', room_typeB='$room_typeB', room_maxCnt='$room_maxCnt', room_regdate=now(), room_keep='$room_keep' "; //,room_keep='$room_keep' 방유지 추가 
		$put_sel = mysql_query($put_sql);

첨부 파일
파일 종류: jpg 000.jpg (121.3K, 2 views)

댓글목록

강백호님의 댓글

no_profile 강백호 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

헉 이제서야 글을 봤네요.
room_keep  int(1)  아니오  0 

mysql에서 g4_mint_chat_room 요기에 위에 필드를 하나 만드셔야 하는데 이걸 안 만드신거 같은데요.

Total 20건 1 페이지
Q&A 목록
번호 제목 글쓴이 조회 날짜
열람중 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13642 04-27
19 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14094 04-27
18 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15770 04-27
17 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13583 04-19
16 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14188 04-21
15 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14699 04-14
14 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13390 04-12
13 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13889 03-25
12 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14493 03-12
11 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12956 10-20
10 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11513 05-28
9 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11210 06-06
8 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13631 05-14
7 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11506 04-26
6 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11587 04-21
5 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13096 04-17
4 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10694 04-03
3 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11221 03-26
2 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10335 03-16
1 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13056 03-13
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™